On this page
Reference
ctx_cost
Input contract and parameters for ctx_cost.
MCP tool · Analysis tools
Call this tool through your MCP client. Its availability depends on your active configuration and profile.
This registry contract is separate from the SDK. For terminal commands, use the CLI reference.
Parameters
Generated from the registered input schema. “Required” reflects the schema; individual actions can impose additional requirements.
actionstringreport|agent|tools|json|reset|status
Accepted: reportagenttoolsjsonresetstatus
agent_idstringAgent ID
limitintegerMax rows
Exact JSON schema
Inspect the complete input schema
{
"properties": {
"action": {
"description": "report|agent|tools|json|reset|status",
"enum": [
"report",
"agent",
"tools",
"json",
"reset",
"status"
],
"type": "string"
},
"agent_id": {
"description": "Agent ID",
"type": "string"
},
"limit": {
"description": "Max rows",
"type": "integer"
}
},
"required": [],
"type": "object"
}Runtime description
The following is the tool's own agent-facing description, reproduced from the reviewed registry. It can contain implementation terminology; it does not expand the public stability commitment.
Read the agent-facing description
Cost attribution — track tokens and cost per agent/tool call. Local-first, no external billing.
Actions: report (summary), agent (per-agent), tools (per-tool), json (machine), status (live), reset (zero).
WORKFLOW: call report to find top cost drivers, then agent/tools for detail.Sources & versions
- mcp_manifest.rsrust/src/core/mcp_manifest.rsReviewed checkout
- registry.rsrust/src/server/registry.rsReviewed checkout
- dynamic_tools.rsrust/src/server/dynamic_tools.rsReviewed checkout
- Core checkout
50fbff09c9- Installed runtime
- 3.10.2
- SDK release
- 1.1.0
Separate baselines for source, CLI/configuration and SDK contracts. Review does not certify every platform or integration.
Versions & compatibility