Skip to main content
Glama

Mango Inventory

Update category

update_category
DestructiveIdempotent

Update a category (ids from get_item_requirements), any combination in one call: rename it; holdsItems, the container switch for its items (true = its items can hold other items: vehicles, cases, carts; false = its items are not offered as containers, even where a parent category says yes, but an item that already holds things or whose own switch says yes stays a container; null = follow the parent category again); defaultHomeLocationId, where its new items live (a location id from search_resources; null clears it); hideFieldIds / showFieldIds, inherited fields (org-wide or from a parent category; a field id or "field:") this category and its sub-categories do not use: the field disappears from their items, and their values are kept and come back when it is shown again. A field defined ON this category cannot be hidden. Moving a category is app-only. Nothing is written if one part is refused. Requires the manager role. Idempotent.

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": {
      "categoryId": "<categoryId>"
    },
    "name": "update_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew name
categoryIdYesCategory id
holdsItemsNoContainer switch: true = its items can hold other items, false = its items are not offered as containers (an item that already holds things or whose own switch says yes stays one), null = follow the parent category
hideFieldIdsNoInherited fields (ids or "field:<label>") this category and its sub-categories do not use
showFieldIdsNoHidden fields (ids or "field:<label>") to show again
defaultHomeLocationIdNoLocation id new items of this category live in; null clears it

Output Schema

NameRequiredDescriptionDefault
nameNoCategory name as stored (trimmed)
noteNoSet when nothing was changed
categoryIdNoThe category's id
holdsItemsNoThe category's own container switch; null = it follows its parent
hiddenFieldIdsNoInherited fields this category hides
defaultHomeLocationIdNoWhere its new items live; null = none set

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructiveHint and idempotentHint, but the description adds real behavioral context beyond them: atomicity ("Nothing is written if one part is refused"), authorization (manager role required), scope of hiding to sub-categories, data preservation (values are kept and reappear when shown again), and the hard constraint that a field defined on this category cannot be hidden. The only redundancy is restating "Idempotent".

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?

Purpose is front-loaded, but the body is a single dense run-on paragraph with deeply nested parentheses and semicolons that makes the field-by-field semantics hard to scan. Every sentence carries information, but the packaging costs readability.

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 six-parameter partial-update mutation, it covers everything an agent needs: which ids to source and from where, what null means, atomic failure behavior, permission gates, and the one rule that would otherwise cause a silently rejected call. An output schema exists, so not describing return values is appropriate.

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 the baseline is 3, but the description earns a bump by explaining consequences the schema only gestures at: exactly what true/false/null mean for holdsItems including the parent-category inheritance rules and the exception for items that already hold things, and what hideFieldIds/showFieldIds do to items and stored values. It also documents the "field:<label>" identifier form in context.

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 ("Update a category") and then enumerates every mutation it supports: rename, holdsItems, defaultHomeLocationId, hideFieldIds/showFieldIds. It also points at the sibling that supplies ids (get_item_requirements), so an agent can distinguish it from create_category, archive_category, and update_field_def without opening a schema.

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 says any combination of the listed changes can be made in one call and where inputs come from (category ids from get_item_requirements, location ids from search_resources), plus the manager-role prerequisite. It also rules out an action the agent might otherwise attempt ("Moving a category is app-only"). It does not explicitly contrast itself with sibling update tools, which keeps it from a 5.

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