Expand description
§Progressive Tool View
Token-efficient tool definition management for LLM requests.
§Problem
Sending full JSON Schema definitions for all tools on every LLM request wastes significant tokens. A workspace with 10+ MCP tools can easily consume 700+ tokens on schema alone — even for simple chat messages that don’t need any tools.
§Solution
ProgressiveToolView implements a “menu first, recipe on demand” strategy:
- Initial state (~50 tokens): system prompt includes only tool names and one-line descriptions.
- On activation: when the LLM mentions
$tool_nameor actually calls a tool, that tool’s full schema is included in subsequent requests.
This typically saves 90%+ of tool-related token usage for simple conversations, and progressively reveals schemas as the agent needs them.
Structs§
- Progressive
Tool View - Token-efficient tool view that progressively reveals tool schemas.