Skip to main content
Glama

Mango Inventory

Get item creation requirements

get_item_requirements
Read-only

Get what creating an inventory item needs. Without arguments: the organization's category tree plus the required fields that apply to ALL items. With categoryId: that category's full field list (required and optional, with types and select options); the fieldDefIds are the keys of customFields in create_item and preview_item_create. A category is required for every item except a draft (isDraft: true). The server checks that a category exists, not that it fits the item: an item filed under an unfitting category shows there for everyone. create_category adds a new category.

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": "get_item_requirements"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryIdNoCategory id (from the no-argument call) to get that category's full field list

Output Schema

NameRequiredDescriptionDefault
noteNoNote on category fit: the server checks that a category exists, not that it fits
fieldsNoAll applicable fields, required and optional — categoryId mode
builtInNoBuilt-in create_item facts (name, category, homeLocation, quantity)
categoryNoThe resolved category — categoryId mode
categoriesNoThe whole category tree — only in the no-argument mode
orgWideFieldsNoRequired fields EVERY item needs — no-argument mode

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / note / description
      Previous value: -"Category-fit guidance for you"New value: +"Note on category fit: the server checks that a category exists, not that it fits"
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description contributes genuinely non-obvious behavior: a category is mandatory except for drafts, and the server validates only that a category exists, not that it fits the item. That last point is a real caveat an agent could not infer from 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?

Information-dense and front-loaded, with the no-arg case stated before the filtered case. The semicolon-chained clauses around fieldDefIds and the validation caveat are slightly compressed, but nothing is filler.

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 single-optional-parameter read tool with an output schema, the description covers invocation modes, the prerequisite (category needed except for drafts), and the semantic contract with downstream tools. Return-value formatting is rightly 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% and the schema already explains categoryId, so the bar is baseline 3. The description goes slightly further by tying categoryId to the no-argument call that produces it and by flagging that fieldDefIds are the keys of customFields in create_item and preview_item_create, a useful cross-tool contract.

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 ('Get what creating an inventory item needs') and immediately scopes the two modes of the call. It reads as clearly distinct from create_item, preview_item_create, and create_category, which it names.

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 tells the agent what each invocation form returns ('Without arguments... With categoryId...'), notes the origin of the id ('from the no-argument call'), and routes to create_category when a category is missing. Effectively a when-to-use decision table.

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