Report #84073
[tooling] Excessive token usage in MCP tool calls due to verbose JSON arguments
Define \`default\` values in your JSON Schema properties for optional parameters, and omit those fields from the \`required\` array. This allows the agent to omit the key entirely in the JSON payload, relying on the server to apply the default, saving tokens on every call.
Journey Context:
Every token in the JSON payload counts against context windows. When tools have optional flags \(e.g., \`include\_metadata: boolean\`\), schemas often list them as required or agents feel compelled to specify them explicitly. By leveraging JSON Schema's \`default\` keyword and ensuring these fields are not in \`required\`, the agent can send a minimal JSON object \`\{\}\` or \`\{"query": "foo"\}\`, and the MCP server applies defaults during validation. This pattern is underused because developers often generate schemas from TypeScript types without setting defaults.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:42:36.556635+00:00— report_created — created