Skip to main content
Glama

Edit an AI agent

update_agent
DestructiveIdempotent

Replace editable settings of an owned agent; includes schedule settings. Voice agents use their dedicated UI. Returns awaiting_confirmation and an approval_url: the owner must approve these exact parameters in Cormak, then retry with the SAME request_id. No work starts before approval. Reuse request_id on retries.

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": {
      "request_id": "<request_id>",
      "agent_id": "<agent_id>",
      "agent": "<agent>"
    },
    "name": "update_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentYes
agent_idYes
request_idYesStable UUID for this exact operation. Reuse on retries. Never change it to retry an unknown result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior5/5

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

Goes well past the annotations (destructiveHint, idempotentHint, openWorldHint) by disclosing the two-phase approval gate: no work starts before owner approval in Cormak, and retries must reuse the same request_id. It also names the return signals (awaiting_confirmation, approval_url), which annotations cannot convey. Consistent with idempotentHint=true and destructiveHint=true.

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?

Four short sentences, front-loaded with the scope statement, then the voice-agent exclusion, then the approval/retry mechanics. Dense and largely waste-free; the two request_id sentences partially overlap ('retry with the SAME request_id' and 'Reuse request_id on retries') but the redundancy reinforces a safety-critical rule.

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

Completeness3/5

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

The async approval flow and retry contract are fully covered, which is the hardest part of this destructive, open-world mutation. What is missing is the replacement semantics for the 15-field nested agent object (must all fields be provided? do omitted settings reset?), leaving a real gap for an agent composing the payload.

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

Parameters2/5

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

Schema coverage is only 33% — request_id is documented in the schema, but agent_id and the nested agent object with 15 required fields have no per-field descriptions. The description's 'Replace' wording hints that the payload is a full replacement and that schedule settings are included, but it never states that every field must be supplied and that unspecified settings are overwritten, which is the critical semantic for a 15-field required nested object.

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

Purpose4/5

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

States a specific verb and resource ('Replace editable settings of an owned agent') and scopes it further by noting schedule settings are included and that voice agents use a different UI. It does not differentiate itself from the other update_* siblings (update_business, update_employee, update_task), but the resource is unambiguous.

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

Usage Guidelines4/5

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

Gives a clear exclusion ('Voice agents use their dedicated UI') and a precise operational context: call, receive awaiting_confirmation, have the owner approve, retry with the same request_id. It does not say when to prefer this over pause_agent/activate_agent or when a full replace is inappropriate, but the workflow guidance is concrete.

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.