Skip to main content
Glama

Mango Inventory

Plan an import (dry run)

plan_import
Read-only

Dry-run an import of a whole list with the product's own importer (the same one the app's import screen uses); it writes NOTHING. Arguments: the data rows (cells as strings, header row left out) and one columns entry per cell position with its target: name, description, category, homeLocation, currentLocation, responsiblePerson, currentHolder, blueprintName (an item model, by name), container (the item this row's item sits in: a vehicle, case or cart, named by the name or code of ANOTHER ROW of this file or of an existing item; a vehicle is an item with its own row, never a location), compartment (its compartment, e.g. «GR1», «Fahrerhaus»; created on the container when missing), code (a printed code or serial, the lasting way to tell identical pieces apart), quantity / minStock (stock items), trackingMode (quantity, menge, stückzahl, stueckzahl, bestand, pool (stock: a count of identical pieces) or serialized, serialisiert, einzeln, einzelstück, einzelstueck, unit (single pieces); a quantity or minStock value alone already makes a stock item), status, a fieldDefId from get_item_requirements or "field:"; null skips a column. Categories and locations are matched by name, paths split by separator ("Fahrzeuge/Anhänger"); a name that matches nothing is listed under toCreate and would be created by the import itself (a typo shows up there too). scaffold_categories creates categories and typed fields beforehand, scaffold_models item models. Dates as "YYYY-MM-DD" or "DD.MM.YYYY" only: other forms are dropped (see problems). Rows without a code are matched to existing items BY NAME, so every code-less name must be unique in the file, one stock article in several places aside (e.g. «Helm TLF», «Helm KLF» for two helmets). Single items are packed into their container; a stock row's count goes into it. One stock article in several places: one row per place, all with the SAME name (and the same code, if it has one), each with its own container, compartment and count; at most one of them without a container, whose count is the stock at the item's home. They become ONE stock item: the dry run shows the row without a container (else the first) as create and the others as place, and lists each article's places and total under stockGroups. Identical single pieces are not grouped: each needs its own name or code. The result says per row what would be created, updated or skipped, every value that would be dropped and why, what would be placed in which container and compartment and which compartments would be created, blockers that must be fixed first, columns the organization's plan cannot import, and whether the import lands past the plan's item allowance (allowed once: after that no published item can be added until the organization upgrades). It returns a planHash, which run_import takes with the same arguments. At most 1000 rows per call; the app's import screen takes longer lists as a CSV file. entity "persons" or "locations" imports people or places instead (targets: name, parentPath, email). Any member can plan; running needs the manager role.

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": {
      "fileName": "<fileName>",
      "columns": "<columns>",
      "rows": "<rows>"
    },
    "name": "plan_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsYesThe data rows of the source file, cells as strings, header row left out. At most 1000 rows per call
entityNoWhat the rows are: "items" (default), "persons" (people) or "locations" (places)
columnsYesOne entry per cell position of a row, in the same order
fileNameYesThe source file's name (shown in the app's import history), e.g. Inventar 2024.xlsx
keepOrderNoItems are imported last row first by default, so the file's first row is the newest item and the app's list opens on it; true keeps the file order
separatorNoPath separator in category and location cells (default "/": "Fahrzeuge/Anhänger")

Output Schema

NameRequiredDescriptionDefault
nextNo
rowsNoRows sent
notesNoNotes on the plan's outcome
orderNoreversed (default for items: the first row becomes the newest item, so the app's list opens on it) or "file" (keepOrder)
entityNo
mappingNoThe columns that import, resolved
refusedNoSet when the call was refused and nothing was written: tooManyRows, tooManyColumns, blockers, batchUndone
summaryNoRows by outcome: create / update / skip / place (adds stock in a place to another row's item, see stockGroups), and by status: ok / warnings (the row imports, a value is dropped) / errors (the row is skipped)
blockersNoWhat run_import refuses until it is fixed. Empty = none
capacityNoThe plan's item allowance; null = no allowance
fileNameNo
planHashNorun_import takes it with the SAME arguments; it changes when the rows or the organization's answers change
problemsNoEvery row that does not simply create an item cleanly: dropped values, skipped rows, updates of existing items
toCreateNoWhat the import itself would create by name — usually a typo when the structure was created first
placementsNoOnly with a container column: per container, the single items packed into it and the stock counts that go into it
planChangedNorun_import only: nothing was written, the plan changed
stockGroupsNoOnly with a container column: each stock article whose rows (one per place, same name and code) become ONE stock item — its total, the pieces at home and per place
problemsShownNo
problemsTotalNo
stockGroupsTotalNo
columnsNotImportedNoMapped columns the organization's plan cannot import

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / fileName / description
      Previous value: -"Your user's file name (shown in the app's import history), e.g. Inventar 2024.xlsx"New value: +"The source file's name (shown in the app's import history), e.g. Inventar 2024.xlsx"
    • changedInput schema / properties / rows / description
      Previous value: -"The data rows you built from your user's file, cells as strings, header row left out. At most 1000 rows per call"New value: +"The data rows of the source file, cells as strings, header row left out. At most 1000 rows per call"
    • changedOutput schema / properties / blockers / items / properties / rows / description
      Previous value: -"1-based positions in the rows you sent"New value: +"1-based positions in the rows passed"
    • changedOutput schema / properties / notes / description
      Previous value: -"Tell your user these"New value: +"Notes on the plan's outcome"
    • changedOutput schema / properties / planHash / description
      Previous value: -"Pass to run_import with the SAME arguments; it changes when the rows or the organization's answers change"New value: +"run_import takes it with the SAME arguments; it changes when the rows or the organization's answers change"
    • changedOutput schema / properties / problems / items / properties / row / description
      Previous value: -"1-based position in your rows"New value: +"1-based position in the rows passed"
    • changedOutput schema / properties / toCreate / description
      Previous value: -"What the import itself would create by name — usually a typo when you created the structure first"New value: +"What the import itself would create by name — usually a typo when the structure was created first"
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/destructiveHint=false, but the description goes well beyond them: the 1000-row cap, the planHash contract, name-matching for code-less rows and the uniqueness requirement, how stock rows collapse into one article with stockGroups/place reporting, the item-allowance consequence for published items, and role requirements. These are exactly the non-obvious behaviors an agent needs before invoking it.

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

Conciseness3/5

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

The first sentence is well front-loaded, but the rest is a single dense block of run-on clauses with nested parentheticals, making it hard to scan for a specific rule. Nearly every sentence carries information, yet the stock-grouping and container/compartment rules could be split or tightened for retrievability.

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 dry-run import with six parameters, the description covers the result shape in prose (per-row created/updated/skipped, dropped values, placements, created compartments, blockers, non-importable columns, allowance status) and the planHash handoff, so nothing needed to call it correctly is missing.

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?

Although schema coverage is 100%, the description adds substantial meaning the schema does not: the full target vocabulary (name, description, container, compartment, code, quantity/minStock, trackingMode with its many synonyms, fieldDefId or 'field:<label>', null to skip), date formats accepted vs dropped, and separator-based path splitting. This is real semantic amplification, not restatement.

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 opening states a specific verb, resource and safety scope: a dry-run import of a whole list using the product's own importer, and that it 'writes NOTHING'. It is clearly distinguished from run_import by explaining that the returned planHash is what run_import consumes, so an agent can separate planning from execution 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?

It explicitly routes usage: plan first, then hand the planHash to run_import with the same arguments; use entity 'persons'/'locations' when importing people or places instead of items; and the app's import screen is the alternative for lists beyond 1000 rows. The permission contrast ('Any member can plan; running needs the manager role') is a concrete gating condition an agent can act on.

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