cost_guard_status
Monitor API budget usage by checking remaining funds, percentage spent, and detailed call information to prevent overspending.
Instructions
Check current budget spend — how much is left, percentage used, call details.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cost_guard_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/agent_safety_mcp/server.py:124-127 (handler)The handler for the cost_guard_status tool, which returns the status from the guard object.
@mcp.tool() def cost_guard_status() -> dict: """Check current budget spend — how much is left, percentage used, call details.""" return _get_guard().status()