Skip to main content
Glama

Mango Inventory

Assign / move item

assign_item
DestructiveIdempotent

Assign or move an item: set its current location, current holder, responsible person or home location. An omitted field stays unchanged; null clears the current location or the current holder. The home location and the responsible person can never be cleared (every item has both); the literal "default" for responsiblePersonId removes the override, and the item follows its category's or the organization's default again. Both PERSON fields take the literal "me" for the connected user's own person record (the same shorthand as in search_items). Returns the updated item. Setting a holder on an item with open tickets, overdue maintenance or the status defect or in_repair writes nothing and returns { requiresAcknowledgment: true, warnings } (warnings.itemStatus names the status); the same call with acknowledgeWarnings: true performs it. Setting a holder on an item that an active order requests (not yet picked) returns { requiresAcknowledgment: true, requested }; the same call with acknowledgeRequested: true performs it. Setting a current location or holder on a packed item unpacks it first. Requires the manager role: a member cannot assign anything, not even to themselves with "me". Idempotent: unchanged values change 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>"
    },
    "name": "assign_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemIdYesItem id
homeLocationIdNoLocation resource id (cannot be cleared)
currentHolderIdNoPerson resource id who borrows the item, the literal "me" for the connected user, or null to clear
currentLocationIdNoLocation resource id, or null to clear
acknowledgeWarningsNotrue performs the call despite the warnings a previous requiresAcknowledgment result named
responsiblePersonIdNoPerson resource id, the literal "me" for the connected user, or the literal "default" to hand the item back to the category/organization default chain. It cannot be cleared
acknowledgeRequestedNotrue performs the assignment despite the active order requests a previous requiresAcknowledgment result named

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
warningsNoOpen tickets / overdue maintenance behind a requires-ack round
containerNoThe container this item is packed into, if any
modelNameNoThe model's name
requestedNoThe active orders that requested this item (.orders names them)
compartmentNoThe compartment of that container the item sits in (absent = directly in the container)
descriptionNoItem description
instructionNoWhich acknowledge flag performs the call
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
requiresAcknowledgmentNoPresent and true when nothing was written because of what this result names; the SAME call with the acknowledge flag named in `instruction` performs it

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / acknowledgeRequested / description
      Previous value: -"Pass true ONLY after your user explicitly confirmed assigning despite the active order requests from a previous requiresAcknowledgment result"New value: +"true performs the assignment despite the active order requests a previous requiresAcknowledgment result named"
    • changedInput schema / properties / acknowledgeWarnings / description
      Previous value: -"Pass true ONLY after your user explicitly confirmed the warnings from a previous requiresAcknowledgment result"New value: +"true performs the call despite the warnings a previous requiresAcknowledgment result named"
    • changedInput schema / properties / currentHolderId / description
      Previous value: -"Person resource id who borrows the item, the literal \"me\" for the key owner, or null to clear"New value: +"Person resource id who borrows the item, the literal \"me\" for the connected user, or null to clear"
    • changedInput schema / properties / responsiblePersonId / description
      Previous value: -"Person resource id, the literal \"me\" for the key owner, or the literal \"default\" to hand the item back to the category/organization default chain. It cannot be cleared"New value: +"Person resource id, the literal \"me\" for the connected user, or the literal \"default\" to hand the item back to the category/organization default chain. It cannot be cleared"
    • changedOutput schema / properties / instruction / description
      Previous value: -"What to confirm with your user and how to retry"New value: +"Which acknowledge flag performs the call"
    • changedOutput schema / properties / requiresAcknowledgment / description
      Previous value: -"Present and true when nothing was written and a human confirmation is required — retry the SAME call with the acknowledge flag named in `instruction`"New value: +"Present and true when nothing was written because of what this result names; the SAME call with the acknowledge flag named in `instruction` performs it"
    • 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.5/5.0
Behavior4/5

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

Annotations already declare mutating, destructive, idempotent behavior, so the bar is lower, yet the description still adds substantial context: the two-step acknowledgment flow with exact response shapes ({ requiresAcknowledgment: true, warnings } / { requested }), the fact that packed items are unpacked first, the manager-role gate, and which fields can never be cleared. Return format and pagination are already covered by the output schema, so a 4 is warranted rather than a 5.

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?

The most consequential facts (purpose, field behavior, permissions) are front-loaded, and the acknowledgment flows follow in logical order. It is dense and longer than typical, but nearly every sentence carries a distinct behavioral rule, so only minor tightening is possible.

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?

For a 7-parameter mutation tool with an output schema, the definition covers permissions, partial-update semantics, un-clearable fields, shorthand literals, idempotency, and both acknowledgment escape hatches. An agent has everything needed to invoke it correctly, including how to recover from a blocked call.

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

Parameters5/5

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

Schema coverage is 100% and the description still contributes real meaning beyond it: the omitted-field-stays-unchanged rule, the fact that "default" for responsiblePersonId re-enters the category/organization default chain, and that currentLocation and currentHolder are the only clearable fields via null. It ties the two acknowledge* flags directly to the failure responses that would produce them, which the schema alone does not connect.

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 ("Assign or move an item") and immediately enumerates the four settable fields (current location, current holder, responsible person, home location), which lets an agent distinguish it from status-changing or generic update tools.

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?

Gives clear operating conditions: manager role required, members cannot assign even to themselves, and it cross-references the "me" shorthand used in search_items. It does not explicitly name when to prefer a sibling such as update_item or set_item_status, so the routing guidance is implicit rather than spelled out.

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