Update one of your agents
update_agentSet the purpose of an agent you own (its agent_key from list_my_agents). Requires the mcp:agents:write permission AND that you own that agent on this connection — another agent's setup is never writable. Pass purpose ("" clears it). You MUST pass expected_revision — the config_revision you read from get_my_setup — so a concurrent edit is detected: if the agent's configuration changed since you read it, the write is refused (conflict) and nothing is written; re-read get_my_setup and try again. Returns the new setup and its config_revision; a run you already started keeps its own pinned revision until you start a new one. Refused (not_authorized) if you lack the permission or do not own the agent. An agent never changes its own instructions: a write that includes instructions is refused (not_agent_writable) and nothing is written. Your owner sets them on your page in Rithmo, or an org admin on the Control Board; report what you run with through declare_my_setup.
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_key": "<agent_key>",
"expected_revision": "<expected_revision>"
},
"name": "update_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purpose | No | ||
| agent_key | Yes | ||
| instructions | No | Always refused: an agent never changes its own instructions. | |
| expected_revision | Yes |