Skip to main content
Glama

Mango Inventory

Transfer stock

transfer_stock
Destructive

Move an amount of a quantity-tracked item's stock from one place or person to another (e.g. 3 packs of printer paper from the storeroom to room 201, or 5 markers to a teacher). Quantity-tracked items only; assign_item moves serialized items. Location and person ids come from search_resources or from check_item_availability's distribution. Returns every stocked level after the move as distribution: { locationId, name, kind: location|person, quantity, available, reserved?, minStock?, isLow? }, the same row shape check_item_availability returns, so isLow shows whether either end is now low (isLow counts AVAILABLE stock: on hand minus what orders reserved). Amounts reserved for orders or exceeding the source location's stock are rejected. When the item has overdue maintenance the call writes nothing and returns { requiresAcknowledgment: true, warnings }; the same call with acknowledgeWarnings: true performs it. Requires the manager role. Not idempotent: a repeated call moves the stock again.

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>",
      "fromLocationId": "<fromLocationId>",
      "toLocationId": "<toLocationId>",
      "amount": "<amount>"
    },
    "name": "transfer_stock"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesHow many units to move (integer, at least 1)
itemIdYesItem id (must be a quantity-tracked item)
toLocationIdYesDestination location or person resource id
fromLocationIdYesSource location or person resource id (where the stock is now)
acknowledgeWarningsNotrue performs the call despite the warnings a previous requiresAcknowledgment result named

Output Schema

NameRequiredDescriptionDefault
nameNoItem name
itemIdNoItem id
warningsNoOverdue maintenance behind a requires-ack round
instructionNoWhich acknowledge flag performs the call
distributionNoEvery stocked level after the move — the SAME row shape check_item_availability returns
totalQuantityNoPool total after the move
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 / 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 / fromLocationId / description
      Previous value: -"Source location resource id (where the stock is now)"New value: +"Source location or person resource id (where the stock is now)"
    • changedInput schema / properties / toLocationId / description
      Previous value: -"Destination location resource id"New value: +"Destination location or person resource id"
    • changedOutput schema / properties / distribution / items / properties / available / description
      Previous value: -"Freely usable stock: quantity minus reserved, floored at 0. Always present — this is the number to act on"New value: +"Freely usable stock: quantity minus reserved, floored at 0. Always present"
    • changedOutput schema / properties / distribution / items / properties / locationName / description
      Previous value: -"DEPRECATED — the same string as `name`, kept only for clients whose tool list froze before the rename. Read `name`"New value: +"DEPRECATED — the same string as `name`, kept only for clients whose tool list froze before the rename"
    • 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"
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare destructive=true, readOnly=false and idempotent=false, and the description goes well beyond them: rejected cases (reserved amounts, amounts exceeding source stock), a dry-run-like failure mode returning { requiresAcknowledgment: true, warnings } that writes nothing, the acknowledgeWarnings retry, and the manager-role requirement. Even the non-idempotency note, which overlaps the annotation, is reinforced with the consequence ('a repeated call moves the stock again').

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The operation, its scope, and the sibling exclusion come first, followed by id sourcing, then edge cases and preconditions - a sound front-loaded order. Despite being a single dense paragraph, nearly every clause carries decision-relevant information for the caller.

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 destructive, non-idempotent, permission-gated mutation, the description covers preconditions, rejection conditions, the acknowledgment workflow, and where inputs come from. The verbatim explanation of the returned distribution rows and isLow semantics is arguably surplus given the output schema exists, but it does not leave an agent under-informed.

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 100%, so the schema already defines each field; the description adds value by clarifying that from/to ids may be either a location or a person resource and by naming the tools that produce those ids. It stops short of adding any format or syntax detail for amount beyond the schema's minimum-1 integer constraint.

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 ('Move an amount of a quantity-tracked item's stock') and immediately scopes it to quantity-tracked items while naming the sibling it is not ('assign_item moves serialized items'). The concrete examples (3 packs of printer paper, 5 markers) make the resource and operation unambiguous.

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?

Explicitly routes between siblings on the quantity-tracked vs serialized split, and tells the agent where the location/person ids come from (search_resources or check_item_availability's distribution). It also states the manager-role prerequisite and the acknowledgment retry path, so the agent knows both when to call and what to do if it fails.

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