revise_grant
Update a grant's policy: spending cap, allowed programs, and expiry. Requires root signature; agent cannot self-revise or change identity.
Instructions
Replace Grant policy fields. Root signs. Agent cannot revise. Same policy rules as issue_grant. Cannot change the agent (different PDA).
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": "<agent>",
"spend_cap_lamports": "<spend_cap_lamports>",
"allowed_programs": "<allowed_programs>",
"expires_at_unix": "<expires_at_unix>"
},
"name": "revise_grant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Base58 Solana public key. Never a secret. | |
| agent | Yes | Agent whose grant PDA to revise | |
| label | No | ||
| dry_run | No | ||
| expires_at_unix | Yes | ||
| allowed_programs | Yes | ||
| sponsor_eligible | No | This grant may use YOUR paymaster — not a promise Grok Chain pays. | |
| spend_cap_lamports | Yes | Lamports as integer or decimal string. Not a vault debit. |