Skip to main content
Glama

Mango Inventory

Archive unused category

archive_category
Destructive

Archive a category that nothing uses, e.g. a starter category the organization does not need. Refused, with nothing written, while anything still uses it: items (drafts too), sub-categories, item models, fields defined on it, a maintenance plan that selects it, or an item kit that lists it; the answer names what. An archived category leaves every list and picker, and the app has no way to bring it back. Repeating the call on an archived category answers alreadyArchived and writes nothing. 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": {
      "categoryId": "<categoryId>"
    },
    "name": "archive_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryIdYesCategory id

Output Schema

NameRequiredDescriptionDefault
nameNoCategory name
noteNoCounting caveat
inUseNoOn a refusal, what still uses it: items, drafts, subCategories, models, fields, maintenancePlans, kits (counts)
archivedNoTrue = archived; false = refused, nothing written
categoryIdNoThe category's id
instructionNoWhy the call was refused
alreadyArchivedNoIt was archived before this call
readLimitReachedNoAreas this check could not read in full — refused for safety, nothing written

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / instruction / description
      Previous value: -"What to tell your user on a refusal"New value: +"Why the call was refused"
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: it enumerates every blocking reference, states that refusal writes nothing, states the effect on lists/pickers, declares irreversibility ('no way to bring it back'), and describes the alreadyArchived repeat-call response. The described no-op on repeat calls is slightly more idempotent-sounding than idempotentHint=false, but that is a conservative-annotation nuance rather than a real contradiction of the safety profile.

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?

Front-loaded with the action and its precondition, then failure modes, side effects, idempotency, and permission in descending order of importance. The semicolon-delimited dependency list is dense but every element earns its place.

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 destructive, irreversible mutation this covers the role requirement, all refusal conditions, the post-state of the resource, and repeat-call behavior; an output schema exists, so return values need no explanation. Nothing an agent needs in order to call it safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

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

Only one parameter, categoryId, and schema coverage is 100%, so the schema already carries its meaning. The description adds no format or sourcing detail (where to obtain the id) beyond what the schema states, so the baseline applies.

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+resource ('Archive a category') plus the decisive scope constraint ('that nothing uses'), immediately distinguishing it from update_category or create_category. An agent knows exactly what this does without reading the 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?

Gives a concrete when-to-use case ('a starter category the organization does not need') and enumerates explicit when-not conditions (items, sub-categories, item models, fields, maintenance plans, item kits) plus the manager-role prerequisite. It lacks an explicit pointer to an alternative tool (e.g. update_category for categories still in use), which keeps it short of 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