Metadata
| Field | Value |
|---|---|
| Name | agent.budget.revoke |
| Category | treasury |
| Required scope | agent:budget:revoke |
| Idempotency key required | no |
Annotations
| Annotation | Value |
|---|---|
| Title | Revoke Agent Budget |
| Read-only | no |
| Destructive | yes |
| Idempotent | yes |
| Open-world | no |
| Requires human approval | no |
Input schema
Output schema
Auth
Caller’s grant must include theagent:budget:revoke scope. Grants whose scope set is a superset of the required scope are accepted.
Request examples
Response examples
Success — agent revoked and sweep queued:Errors
| Code | Name | Cause | Remediation |
|---|---|---|---|
-32600 | Invalid request | Malformed JSON-RPC envelope | Check method, jsonrpc, and id fields |
-32602 | Invalid params | agent_principal_id not a valid UUID, or agent was already revoked | Check reason_id — already_revoked means a prior call succeeded |
-32001 | Unauthorized | Grant belongs to a different tenant than the target agent | Confirm agent_principal_id was created by the calling entity |
-32002 | Policy denied | Grant missing agent:budget:revoke scope | Issue a new grant with the required scope |
-32603 | Internal error | Sweep-plan write failed; agent row is revoked but sweep may need manual trigger | Check sweep_plan_queued in a retry response |