Repository navigation
feat(mcp): ads listings default to view=summary and the ads tree to depth=campaign for agents - #91
Merged
Merged
Conversation
…epth=adset for agents Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
Review (code-review high --fix)
QA
Metrics (no database change here; sizes measured in #8195 on prod rows)
Post-deploy comparison: same Sentry returned-chars query as the Nov 11 baseline, 24 h after the regeneration vs the 24 h before; control = 🤖 Generated with Claude Code |
Contributor
Author
|
Changed the tree default from |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
zernio-dev/Schedule-Posts-API#8195 adds
view=summarytoGET /v1/adsandGET /v1/ads/ad-sets, anddepth=campaign|adset|adtoGET /v1/ads/tree. On real prod rows: a 100-ad page goes 375K → 74K chars (typical) and 741K → 167K (biggest), and the biggest tree page (20 campaigns) 6.48M → 103K chars withdepth=campaign. These three tools carry most of the MCP's returned chars, so the MCP should ask for the slim forms by default.What
AGENT_VIEWS:listAdsandlistAdSetsdefaultviewtosummary.AGENT_DEPTHS:getAdTreedefaultsdepthtocampaign. The agent can still passfull/ad._with_agent_viewnow applies both through one helper; the tree description tells agents to passadsetwithcampaignIdfor one campaign's ad sets, oradfor everything.🤖 Generated with Claude Code