Skip to main content
Glama

Mango Inventory

Scaffold item models

scaffold_models
Idempotent

Create item models («Modelle») in one call: one model per article type whose pieces share a name and settings, e.g. «Arbeitshose» in sizes XS to 8XL, or 16 identical radios. Same contract as scaffold_categories: without confirm: true it is a dry run that writes nothing; the SAME call with confirm: true commits. Per model: name, categoryId, and how its pieces are named: nameSuffix "none" (every piece carries the model's name), "text" (each piece keeps its own suffix from its row: «Funkgerät 3») or "field" with nameSuffixFieldId (a select, text or number field: «Arbeitshose XL»); variantValues, the values a field may take on this model (the sizes it exists in); defaultFieldValues, the values every new piece gets. An existing model of the same name is reused, never duplicated; one whose settings differ (category, name suffix, allowed values, or a named default) is reported as a conflict and left as it is. Models are created last to first, so the app's model list opens on the first one. plan_import adds the pieces: the model's name in a blueprintName column and the size in its field's column. Model pictures are added in the app. At most 50 models per call. Requires the manager role. Idempotent: a repeated commit reuses every model.

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": {
      "models": "<models>"
    },
    "name": "scaffold_models"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelsYesThe models, at most 50 per call
confirmNotrue commits the plan; absent or false = dry run, nothing written

Output Schema

NameRequiredDescriptionDefault
modelsNoOne row per model, in the order of the request
previewNoTrue = dry run, NOTHING was written; the same call with confirm: true commits it
summaryNoCounts: create, existing, conflict, invalid
warningsNoRows skipped on commit — commit mode
committedNoTrue = the plan was executed
instructionNoPreview mode: what the same call with confirm: true would do

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 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"
    • changedInput schema / properties / models / items / properties / defaultFieldValues / description
      Previous value: -"Values every new piece of this model gets (only values your user gave you)"New value: +"Values every new piece of this model gets"
    • 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 / models / description
      Previous value: -"One row per model, in the order you sent them"New value: +"One row per model, in the order of the request"
    • changedOutput schema / properties / models / items / properties / webUrl / description
      Previous value: -"The model's page in the app — give it to your user as the link (never show the id)"New value: +"The model's page in the web app, for a person to open; the id is the handle for tool calls"
    • 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
Behavior4/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 50-model cap, the manager-role requirement, the last-to-first creation order, and the conflict policy where a same-named model with differing settings is reported and left untouched rather than overwritten. The idempotency claim is reinforced with a reason (repeated commits reuse every model). It does not describe the shape of the conflict report, which is the only notable gap and is partly covered by the output schema.

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 key constraint (dry run vs commit) is front-loaded and the description follows a sensible order: purpose, contract, per-model fields, conflict behavior, downstream step, limits. It is long and some per-parameter explanation duplicates the 100%-covered schema, which keeps it from a 5.

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 mutating, nested-array scaffold tool, the description covers the safety model (dry run/commit), idempotency, limits, permissions, conflict handling, and the follow-up step in plan_import. With annotations and an output schema already present, nothing an agent needs in order to invoke it correctly is missing.

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 description coverage is 100%, so the baseline is 3; the description nevertheless adds conceptual meaning by explaining nameSuffix modes in workflow terms ("field" producing «Arbeitshose XL»), framing variantValues as "the sizes it exists in" and defaultFieldValues as "the values every new piece gets". It also ties model naming to plan_import's blueprintName column, which the schema does not.

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 item models") and immediately distinguishes the tool from its sibling by noting the same contract as scaffold_categories and the handoff to plan_import. Concrete examples (sizes XS–8XL, 16 identical radios) make the scope of "one model per article type" 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?

It states explicitly that without confirm: true the call is a dry run that writes nothing and that the SAME call with confirm: true commits, which tells the agent the intended two-step workflow. It also names the boundary with plan_import (which adds the pieces) and notes that model pictures are added in the app, so the agent knows what not to attempt here.

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