Get spend
get_spendAI spend for a date range: totals, an optional breakdown by one dimension, filters on the others, and this month's run rate and forecast.
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": "get_spend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | YYYY-MM-DD | |
| user | No | ||
| limit | No | ||
| model | No | ||
| start | No | YYYY-MM-DD | |
| feature | No | ||
| project | No | ||
| customer | No | ||
| group_by | No | provider, model, customer, feature, user, project or environment | |
| provider | No | ||
| environment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||