Skip to main content
Glama

ERP: Create or change a goods category

erp_category_save
Destructive

Create a goods category («відкрий розділ / категорію X», a new section of the catalog and of the connected web shop) or rename an existing one. 'category' = the category's name or «Parent / Child» path: an existing one is renamed with 'rename_to'; a name nobody has creates it (at the top, inside 'parent', or «Parent / New» creates New inside Parent). Products are put in a category with erp_product_update category=…; a product is hidden on the site with erp_product_update on_site=false. Moving, deleting or hiding a whole category is not possible here. Proposed write: one card. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.

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": {
      "category": "<category>"
    },
    "name": "erp_category_save"
  }
}

Input Schema

NameRequiredDescriptionDefault
parentNoFor a NEW category: the category to create it in (name or path).
categoryYes
rename_toNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / parent / description
      Previous value: -"The category to put it in (name or path); \"\" = top level."New value: +"For a NEW category: the category to create it in (name or path)."
  2. Added

TDQS

A4.8/5.0
Behavior4/5

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

The annotations only declare readOnlyHint=false, destructiveHint=true, openWorldHint=false; the description adds the crucial non-obvious fact that this tool is always a proposed write that never executes directly, plus the exact confirmation payload an agent will receive. It stops short of explaining what is actually at risk when an existing category is renamed (e.g. effect on contained products or the linked web shop), and the phrase 'Proposed write: one card' is unexplained jargon.

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?

Purpose and the create/rename rule are front-loaded, then alternatives, then exclusions, then the confirmation protocol — a logical order with no filler. The embedded user-utterance examples are compact and earn their place by mapping natural phrasing to parameters, though 'one card' is mildly opaque.

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 3-parameter mutation tool with no output schema, the definition covers everything needed to call it correctly: parameter meaning, sibling routing, what it cannot do, and the exact confirmation round-trip including the fields the agent should expect back.

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

Parameters5/5

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

Schema coverage is only 33% ('rename_to' is undocumented, 'category' has no description), so the description carries the burden and does: it defines 'category' as a name or «Parent / Child» path, gives rename-vs-create branching, and clarifies that 'parent' applies only to a NEW category while «Parent / New» is shorthand for creating New inside Parent.

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 a goods category ... or rename an existing one') and immediately defines the branching rule: an existing 'category' is renamed via 'rename_to', a new name creates it. This distinguishes creation from mutation within a single tool, which an agent could not infer from the name alone.

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 routes adjacent operations elsewhere: putting products in a category and hiding a product belong to erp_product_update, and moving/deleting/hiding a whole category is called out as impossible here. It also states the mandatory confirmation sequence (status='confirmation_required', action_id, plan_token, then confirm_action), so an agent knows the follow-up call.

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