Check an agent's action against the limits its owner signed: budget cap, end date, allowed actions. Signed result. No money held
spend_limit_checkIs this action inside the limits an owner signed for a long-running agent? Send the signed scope (agent, budget cap, end date, allowed actions; signed by the owner's Ed25519 key), the action, amount and currency the agent wants, and optionally spent_so_far and expected_principal (the owner's public key you trust). Get back allow, deny or invalid, every check with pass or fail, what is left of the budget, and a signed record anyone can verify. No money is held or moved. It does not show who the owner is, that the scope was not revoked (nothing is stored), or that spent_so_far is true. Free.
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": {
"scope": "<scope>",
"request": "<request>"
},
"name": "spend_limit_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | ||
| request | Yes | ||
| spent_so_far | No | decimal text; what the agent has already spent under this scope (your statement; not verified) | |
| expected_principal | No | the owner's public key you expect; if it differs the scope is refused |