budget_estimate
Predict if an operation will hit 402 or 429 errors before you spend. Use amount for KVP, storage, or RAG queries, or textLength/byteLength for RAG indexing.
Instructions
Estimate whether an operation would hit 402/429 before spending. For rag_index you can pass textLength/byteLength instead of amount.
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": {
"kind": "<kind>"
},
"name": "budget_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| amount | No | ||
| byteLength | No | ||
| textLength | No |