Skip to main content
Glama

Save Catalog Taxonomy

save_catalog_taxonomy
Destructive

Create or edit an item category, brand or item group (kind=category|brand|group). Omit id to create (name required); pass id to edit, where every omitted field keeps its value. Names are unique per kind (per parent for categories). Categories nest under parentCategoryId (makeTopLevel=true un-nests; a category cannot move under its own subtree). Editing a group's salesTaxId or depositFeeAmount also moves the items still on the group's old value, as the app does; the preview counts them. Requires an operator (unpinned) credential. Put items into entries with set_item_classification.

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": {
      "kind": "<kind>",
      "input": "<input>"
    },
    "name": "save_catalog_taxonomy"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoThe entry id (GUID) to edit; omit to create.
kindYescategory, brand or group.
inputYesThe fields to set.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused.

Output Schema

NameRequiredDescriptionDefault
okNo
entryNo
deletedNo
previewNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=false), it discloses genuinely load-bearing behavior: partial-update merge semantics, uniqueness per kind/parent, the ban on moving a category under its own subtree, and the cascade where changing a group's salesTaxId or depositFeeAmount also moves items on the old value. The two-step preview/receipt commit contract and the 'calls without it are refused' rule add real safety context. Slightly short of a 5 only because the blast radius of an edit beyond the group-fee cascade (e.g. what deletion of fields does) is not elaborated.

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?

Dense and front-loaded: the verb and kind discriminator come first, then edit semantics, constraints, side effects, and auth. It is one long block rather than broken into scannable segments, and a couple of clauses (uniqueness, preview counting) repeat schema text, but almost nothing is wasted.

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 nested-schema, destructive write tool with six parameters, the description covers creation vs editing, required fields, uniqueness, nesting constraints, cascading side effects, credential requirements, and the preview/commit flow. Since an output schema exists, the absence of return-value detail 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 still adds meaning: it explains the omit-id-vs-pass-id semantics of id, the create-vs-edit difference for name, the un-nest behavior of makeTopLevel, and the default top-level placement of new categories. Much of the per-field cascade wording is duplicated from the schema rather than new, which keeps it at 4.

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?

The description opens with a specific verb+resource ('Create or edit an item category, brand or item group') and disambiguates the three variants via kind=category|brand|group. It also routes item-to-entry work to the sibling set_item_classification, so an agent can separate the two without opening either schema.

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?

It gives explicit routing rules: omit id to create (name required), pass id to edit with merge semantics, and use set_item_classification for putting items into entries. It also states the operator-credential prerequisite and the mandatory preview-then-commit sequence, leaving little to inference.

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