Skip to main content
Glama

Add a department

dept_add

Add a new department (product category) to the catalog. Requires a title. Optional fields include VAT rate (vatID), price, discount, position, department group, and variations.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dept_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
priceNoDefault price for free-price items
stockNoStock quantity override at department level
titleNoDepartment/category display name
vatIDNoDefault VAT rate ID for this department
unitIDNoUnit of measure ID
positionNoDisplay order on keyboard
shopHideNo1 to hide from online shop
needPrepaNo1 if items require kitchen preparation
discountIDNoDefault discount ID
eatinvatIDNoEat-in VAT rate ID
shortTitleNoShort label for receipt or keyboard
deptGroupIDNoDepartment group this department belongs to
activityCodeNoAccounting activity code
keyboardHideNo1 to hide from POS keyboard
variationID0NoVariation type ID for slot 0
variationID1NoVariation type ID for slot 1
variationID2NoVariation type ID for slot 2
variationID3NoVariation type ID for slot 3
variationID4NoVariation type ID for slot 4

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare this a non-read-only, non-destructive, non-idempotent, closed-world mutation, so the safety profile is covered. The description adds only the 'requires a title' constraint - which conflicts with the schema's empty required list - and does not address duplicate handling, whether an ID is returned, or side effects on the POS/shop configuration.

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?

Two compact sentences that front-load the action and resource before listing fields. The trailing field enumeration is partly redundant with the schema but is short enough not to feel wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 19-parameter creation tool with no output schema, the description covers the purpose but not the outcome (new department identifier) or failure modes such as duplicate titles. It is adequate but leaves meaningful gaps for an agent that must construct a large payload and confirm success.

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?

Schema description coverage is 100%, so every one of the 19 fields is already documented inline. The description names only a handful (vatID, price, discount, position, department group, variations) and omits many others (stock, unitID, shopHide, needPrepa, shortTitle, keyboardHide, activityCode), so it adds little beyond the schema baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Add a new department (product category) to the catalog" gives a specific verb and resource and even glosses the domain term 'department' as a product category, which helps disambiguate it from sibling tools like dept_group_add. It stops short of explicitly contrasting itself with dept_edit/dept_delete, so it is clear but not fully differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only usage statement is "Requires a title," which is itself questionable given the schema declares zero required parameters. There is no guidance on when to use this versus dept_edit for existing categories or dept_group_add for groups, and no mention of prerequisites or duplicate-name behavior.

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