cost_guard_models
Lists supported AI models with per-token pricing to help manage API costs and enforce budget controls.
Instructions
List all supported models with their per-token pricing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/agent_safety_mcp/server.py:191-199 (handler)Handler implementation for the 'cost_guard_models' tool, which iterates through the PROVIDERS dictionary to return supported models and their pricing.
def cost_guard_models() -> dict: """List all supported models with their per-token pricing.""" models = {} for name, pricing in PROVIDERS.items(): models[name] = { "input_per_1M": round(pricing["input"] * 1_000_000, 2), "output_per_1M": round(pricing["output"] * 1_000_000, 2), } return models