Table of Contents

Unused tool pruning

IF a tool is advertised to the agent but used in fewer than 5% of sessions → THEN remove it from the agent's toolset → RESULT every turn stops paying to describe a tool the agent never calls, and the token saving is projected per turn.

The signal in the agentic log

  • Signal: a tool present in offered_tools / tools_offered / available_tools metadata (or one that was used at some point) is used in < 5% of sessions.
  • Field source: CustomMetadata tool inventory, ToolCalls, SessionId.
  • Requires the offered-tool inventory in metadata; without it the log cannot tell "unused" from "never advertised".

The setup

  1. Confirm the MCP companion behind the tool is healthy and fresh — otherwise "unused" may really mean "unavailable". See MCP companions.
  2. Accept the unused-tool pruning recommendation.
  3. Remove the tool from the agent's manifest.

The result

  • Projected saving is about 100 tokens per tool per turn across all turns, at the input rate, per month.
  • A smaller toolset also reduces the chance the model picks the wrong tool.

Behind it