Problem
The ctx_execute tool schema's intent parameter description says:
"Use search(queries: [...]) to retrieve specific sections"
search() is not injected into any scope — calling it produces ReferenceError: search is not defined. The actual retrieval mechanism is the separate ctx_search MCP tool.
Impact
Every agent session that loads the tool schema sees instructions to call a function that doesn't exist. Agents without corrective documentation in their rules/context attempt search(), fail, and fall back to unstructured approaches.
Suggested fix
Update the intent parameter description to reference ctx_search MCP tool:
"Results matching the intent are returned inline for large outputs (>5KB). Use the ctx_search tool for follow-up queries against the same indexed content."
Environment
- context-mode v1.0.98
- Claude Code (Anthropic CLI)
Problem
The
ctx_executetool schema'sintentparameter description says:search()is not injected into any scope — calling it producesReferenceError: search is not defined. The actual retrieval mechanism is the separatectx_searchMCP tool.Impact
Every agent session that loads the tool schema sees instructions to call a function that doesn't exist. Agents without corrective documentation in their rules/context attempt
search(), fail, and fall back to unstructured approaches.Suggested fix
Update the
intentparameter description to referencectx_searchMCP tool:Environment