Skip to main content
Glama

Mango Inventory

Update item

update_item
DestructiveIdempotent

Update an inventory item: rename it, edit the description (null clears it), and set custom field values (keys = fieldDefId from get_item_requirements; null clears a value). Unchanged values are skipped, and every real change lands in the item's activity timeline under the connected user's name. If the edit would clear required values the call returns { missingFields } and changes nothing. Items that belong to a model cannot be renamed here (the model owns the name). Other tools change the rest: set_item_status the status, assign_item location and holder, adjust_stock and transfer_stock stock amounts; the category changes in the app only. Requires the manager role. Idempotent.

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": {
      "itemId": "<itemId>"
    },
    "name": "update_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew item name
itemIdYesItem id
descriptionNoNew description, or null to clear
customFieldsNoField values keyed by fieldDefId (from get_item_requirements); null clears a value. Dates as a plain calendar day "YYYY-MM-DD" (a full timestamp works too, but only WITH an explicit offset — this server has no timezone and does no conversion), selects as one of the listed options, multiselect as an ARRAY of option strings, currency as a plain number in the field's own currency (see its currencyCode; default CHF), url as a full http(s) link (protocol added when missing).

Output Schema

NameRequiredDescriptionDefault
idNoItem id
nameNoItem name
statusNoCondition: available | in_repair | defect | lost | retired ("available" means not defect/lost/retired — the item may still be borrowed)
webUrlNoLink to this item in the web app, for a person to open. Absent when the deployment has no public address configured
isDraftNoPresent and true only for an unfinished draft capture
modelIdNoThe item's model — pass it as create_order lines[].modelId to order any instance of this model
categoryNoCategory name
quantityNoHow many this row stands for — only on quantity-tracked pools. To count a pool, SUM this; to count serialized items, count rows
containerNoThe container this item is packed into, if any
modelNameNoThe model's name
compartmentNoThe compartment of that container the item sits in (absent = directly in the container)
descriptionNoItem description
instructionNoWhich values are missing
primaryCodeNoThe code printed on the item's asset tag — how a human tells two identical models apart. Absent when no code is attached
homeLocationNoWhere the item belongs
trackingModeNo"quantity" for a stock pool counted by amount. Absent = a serialized item, i.e. this row IS one physical thing
contentsCountNoDirect contents count — containers only
currentHolderNoPerson currently holding it
missingFieldsNoPresent instead of the item when the edit would clear required values — nothing was changed
currentLocationNoWhere the item is now
effectiveHolderNoHolder followed through the container chain
effectiveLocationNoLocation followed through the container chain
responsiblePersonNoPerson responsible

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / instruction / description
      Previous value: -"What to ask your user for"New value: +"Which values are missing"
    • changedOutput schema / properties / webUrl / description
      Previous value: -"Link to this item in the web app — give it to your user so they can look at the record themselves. Absent when the deployment has no public address configured"New value: +"Link to this item in the web app, for a person to open. Absent when the deployment has no public address configured"
  2. First observed

TDQS

A4.6/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 adds genuine context beyond them: no-op values are skipped, every real change is recorded in the item's activity timeline under the connected user's name, and clearing required values is atomic (returns { missingFields } with no changes). The only redundancy is restating "Idempotent" in prose, and it does not explain the timeline's visibility or who can see it.

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?

Front-loaded with the editable fields, then restrictions, then sibling routing — a sensible information order. It is dense with parentheses and semicolon-chained clauses, which slightly hurts scanning, but nearly every clause carries a distinct operational fact.

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

Completeness5/5

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

Complete for a mutation tool with four parameters and a nested object: it covers preconditions, no-op handling, the failure mode and its atomicity, and where changes surface afterward. Since an output schema exists, it needn't describe ordinary return values, and the one error shape it does mention is the one an agent must recover from.

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?

The schema already documents all four parameters at full coverage, so baseline is 3. The description still adds cross-tool meaning by tying customFields keys to fieldDefId from get_item_requirements and clarifying that null clears a value, which the schema states only in passing inside the nested property 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 and resource ("Update an inventory item") and enumerates the exact editable surface: name, description, custom field values. It immediately delimits scope by saying which attribute changes belong to other tools, so an agent can distinguish it from set_item_status, assign_item, and adjust_stock without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicit routing is given: status goes to set_item_status, location/holder to assign_item, stock to adjust_stock and transfer_stock, and category changes are app-only. It also states a precondition (manager role) and a hard restriction (model-owned items cannot be renamed here), plus the pointer to get_item_requirements for field keys.

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.

Resources