Skip to main content
Glama

Update agent

stack_update_agent
Destructive

Update 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

NameRequiredDescriptionDefault
nameNoNew name for the agent: lowercase letters, digits, hyphens or underscores, up to 64 characters. Must be free among the agents that are not retired.
statusNoSuspend or reactivate the agent
agent_idYesThe agent id (agt_*) to update
on_warningNoNew action on warning flags
descriptionNoNew description, up to 256 characters; null clears it
on_criticalNoNew action on critical flags
eval_trafficNoMark 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_skillsNoNew allowed-skills list (used when skill_access_mode is "custom")
llm_redact_piiNoToggle PII redaction of user messages before forwarding to the LLM provider (default: true). false sends user content unredacted — an explicit operator choice.
credential_accessNoNew credential proxy posture. Agents never receive raw credentials; proxy_only requires all credential use through STACK's proxy boundary.
skill_access_modeNoNew skill access policy
accountability_modeNoNew accountability mode
governance_approval_idNoApproval id (gvr_*) from a prior 403, after human approval in the dashboard
llm_inject_system_promptNoAccepted and ignored: it has no effect. STACK adds no system prompt to gateway calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / description
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 256,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "New description, up to 256 characters; null clears it"
      +}
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "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.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the destructiveHint annotation: discloses the 409 refusal for taken names, that approvals are single-use, payload-bound and expire after 24 hours, that a rejection changes nothing, and that key_mode is immutable after registration. The 403 GOVERNANCE_APPROVAL_REQUIRED payload and its approval_url are described, though the success response shape is left unstated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, and every sentence carries governance information rather than filler. The approval paragraph is long and syntactically dense, and the 'agents never receive raw credentials' clause partially duplicates the credential_access schema text, but the density is justified by the complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 14-parameter destructive mutation with no output schema, the description covers the essentials an agent needs: conflict handling, the approval round-trip and its expiry, immediate versus gated changes, and one hard immutable field. Nothing that would cause an incorrect call is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the per-field enums and formats are already documented. The description still adds real meaning on top: eval_traffic=true triggers approval while false does not, key_mode cannot be changed at all, and the credential posture constraint ('agents never receive raw credentials') is restated as policy rather than field syntax.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource — 'Update a registered agent' — then enumerates the mutable surface (name, description, settings). It further characterises the operation by distinguishing authority-neutral edits from authority-increasing ones, which makes it unmistakable against neighbours like register or retire.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states which changes apply immediately (tightening controls, suspension, allowed-skills edits, eval_traffic=false) versus which require human approval (reactivation, added authority, weaker safeguards, eval_traffic=true). It also names the alternative path when elicitation is unsupported, telling the agent exactly when to retry with governance_approval_id.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.