Assign governance policies
set_governance_policiesAttach existing governance policies to the agent. mode=replace sets the exact list; add/remove adjust it.
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>",
"policy_ids": "<policy_ids>"
},
"name": "set_governance_policies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | How policy_ids is applied to the agent's current set. | |
| agent_id | Yes | Target agent's id (from list_agents / create_agent / get_catalog view=agents). | |
| policy_ids | Yes | Policy ids to assign (must already exist in this org). |