Set an agent's approvals
set_agent_approvalsChoose the approval policy for the agent's approvals and, per tool, require approval always / never / default (optionally with its own policy). Choose what the agent does once it has asked: flow 'wait' (stops until decided) or 'continue' (the request is recorded and the agent carries on; several can be open in one conversation and decided in any order, the outcome is posted back). A tool the organization locked cannot be turned off or moved to another policy. Policies are created in Governance -> Approvals.
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_id": "<agent_id>"
},
"name": "set_agent_approvals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | No | While a request is waiting: wait (default) or continue; empty = back to wait. | |
| tools | No | Per-tool rules: {"<tool>": {"require": "always"|"never"|"default", "policy_id"?: "<id>", "flow"?: "wait"|"continue"}}; null for a tool removes its rule. | |
| report | No | With continue, when a request is decided: record (post the outcome) or respond (the agent also reacts); empty = record. | |
| replace | No | True = the given tool rules replace all existing ones. | |
| agent_id | Yes | Target agent's id (from list_agents / create_agent / get_catalog view=agents). | |
| policy_id | No | Approval policy id for this agent (from get_agent_approvals); empty = organization default. |