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.
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()