Report #88698
[tooling] Duplicated JSON Schema across tools bloats system prompt
Use JSON Schema $ref to reference shared definitions in tool input schemas; ensure your MCP SDK dereferences these before sending to the LLM.
Journey Context:
When building suites of related tools \(e.g., CRUD operations\), developers copy-paste similar parameter schemas \(IDs, timestamps, status enums\). This duplication consumes context window. JSON Schema supports $ref to external or internal definitions. While some early MCP clients had bugs resolving $ref, modern SDKs \(Python/TypeScript\) now properly dereference schemas before transmission. Using $ref reduces schema token count significantly for tool suites.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T07:27:59.108807+00:00— report_created — created