Skip to main content
Glama

Mango Inventory

Create category

create_category

Create ONE category, optionally under a parent category id (ids from get_item_requirements). scaffold_categories creates a whole tree with a dry run and reuses existing nodes. Not idempotent: a repeated call creates a same-name sibling. Requires 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": {
      "name": "<name>"
    },
    "name": "create_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesCategory name
parentIdNoParent category id (omit for top level)

Output Schema

NameRequiredDescriptionDefault
nameNoCategory name as stored (trimmed)
categoryIdNoThe new category's id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, it discloses the concrete consequence of a repeat call ('creates a same-name sibling') rather than merely restating idempotentHint=false, and adds an auth prerequisite ('Requires the manager role') that no structured field conveys. That is exactly the beyond-schema behavioral context the description is meant to carry.

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

Conciseness5/5

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

Three tight sentences: scope first, alternative second, mutation caution and permission last. Every sentence carries distinct, load-bearing information with no repetition.

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?

An output schema exists, so return values need not be described, and the remaining call-time concerns — cardinality, parent-id source, non-idempotency, required role — are all covered. Nothing an agent needs before invoking 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 100%, so both parameters are already documented; the description adds provenance for parentId (ids come from get_item_requirements) and clarifies that omitting it means top level. It stops short of adding format or validation detail, so it improves on the baseline without being exhaustive.

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 ('Create ONE category') and immediately scopes it with the optional parent-id relationship. The explicit 'ONE' plus the contrast with scaffold_categories makes it unmistakable which sibling to pick for single vs tree creation.

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?

Names the alternative (scaffold_categories) with its distinguishing behavior — whole tree, dry run, reuses existing nodes — so the when/when-not decision is explicit. It also routes the agent to get_item_requirements as the source of valid parent ids.

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