check_action
Ask Leashgate whether an agent may run an action (refund, delete, send email, payment...) BEFORE running it. Returns allow, approval_required (a human must approve), block or quarantine. Only run the action when the decision is allow.
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": {
"action": "<action>"
},
"name": "check_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | Name of the agent taking the action. | |
| action | Yes | Action name, e.g. refund_customer or delete_rows. | |
| params | No | The action's parameters, e.g. { amount: 4800, order_id: 'A-1042' }. |