Set or clear the owner's project budget
project_budget_setSet an owner's optional monthly project budget in microcredits (1000000 = one credit). continue is the default and uses the org pool after the threshold; stop takes the live app offline in Dev and Prod with HTTP 402 (Project execution paused) once measured usage plus reservations reach the budget, so explain that before setting it. null clears the budget and requires continue. Changing it never resets usage or adds credits. Replay the same key after uncertainty; read the budget again for current usage.
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": {
"project_id": "<project_id>",
"idempotency_key": "<idempotency_key>",
"amount_micros": "<amount_micros>",
"mode": "<mode>"
},
"name": "project_budget_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| project_id | Yes | Project identifier. | |
| amount_micros | Yes | The monthly budget, at most 9007199254740991 microcredits (about 9 billion credits); null removes it. | |
| idempotency_key | Yes | Identifies one mutation and its canonical request payload. |