Skip to main content
Glama

Update an AI agent

update_agent
Destructive

Change how an AI agent answers. Only the fields given change; instructions and lists replace the previous ones, so start from get_agent's. A deployed agent uses the new settings at once. Returns the agent; suggest test_agent next.

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": {
      "agentId": "<agentId>"
    },
    "name": "update_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe name customers see.
modelNo`fast` answers sooner on a lighter model; null for the default.
agentIdYesThe agent id, from list_agents.
greetingNoThe first chat message visitors see.
teamNameNoThe team the agent signs as, such as `Acme Support`.
signatureNoThe sign-off on email replies.
descriptionNoA note for teammates on what the agent is for.
instructionsNoHow it answers, in plain words: tone, policies, what to hand to a person.
botIdentifierNoHow it says what it is in its replies, always as an AI, such as `virtual assistant`. It still introduces itself by its name.
usePastTicketsNoDrafts for the team to review follow how it answered similar questions in past conversations. Replies sent without review do not read them.
collectedFieldsNoCustom fields to collect in chat, in order (list_custom_fields ids).
suggestedActionsNoChat buttons visitors can tap.
knowledgeSetNamesNoKnowledge source names (list_knowledge_sources); empty for all.
contactInformationNoHow customers reach a person, for when the agent hands over.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / botIdentifier / description
      Previous value: -"What it calls itself when asked, such as `AI agent`."New value: +"How it says what it is in its replies, always as an AI, such as `virtual assistant`. It still introduces itself by its name."
  2. Changed1 schema field changed
    • changedInput schema / properties / usePastTickets / description
      Previous value: -"Draw on how the team answered past conversations."New value: +"Drafts for the team to review follow how it answered similar questions in past conversations. Replies sent without review do not read them."
  3. Changed1 schema field changed
    • changedInput schema / properties / instructions / maxLength
      Previous value: -20000New value: +6000
  4. Changed7 schema fields changed
    • addedInput schema / properties / botIdentifier
      Added value: +{
      +  "description": "What it calls itself when asked, such as `AI agent`.",
      +  "maxLength": 60,
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / collectedFields
      Added value: +{
      +  "description": "Custom fields to collect in chat, in order (list_custom_fields ids).",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "fieldId": {
      +        "maxLength": 64,
      +        "type": "string"
      +      },
      +      "mode": {
      +        "enum": [
      +          "extract",
      +          "ask_if_missing",
      +          "always_ask"
      +        ],
      +        "type": "string"
      +      },
      +      "required": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "fieldId"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 50,
      +  "type": "array",
      +  "uniqueItems": true
      +}
    • changedInput schema / properties / instructions / description
      Previous value: -"How the agent answers, in plain words (at most 20,000 characters)."New value: +"How it answers, in plain words: tone, policies, what to hand to a person."
    • addedInput schema / properties / knowledgeSetNames
      Added value: +{
      +  "description": "Knowledge source names (list_knowledge_sources); empty for all.",
      +  "items": {
      +    "maxLength": 120,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 50,
      +  "type": "array",
      +  "uniqueItems": true
      +}
    • addedInput schema / properties / model
      Added value: +{
      +  "description": "`fast` answers sooner on a lighter model; null for the default.",
      +  "enum": [
      +    "fast",
      +    "standard",
      +    null
      +  ],
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / suggestedActions
      Added value: +{
      +  "description": "Chat buttons visitors can tap.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "question": {
      +        "maxLength": 500,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "shortcut": {
      +        "maxLength": 80,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "shortcut",
      +      "question"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 10,
      +  "type": "array"
      +}
    • addedInput schema / properties / usePastTickets
      Added value: +{
      +  "description": "Draw on how the team answered past conversations.",
      +  "type": "boolean"
      +}
  5. Added

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantive behavior beyond the annotations: it discloses PATCH-style partial updates, the destructive replace semantics that justify destructiveHint=true, and the fact that a deployed agent picks up changes immediately. It also notes it returns the agent, which is necessary since no output schema exists. This is exactly the kind of context annotations cannot convey.

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

Conciseness5/5

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

Four tight sentences, each carrying a distinct payload: what changes, how omission is handled, deployment effect, and return value plus next step. The most consequential warning (replacement semantics) is front-loaded rather than buried.

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, no-output-schema mutation tool, the description covers write semantics, blast radius, immediate effect on live traffic, and the return value. Nothing an agent needs in order to call this safely 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 field-level meaning is already documented; the description adds cross-parameter semantics that the schema cannot express, namely that omitted fields are preserved while supplied lists are wholesale replacements. It does not explain ordering or interaction between collectedFields and knowledgeSetNames, but the critical replacement rule is covered.

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 ("Change how an AI agent answers") and implies the scope of editable settings. The framing is slightly narrow, since changing name, greeting, teamName, or contact information is not strictly about "how it answers," but an agent can still immediately tell this is the mutation counterpart to get_agent.

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 prescribes the workflow: read with get_agent before writing, because instructions and lists replace rather than merge. It also names the natural follow-up (test_agent), giving the agent both a prerequisite and a next step rather than leaving sequencing to inference.

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.