Skip to main content
Glama

update_agent

DestructiveIdempotent

Modify an agent's name, description, metadata, or active/paused status; setting status restores a decommissioned agent and makes its calendars writable. Requires an Organization key.

Instructions

Update an agent's name, description, metadata, or status (active/paused). Setting status on a decommissioned agent restores it and makes its calendars writable again; that is refused with quota_exceeded when the agent, its calendars or their recurring series would put the organization over the plan's agent, calendar or recurring series limit. Requires an Organization key — Agent keys cannot mutate agents.

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
nameNoNew display name
statusNoOperational status
agent_idYesAgent ID to update
metadataNoArbitrary metadata (max 16KB)
descriptionNoNew description (null to clear)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.8.4
    • addedInput schema / properties / agent_id / maxLength
      Added value: +128
    • addedInput schema / properties / agent_id / minLength
      Added value: +1
    • addedInput schema / properties / agent_id / pattern
      Added value: +"^[A-Za-z0-9_-]*$"
  2. Changed2 schema fields changedv1.6.2
    • addedInput schema / properties / description / anyOf
      Added value: +[
      +  {
      +    "maxLength": 5000,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / description / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
  3. Changed2 schema fields changedv1.5.3
    • removedInput schema / properties / description / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / description / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  4. First observedv1.2.5

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description goes beyond them by disclosing the restore side effect on calendars, the specific quota_exceeded failure condition across three resource limits, and the key-type authorization requirement. It does not say whether omitted fields are left untouched or whether metadata replaces or merges, which matters for a destructive update.

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?

Three sentences, purpose first, followed by restore semantics and the authorization constraint — no filler. The quota sentence is long and multi-clause, which slightly taxes readability, but every clause carries actionable information.

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

Completeness4/5

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

For a destructive 5-parameter mutation tool with no output schema, the description covers purpose, authorization, side effects, and the primary failure mode. The main remaining gap is update semantics for partially specified inputs (particularly the nested metadata object), which an agent would need before calling it confidently.

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 baseline is 3, but the description adds real meaning for the status parameter: that 'active' on a decommissioned agent is a restoration that re-enables calendar writes, which the bare enum does not convey. Other parameters receive no additional semantics beyond the schema text.

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?

States a specific verb (update) and resource (agent) plus the exact mutable fields: name, description, metadata, status. The '(active/paused)' qualifier and the mutating nature of the tool make it trivially separable from create_agent, delete_agent, and 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 Guidelines4/5

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

Gives clear operating context: an Organization key is mandatory, agent keys cannot mutate agents, and setting status on a decommissioned agent restores it. It stops short of naming alternatives or stating when-not to use it (e.g., use delete_agent instead of pausing for permanent removal), so it sits below the explicit-routing tier.

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