Expand description
Budget-aware reduction of tool schemas exposed to clients.
Structs§
- Surface
Reduction - Metrics and tool names produced by surface optimization.
- Tool
Schema - Schema metadata for one client-visible tool.
- Tool
Surface Optimizer - Applies count, token, and lifecycle limits to a tool surface.
Enums§
- Tool
Category - Stability tier for a client-visible tool.
Functions§
- compress_
schema - Returns a compact copy of a tool schema and recalculates its token estimate.
- format_
reduction_ summary - Formats headline surface-reduction metrics for logs and diagnostics.
- optimize_
for_ request - Bridge: optimize MCP tool schemas for the current request profile.
- should_
optimize_ tools - Returns true if tool surface optimization would save significant tokens.
- tool_
savings_ tokens - Returns the token savings from tool surface optimization.