Get Cost Summary
metrx_get_cost_summaryRetrieve a comprehensive cost summary for your AI agent fleet: total spend, call counts, error rates, agent breakdown, revenue attribution, and optimization opportunities for a chosen period.
Instructions
Get a comprehensive cost summary for your AI agent fleet. Returns total spend, call counts, error rates, agent breakdown, revenue attribution (if available), and optimization opportunities. Use this as the starting point for understanding your agent economics. Do NOT use for real-time per-request cost checking — use OpenTelemetry spans for that. Requires an API key with the 'read' scope.
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": "metrx_get_cost_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period_days | No | Number of days to include in the summary (default: 30) |