Skip to main content
Glama

Mango Inventory

Scaffold location tree

scaffold_locations
Idempotent

Create a whole location tree (buildings, floors, rooms, storage places) in one call, with the same contract as scaffold_categories: without confirm: true it is a dry run that writes nothing (existing same-name locations at the same position are reused, never duplicated); the SAME call with confirm: true commits the tree atomically. parentName references another entry in the same call (existing parents included as entries are reused). Each location is one explicit entry: a range such as "rooms 201 to 210" is ten entries. At most 200 locations per call. Requires the manager role. Idempotent: a repeated commit reuses every node.

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": {
      "locations": "<locations>"
    },
    "name": "scaffold_locations"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNotrue commits the plan; absent or false = dry run, nothing written
locationsYesThe whole tree as a flat list, parents referenced by name

Output Schema

NameRequiredDescriptionDefault
previewNoTrue = dry run, NOTHING was written; the same call with confirm: true commits it
summaryNoCounts: create, reuse — preview mode
committedNoTrue = the plan was executed
locationsNoPer-location verdicts (preview) or created/reused rows (commit)
instructionNoPreview mode: what the same call with confirm: true would do

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / confirm / description
      Previous value: -"Pass true ONLY after your user explicitly confirmed the previewed plan"New value: +"true commits the plan; absent or false = dry run, nothing written"
    • changedOutput schema / properties / instruction / description
      Previous value: -"Mirror the plan back and get ONE confirmation — preview mode"New value: +"Preview mode: what the same call with confirm: true would do"
    • changedOutput schema / properties / preview / description
      Previous value: -"True = dry run, NOTHING was written; retry with confirm: true"New value: +"True = dry run, NOTHING was written; the same call with confirm: true commits it"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description discloses the dry-run/commit contract, that existing same-name locations are reused rather than duplicated, that the commit is atomic, the 200-location cap, and the manager-role requirement. These are exactly the behavioral facts an agent needs and none are in the structured fields.

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?

It is a single front-loaded paragraph that states the action first, then the contract, then the constraints, with no filler sentences. The heavy parenthetical nesting (dry-run clause, range example) makes it denser than it needs to be, which costs a point.

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 two-parameter, batch-mutation tool with an output schema, everything an agent needs is present: scope, dry-run default, commit path, reuse/idempotency behavior, size limit, permission requirement, and parent referencing rules. Return values are correctly left to the output schema.

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 baseline is 3; the description earns above that by clarifying that each array item is one explicit entry ("rooms 201 to 210" is ten entries) and that parentName must reference another entry in the same call, with existing parents reused. The confirm semantics are also restated usefully in context, though that is largely duplicative of the schema.

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?

The description opens with a specific verb and resource ("Create a whole location tree") and enumerates the node types it covers (buildings, floors, rooms, storage places). It also distinguishes itself from the single-node sibling by saying "in one call" and anchors its contract to scaffold_categories, so an agent can tell what this does without opening the schema.

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?

It gives clear operational context: call without confirm for a dry run, call again with confirm: true to commit, and the manager role is required. What's missing is an explicit pointer to create_location as the alternative for a single location — the bulk-vs-single choice is only implied by "in one call."

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