Skip to main content
Glama

Mango Inventory

Set item status

set_item_status
DestructiveIdempotent

Set an item's operational status (condition): available, in_repair, defect, lost or retired, e.g. defect or lost, or available again after a repair. The change goes into the item's activity timeline under the connected user's name, with the optional note. It creates no ticket; create_ticket reports an issue that needs handling and can set the status in the same call (setItemStatus). Requires the manager role; create_ticket is open to members. Quantity-tracked items have no status (refused with quantityItem). Retiring a container that still holds items is refused with containerHasContents; unpack_item empties it, or the app retires it and unpacks its contents in place. Idempotent: the same status again changes nothing.

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>",
      "status": "<status>"
    },
    "name": "set_item_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoShort reason, shown in the item's activity timeline
itemIdYesItem id
statusYes

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
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
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. Changed1 schema field changed
    • 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.8/5.0
Behavior5/5

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

Beyond the destructive/idempotent annotations it discloses that a timeline entry is written under the connected user's name, that no ticket is spawned, the manager-role requirement, and two named refusal errors (quantityItem, containerHasContents). The idempotency claim is explained rather than merely restated.

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 action and valid values, then prerequisites and failure modes in a logical order. Some clauses are dense (the container/retire sentence packs three ideas), but nothing is redundant padding.

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?

An output schema exists, so return values need no explanation, and the description still covers role gating, refusals, side effects and retry safety. An agent has everything needed to invoke this mutation correctly or route elsewhere.

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 67% and the enum already constrains status, but the description adds real meaning for note (optional, short reason, surfaced in the activity timeline) and clarifies that itemId is tied to status-bearing items only. itemId itself gains no extra detail beyond the schema's "Item id".

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+resource ("Set an item's operational status") and enumerates the exact status vocabulary. It explicitly separates itself from create_ticket, so an agent can pick between the two without opening either 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?

Gives when-to-use (condition changes, e.g. defect, lost, back to available after repair) and when-not (issue reporting belongs to create_ticket) plus an explicit alternative for the blocked case (unpack_item empties a container). Role prerequisites (manager vs member) are stated per tool.

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