Request Spend Approval
ledger_request_approvalRequest a one-shot spend exception when a budget cap would block a transaction. Creates a pending permit an owner can approve or deny, consumed by the next matching entry.
Instructions
Ask your workspace owner for a one-shot spend exception before a ledger_track that the cap would refuse.
Creates a pending permit for exactly amount_cents on the given service. The owner (a human, or a supervisor agent holding the workspace_key) approves or denies it with ledger_approval_decide. An APPROVED permit is consumed by the next ledger_track for this agent whose amount fits inside it — the budget cap itself does not change. Permits expire after 1 hour undecided. Poll with ledger_approvals to see the decision.
Claiming a brand-new agent_id requires workspace_key; otherwise pass the agent's agent_secret.
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": {
"agent_id": "<agent_id>",
"amount_cents": "<amount_cents>",
"service": "<service>"
},
"name": "ledger_request_approval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | why, one line — shown to the approver | |
| service | Yes | what the money is for (e.g. "openai:gpt-5 batch eval") | |
| agent_id | Yes | the agent asking for the exception | |
| agent_secret | No | the agent's own secret (either this or workspace_key) | |
| amount_cents | Yes | the spend to be approved, in cents | |
| workspace_key | No | the owning workspace's key (either this or agent_secret) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||