Return Only the Fields the Agent Uses, Not the Whole API Object

~80โ€“90% of a tool response's tokens Intermediate 3 min read

MCP tools that wrap REST APIs return 40โ€“50 fields per row when the agent reads three, and a stateless API re-bills that bloat every turn. Add a `fields` parameter and project on the server before the response ever reaches the context window.

๐Ÿ”’ Pro tip ยท Intermediate

Unlock this tip โ€” and 122 more

This is one of 123 advanced, fact-checked tactics reserved for Pro. Get the full 145-tip library, a searchable archive, and a new tip every morning. Free for 7 days, then $9/mo.

Prefer to browse? The 22 Beginner tips are free forever.