CloudQuery builds MCP server connecting Claude and Cursor to cloud infrastructure database: lessons learned on tool descriptions, context windows, and LLM behavior
When CloudQuery wired Claude and Cursor into their cloud infrastructure database via an MCP server, sparse tool descriptions caused the LLM to hallucinate table schemas, ignore tools entirely, or misinterpret their purpose; a single schema dump could also consume nearly the entire context window.
Initial terse tool descriptions caused Claude to call tools sparingly or skip them; a tool named 'example_queries' was never invoked during two weeks of testing despite explicit prompting.
After rewriting tool descriptions with domain-specific detail, embedding explicit workflow sequences, renaming tools, and filtering schema output, token usage dropped by about 90%, and Claude could handle over 20 table schemas simultaneously instead of choking after 3 to 4.
Show all 6 reported metrics
Frequently asked questions
What did this team achieve with this AI workflow?
After rewriting tool descriptions with domain-specific detail, embedding explicit workflow sequences, renaming tools, and filtering schema output, token usage dropped by about 90%, and Claude could handle over 20 tabl…
What tools did this team use?
Claude, Cursor, ClickHouse.
What results were reported?
Token usage reduction after schema filtering: 90%; Table schemas handled simultaneously after fix: over 20 table schemas at once rather than choking after 3 to 4; Tool description character count change: increased from ~50 to ~400; Tool selection accuracy improvement with richer descriptions (cited research): ~30% on average (source-reported, not independently verified).
What failed first in this deployment?
Initial terse tool descriptions caused Claude to call tools sparingly or skip them; a tool named 'example_queries' was never invoked during two weeks of testing despite explicit prompting.
How is this back office ops AI workflow structured?
User queries via Claude or Cursor → LLM selects tools from descriptions → Schema output filtered for context → Sequential discovery pipeline → SQL query executed.