Approve or Deny a Spend Request
ledger_approval_decideApprove or deny a pending agent spend permit as workspace owner. Decisions apply only to pending requests, and an approved permit is a one-shot exception for the next tracked spend.
Instructions
Approve or deny a pending spend permit — workspace owner only.
The agent's own agent_secret can REQUEST an approval but can never decide one: a credential that can approve its own requests is not a control. decision must be 'approve' or 'deny'; only pending permits can be decided. An approved permit is consumed by the agent's next ledger_track within its amount — it is a one-shot exception, not a raised cap.
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>",
"approval_id": "<approval_id>",
"decision": "<decision>",
"workspace_key": "<workspace_key>"
},
"name": "ledger_approval_decide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | the agent that requested the permit | |
| decision | Yes | 'approve' or 'deny' | |
| approval_id | Yes | the apr_ id from ledger_request_approval / ledger_approvals | |
| workspace_key | Yes | the key of the workspace that owns the agent |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||