Skip to main content
Glama
ChemInventory MCP Server

ChemInventory MCP Server

by niclas-gr

add_user

Create a user account in an inventory and return the new user ID. Specify inventory, email, first and last name, account type, and optional SSO or barcode.

Instructions

Create a user account in an inventory. Returns the user ID.

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

Input Schema

NameRequiredDescriptionDefault
ssoNoSign in with SSO, if the license enables it
emailYes
barcodeNo
last_nameYes
first_nameYes
account_typeYes2 group administrator, 3 order handler, 4 user, 6 read-only
inventory_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare destructiveHint=false and openWorldHint=false, so safety is covered, but the description adds almost nothing beyond that. It does not disclose failure behavior for a duplicate email, which fields are immutable afterward, or any permission requirement for creating a user in an inventory. The one extra fact, 'Returns the user ID', is already carried by the output schema.

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, front-loaded with the action and ending with the return value, with no filler. It is terse rather than padded, though the terseness is part of why other dimensions are weak.

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?

This is a seven-parameter, five-required mutation tool with a low-coverage schema and no useful annotations about constraints, so the definition should explain required fields and account_type values. The existence of an output schema excuses it from explaining return values, but not from the missing parameter and prerequisite context.

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

Parameters2/5

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

Schema description coverage is only 29% across seven parameters, so the description carries the burden of explaining them, and it explains none. It never mentions account_type role codes, the optional barcode, or the SSO flag; the phrase 'in an inventory' only loosely hints at inventory_id.

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?

The description gives a specific verb and resource ('Create a user account') plus a scope ('in an inventory'), which is enough to tell it apart from sibling mutations such as add_containers or add_to_collection. It stops short of naming which sibling to use for related lifecycle operations (update_user, disable_user), but the operation itself is unambiguous.

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?

There is no when-to-use guidance: nothing says when to call this versus update_user for an existing person, or versus add_containers when the caller also needs to assign barcodes. No prerequisites are stated, such as admin permissions on the inventory or the license requirement that gates SSO.

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