Skip to main content
Glama

Update a user

update_user
Idempotent

Change a user's name, email, or both by providing the user ID and at least one of those fields; omitted fields stay unchanged.

Instructions

Change a user's name, email, or both. Give the id and at least one of name or email. Fields left out are unchanged.

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": {
      "id": "<id>"
    },
    "name": "update_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe user id, a positive integer
nameNoThe user's name, up to 30 characters
emailNoThe user's email address, up to 30 characters

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare this is a non-readOnly, idempotent, non-destructive mutation, so the safety profile is covered. The description adds real behavioral information beyond that: patch semantics ("Fields left out are unchanged") and the requirement that at least one field be supplied. It does not mention permission requirements, validation errors, or the response shape, which keeps it out of the top band.

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?

Two short sentences with no filler; the mutation scope comes first and the calling constraint plus partial-update semantics follow. Every clause carries distinct 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 simple three-field mutation with full annotation coverage and no output schema, the description covers what can change, the required inputs, and the effect on omitted fields. Only error conditions and authentication expectations are left unstated, which is a minor gap at this complexity level.

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 per-field meanings are already documented, giving a baseline of 3. The description adds a cross-parameter constraint — at least one of name or email must be present alongside the required id — which is genuinely new information not expressible in the JSON schema's required list.

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?

"Change a user's name, email, or both" gives a specific verb and resource plus the exact set of mutable fields, which distinguishes it from create_user/delete_user/get_user by implication. It stops short of explicitly naming a sibling or stating that other user attributes cannot be changed, so it is clear but not fully differentiated.

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?

"Give the id and at least one of name or email" is a concrete calling precondition that the schema alone does not enforce (schema requires only id). It establishes the partial-update use case clearly, but offers no explicit when-not-to-use guidance or named alternative for full replacement or creation.

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

Deploy Server

Other Tools