Review Token Usage
Use Monitor > Tokens to review token usage and optimization opportunities across MCP servers, toolkits, skills, and tool responses.
The page has two modes:
- Analyze shows usage metrics and context breakdowns.
- Optimize shows recommended actions and savings estimates.
Open Tokens
- Open Monitor > Tokens.
- Set the Start Date and End Date.
- Use Advanced Filters when you need to narrow results by user, AI agent, MCP server, or tool.
- Select Analyze, Optimize, or Devices depending on the task.

The Analyze view starts with four summary metrics:
| Metric | What it counts |
|---|---|
| Est. Conversation Spend | Estimated cost of the conversations in the window, with the token count beside it. |
| Response Tokens | Tokens returned by tools. |
| Init Context Tokens | Tokens loaded before any tool runs, with the session count beside it. |
| Avg Tokens/Call | Mean tokens per tool call. |
Below them, Tool Token Usage charts request, response, and raw response tokens, where the gap between raw and response is what response mapping saved. Toolkit Context Savings compares actual toolkit init tokens against the projected cost of exposing every MCP tool. Biggest spenders, used models, and messages per conversation appear further down when there is data for them.
Recommended actions
The Optimize view groups suggested work into actions with estimated savings. Which recommendations appear depends on your own usage; the common ones are:
| Recommendation | Why it helps |
|---|---|
| Build toolkits for high-context MCP servers | MCP servers expose every tool definition to the agent. Curating a toolkit with only the tools a workflow needs reduces fixed context on every conversation. |
| Reduce skill size | Skills are injected into every conversation. Moving long examples or documentation into references lowers the baseline session cost. |

Use the recommendation cards as the starting point. Then open the related detail page to identify the exact server, toolkit, skill, or tool response to change.
Build toolkits recommendation
The Build toolkits for high-context MCP servers card points you toward MCP servers whose full tool list is adding too much context. Its next step is usually MCP Context, followed by creating or tightening a toolkit.

Reduce skill size recommendation
The Reduce skill size card points you toward oversized skills. Its next step is Skill Token Analysis, where you can review the skill and extract long content into references.

Analyze cards
Further down, the Analyze view summarizes the major context and response token sources.
| Card | What it means |
|---|---|
| MCP Context | Tool descriptions and input schemas loaded from MCP servers. |
| Toolkit Context | Context exposed by curated toolkits. |
| Skills Context | Skill content loaded into conversations. |
| Tool Responses | Tool outputs and response-mapping opportunities. |
Cards show totals, health indicators, and a View all action. Open the full view when a card shows a high count, a high token total, or an item marked for optimization.
MCP Context card
The MCP Context card opens MCP Context. Use it when one MCP server exposes many tools or has a large tool-description and input-schema footprint.

Toolkit Context card
The Toolkit Context card opens Toolkit Context. Use it to compare curated tool subsets and find toolkits that can be split or tightened.

Skills Context card
The Skills Context card opens Skill Token Analysis. Use it when a skill is large enough to raise the baseline cost of every conversation where it is loaded.

Tool Responses card
The Tool Responses card opens Tool Response Optimization. Use it to find tool outputs that need response mappings or output-format changes.

Devices view
The Devices tab reports AI agent token usage collected from managed devices, rather than traffic through the gateway. Use it to see what agents cost on developer machines, including activity the gateway never sees.

Two filters at the top narrow the view by AI agent and by model. Below them, four summary cards show estimated device spend, messages and the tool calls behind them, sessions, and the number of devices reporting with the user count.
| Panel | What it shows |
|---|---|
| Tokens by Model Over Time | Daily input plus output tokens per model, parsed from local agent transcripts on managed devices. |
| Model Usage | Estimated cost by model, covering input, output, and cache-read tokens, priced per model. |
| Usage by User | Device-collected AI agent usage attributed to organization users. |
| Usage by Device | Every managed device that reported AI agent token usage. |
Where the data comes from
This view is populated by AI Discovery scan agents, not by the gateway. Until scan agents report AI agent activity, the panels stay empty with the message that data appears once scan agents with the device token usage feature report activity.
If the Devices tab is empty while the Analyze tab has data, that is expected: Analyze reflects gateway traffic, and Devices reflects what scan agents observe on managed machines. Confirm scan agents are deployed and reporting before troubleshooting further.
Empty states
Some areas can show no data when Willow has not recorded enough token-tracked activity in the selected period. If that happens:
- widen the date range
- remove advanced filters
- run tool calls through a connected AI client
- confirm Token Usage Analytics is enabled
- for the Devices tab, confirm scan agents are deployed and reporting