set_budget
Define a budget for LLM token spending per period and receive alerts when usage reaches a set percentage of the limit.
Instructions
Set a spending budget with alert threshold.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"label": "<label>",
"period": "<period>",
"limit_usd": "<limit_usd>"
},
"name": "set_budget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Name for this budget, e.g. 'dev-work' | |
| period | Yes | ||
| limit_usd | Yes | USD limit for the period | |
| alert_pct | No |