Skip to main content
Glama

Update agent

update_agent
DestructiveIdempotent

Update an agent's name, system-style description (role instructions), and/or whether it can read and write project data itself. Get agent ids from list_agents. At least one of name, description or enableProjectTool is required.

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

Input Schema

NameRequiredDescriptionDefault
nameNoNew display name
agentIdYesAgent ID from `list_agents`
spaceIdYesSpace ID
descriptionNoNew system-style role instructions (AgentData.description), e.g. "You are an SDR..."
enableProjectToolNoGive (true) or take away (false) this agent's own project read/write tool. Enabling also turns knowledge on, which the tool requires. Needed before `prompt_agent` can have the agent change project data.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Adds behavior beyond the annotations: enabling the project tool also turns knowledge on, which the tool requires, and the flag is a precondition for prompt_agent writing project data. It does not warn that supplying name or description overwrites existing values, which matters given destructiveHint=true, so a small gap remains.

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?

Three sentences, front-loaded: what can be changed, where ids come from, then the at-least-one constraint. No filler or repetition.

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?

Covers fields, id source, the at-least-one constraint, and a coupling (knowledge auto-enabled) that would otherwise surprise an agent. It does not say whether omitted fields are preserved on partial update, nor flag the destructive replacement of existing role instructions, which is a meaningful gap for a mutation tool with no output schema.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents all five parameters, and the description largely restates them. It does add one genuine cross-parameter rule not expressible in the schema (at least one of name, description, or enableProjectTool required) and clarifies the tool enables project read/write. Baseline 3 is appropriate.

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?

Specific verb (update) plus the exact mutable fields (name, role description, project-tool flag), which cleanly separates it from create_agent, delete_agent, and get_agent in the sibling list. An agent can identify the tool's job without opening the schema.

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 the prerequisite for agentId ("Get agent ids from `list_agents`") and a sequencing rule (enableProjectTool is "Needed before `prompt_agent` can have the agent change project data"). It does not explicitly state when not to use it (e.g., vs. create_agent for new agents), but the update context is clear.

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.