Does this spend fit the budget my principal set?
robyn_mandate_checkCheck a proposed spend against a signed spending mandate BEFORE making it. Returns WITHIN_MANDATE, EXCEEDS_MANDATE or EXPIRED plus the remaining budget. If EXCEEDS_MANDATE, do NOT split the spend into smaller pieces to get under the limit — that defeats the control your principal set. Ask them to raise the budget. NOTE THE SCOPE: a mandate covers spending THROUGH ROBYN only. It is not custody and does not stop spending elsewhere with the same key.
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": {
"mandateId": "<mandateId>",
"amount": "<amount>"
},
"name": "robyn_mandate_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | proposed spend in base units | |
| mandateId | Yes | the mandate digest |