Skip to main content
Glama
ChemInventory MCP Server

ChemInventory MCP Server

by niclas-gr

update_user

Destructive

Update a user account by setting email, first and last name, and account type, optionally scoped to a specific inventory, to keep user records and permissions current.

Instructions

Update a user account. All of email, names and account type are set.

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": {
      "user_id": "<user_id>",
      "email": "<email>",
      "first_name": "<first_name>",
      "last_name": "<last_name>",
      "account_type": "<account_type>"
    },
    "name": "update_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailYes
user_idYes
last_nameYes
first_nameYes
account_typeYes2 group administrator, 3 order handler, 4 user, 6 read-only
inventory_idNoInventory the account type applies to, if several

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=false, so the safety profile is covered structurally. The phrase "All of email, names and account type are set" does add a little beyond that, implying full-field overwrite semantics rather than a partial update, which is meaningful for a destructive operation. It still does not say what existing data is lost, whether sessions or history are affected, or what permissions are required.

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?

Two short sentences with the operation front-loaded and no filler. The second sentence is slightly awkwardly worded ("All of email, names and account type are set") but still reads quickly and carries the overwrite signal.

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?

For a six-parameter mutation with five required fields and a destructive hint, the definition covers too little: no field formats, no idempotency or required-permission note, no explanation of inventory_id, and no clarification of the enum's consequences. The presence of an output schema removes the need to describe return values, but the input-side and behavioral gaps remain significant.

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 low at 33%, so the description must compensate, and it does name four of the six parameters (email, first and last name, account type). It adds no format, constraint, or validation detail, and it never mentions user_id (required) or the optional inventory_id, leaving the 'account type applies to' scoping entirely to the schema.

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 a specific verb and resource ("Update a user account"), so an agent knows the operation. However, it offers nothing to separate it from siblings such as add_user, disable_user, or reset_user_password, and 'Update' against a destructive hint is ambiguous as to whether this is a full replace or a partial patch.

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?

No when-to-use guidance, no prerequisites, and no mention of alternatives like disable_user or reset_user_password for other account operations. The agent must infer entirely from the name and the sibling list when this tool is the right choice.

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