Skip to main content
Glama

Update an AI agent

update_agent
Destructive

Apply the same generic PATCH fields and validation as PATCH /v1/agents/{agent_id}; unknown fields retain REST's no-op compatibility behavior.

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": "update_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
nameNo
modelNo
toolsNoOmit for a hosted agent to get the built-in end_call. A list is taken as written; an empty list creates an agent that cannot end a call.
voiceNo
statusNo
agent_idYes
languageNo
metadataNo
transcriberNo
translationNo
webhook_urlNo
call_summaryNoThe free AI call summary: enabled (default true) and an optional goal line (at most 4000 characters) the call is judged against.
begin_messageNo
first_messageNo
system_promptNo
audio_stream_urlNo
recording_enabledNo
component_credential_bindingsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / tools / description
      Added value: +"Omit for a hosted agent to get the built-in end_call. A list is taken as written; an empty list creates an agent that cannot end a call."
  2. Changed1 schema field changed
    • addedInput schema / properties / call_summary
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The free AI call summary: enabled (default true) and an optional goal line (at most 4000 characters) the call is judged against.",
      +  "properties": {
      +    "enabled": {
      +      "type": "boolean"
      +    },
      +    "goal": {
      +      "maxLength": 4000,
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

C2.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and readOnlyHint=false, so the safety profile is carried structurally. The description does add one non-obvious trait not in the annotations: unknown fields are silently ignored rather than erroring, which matters for a mutation tool. However, it says nothing about whether omitted fields are preserved, what validation failures look like, or what the destructive impact actually is.

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

Conciseness3/5

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

It is a single tight sentence with the key caveat placed last, so there is no padding to cut. But the brevity is achieved by offloading the substance to an external REST reference, which is structural laziness rather than economy.

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

Completeness2/5

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

A destructive, non-idempotent mutation over 19 mostly undocumented parameters, with no output schema and no explanation of return behavior, needs far more than one sentence. The definition leaves the agent unable to determine what a successful update returns, whether partial updates are safe, or how the field-level validation rules work.

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?

With 19 parameters and only 11% schema description coverage, the description must compensate and does not — it explains zero individual fields, not even the required agent_id or the enum-constrained mode. The only parameter-level meaning present comes from the schema itself (the tools and call_summary descriptions), which the description merely points at via 'generic PATCH fields'.

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

Purpose3/5

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

The description names the target resource and the action (apply PATCH fields to an agent), but 'generic PATCH fields' is circular shorthand that defers meaning to an external REST endpoint the agent cannot inspect. It never states plainly that this modifies an existing agent's configuration, nor does it distinguish the operation from siblings like create_agent, duplicate_agent, or set_agent_variables.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing about when to prefer update_agent over set_agent_variables, set_agent_voice_stack, or connect_external_agent, and no prerequisite such as reading the agent with get_agent first. The only guidance offered is a caveat about unknown fields being no-ops, which is behavioral rather than selectional.

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.