Skip to main content
Glama

Mango Inventory

Preview item creation

preview_item_create
Read-only

Preview an item creation without writing anything (read-only). It takes create_item's arguments, all optional: partial values are valid. Returns the resolved proposal, the applicable field definitions and the required fields still missing (missingRequired); without a categoryId it adds missingCategory and the category list. In hosts that render widgets (e.g. ChatGPT) the result is an editable confirm card: missing values are filled and a category is picked on the card, and its 'Create item' button calls create_item itself. Hosts without widgets receive the same proposal as data.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "preview_item_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoProposed item name; the card asks for it when absent
minStockNoOptional restock threshold for quantity-tracked stock
quantityNoInitial stock amount — required with trackingMode "quantity"
categoryIdNoCategory id (from get_item_requirements); without it the card shows a category picker
descriptionNo
customFieldsNoProposed field values keyed by fieldDefId (from get_item_requirements) — same shape as create_item's customFields
trackingModeNo"quantity" for quantity-tracked stock (consumables) instead of a serialized single item
homeLocationIdNoHome location resource id (from search_resources); absent = the category or organization default
responsiblePersonIdNoResponsible person resource id (optional)

Output Schema

NameRequiredDescriptionDefault
vYes
modeYes
debugNo
fieldsYes
proposalYes
categoriesNo
autoConfirmNo
missingCategoryNo
missingRequiredYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / categoryId / description
      Previous value: -"Category id (resolve with get_item_requirements) — the created item will need one, so pass it when you know it; omit it and the card shows a category picker instead of asking you to interrogate the user"New value: +"Category id (from get_item_requirements); without it the card shows a category picker"
    • changedInput schema / properties / homeLocationId / description
      Previous value: -"Home location resource id (find with search_resources); omit to use the org/category default"New value: +"Home location resource id (from search_resources); absent = the category or organization default"
    • changedInput schema / properties / name / description
      Previous value: -"Proposed item name — omit if not known yet; the card asks for it"New value: +"Proposed item name; the card asks for it when absent"
    • changedInput schema / properties / trackingMode / description
      Previous value: -"Pass \"quantity\" for quantity-tracked stock (consumables) instead of a serialized single item"New value: +"\"quantity\" for quantity-tracked stock (consumables) instead of a serialized single item"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/openWorldHint/destructiveHint, and the description adds substantial context beyond them: nothing is written, partial values are accepted, and the response carries the resolved proposal, applicable field definitions, `missingRequired`, and (without categoryId) `missingCategory` plus the category list. It also discloses the host-dependent behavior difference between widget hosts and plain-data hosts, which no annotation covers.

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?

Front-loaded with the read-only promise and the create_item relationship, then the return contract, then host-specific rendering. Dense but nearly every clause carries information; the widget-host sentence is long but justifies its length by covering the interactive confirm path.

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 9-parameter, nested-object, zero-required tool with an output schema, the description covers the input contract (create_item's args, all optional), the return payload, and the divergence in behavior across hosts. Nothing an agent needs in order 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.

Parameters4/5

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

Schema coverage is 89%, so the schema already carries most parameter meaning and the baseline is 3. The description still adds value by explaining the consequence of omitting categoryId (a category picker / `missingCategory` + category list) and that absent name is solicited by the card, tying parameters to observable outcomes rather than restating them.

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 ('Preview an item creation without writing anything') plus the negative constraint that makes it distinct from create_item. An agent can tell immediately that this resolves a proposal rather than persisting it.

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?

Explicitly frames the tool as taking create_item's argument shape and notes that partial input is valid and that the card's 'Create item' button invokes create_item itself, which implicitly routes the agent to preview-then-create. It stops short of an explicit 'use this before create_item, do not use it to confirm an existing item' statement, so it is clear context without stated exclusions.

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