Budget and spend
get_budgetYour monthly and daily budget limits, what has been spent this month and today, what running jobs have reserved and what is left. Check it before a large batch or an expensive compute class; a price limit for a single job is set with max_cost when the job is started.
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_budget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alert | No | Spend reached the alert threshold. | |
| blocked | No | No new paid work fits into the budget. | |
| currency | No | Billing currency. | |
| left_today | No | Left today, if there is a daily limit. | |
| daily_limit | No | Daily limit (micros and amount), or null. | |
| spent_today | No | Spent today (micros and amount). | |
| monthly_limit | No | Monthly limit (micros and amount), or null. | |
| left_this_month | No | Left this month, if there is a monthly limit. | |
| spent_this_month | No | Spent this month (micros and amount). | |
| reserved_by_running_jobs | No | Reserved by running jobs (micros and amount). |