Redeem an action grant
redeem_action_grantSpend the single-use grant request_action gave you, immediately before the allowed action, and act only if the answer is redeemed. A grant is good for one action; any other answer means do not act. Details: maplith://docs/mcp. Needs: a key with an action policy (Sources › Agents), where Maplith signs grants.
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": {
"grant_id": "<grant_id>",
"request_id": "<request_id>",
"digest": "<digest>",
"system": "<system>",
"operation": "<operation>",
"target_kind": "<target_kind>"
},
"name": "redeem_action_grant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| digest | Yes | The grant's digest, passed through unchanged. | |
| system | Yes | The system you act in, e.g. "payments"; checked against the request. | |
| grant_id | Yes | From the grant request_action returned. | |
| operation | Yes | The operation, e.g. "issue_refund"; checked against the request. | |
| request_id | Yes | The request your job names, NOT copied from the grant. | |
| target_kind | Yes | What you act on, e.g. "order"; checked against the request. | |
| param_digest | No | Compute base64url(HMAC-SHA256(key: base64url-decoded param_salt, message: 'maplith-action-params/v1' + newline + canonical {system, operation, target, params} as sent to request_action)). Recipe: maplith://docs/mcp. |