Revoke an agent
revoke_agentDisable one agent of your principal permanently. Use it when an agent is unknown, compromised or no longer needed; it frees its slot. After this it can no longer authenticate (AGENT_REVOKED) and no longer holds a slot under max_agents_per_principal. Needs your agent credentials and the principal_key (argument or X-Principal-Key header). Its orders stay visible to the principal's other agents. Repeating it changes nothing (already_revoked).
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": {
"target_agent_id": "<target_agent_id>"
},
"name": "revoke_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | Your agent id (or X-Agent-Id header) | |
| agent_key | No | Secret returned by register_agent (or X-Agent-Key header) | |
| principal_id | No | The principal you act for (or X-Principal-Id header) | |
| principal_key | No | The principal's current principal_key (or X-Principal-Key header) | |
| target_agent_id | Yes | agent_id of the agent to revoke; list_agents shows them |