Update agent
stack_update_agentUpdate a registered agent: rename it (name), change its description, or change its settings. Renaming and re-describing change no authority and need no approval; a name must be free among your agents that are not retired (a taken name is refused with 409). Tightening controls or suspending the agent applies immediately. Reactivation, added authority, or weaker safeguards (turning eval_traffic on included) require human approval; changing which skills the agent may use does not. When human approval is required and the chat client supports MCP elicitation, the person is asked to confirm the exact change in the client; the change is applied only after they approve, and a rejection changes nothing. Otherwise it returns GOVERNANCE_APPROVAL_REQUIRED with approval_id and approval_url, the page for that one approval, and the same payload sent with governance_approval_id after approval applies the change. An approval is single-use, bound to the exact payload, and expires after 24 hours. Agents never receive raw credentials. key_mode cannot be changed after registration.
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": "stack_update_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name for the agent: lowercase letters, digits, hyphens or underscores, up to 64 characters. Must be free among the agents that are not retired. | |
| status | No | Suspend or reactivate the agent | |
| agent_id | Yes | The agent id (agt_*) to update | |
| on_warning | No | New action on warning flags | |
| description | No | New description, up to 256 characters; null clears it | |
| on_critical | No | New action on critical flags | |
| eval_traffic | No | Mark or unmark this agent as test or benchmark traffic. true needs human approval; false applies immediately. Detection stays on either way; warnings of a marked agent arrive already resolved and send no notification, and criticals stay live. | |
| allowed_skills | No | New allowed-skills list (used when skill_access_mode is "custom") | |
| llm_redact_pii | No | Toggle PII redaction of user messages before forwarding to the LLM provider (default: true). false sends user content unredacted — an explicit operator choice. | |
| credential_access | No | New credential proxy posture. Agents never receive raw credentials; proxy_only requires all credential use through STACK's proxy boundary. | |
| skill_access_mode | No | New skill access policy | |
| accountability_mode | No | New accountability mode | |
| governance_approval_id | No | Approval id (gvr_*) from a prior 403, after human approval in the dashboard | |
| llm_inject_system_prompt | No | Accepted and ignored: it has no effect. STACK adds no system prompt to gateway calls. |