Skip to main content
Glama

Edit a department

dept_edit
DestructiveIdempotent

Edit an existing department/category by its ID. All fields are optional except the ID. Use data_list_departments to find the department ID first.

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": {
      "id": "<id>"
    },
    "name": "dept_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesID of the department to modify
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

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and idempotentHint=true, so the safety profile is covered structurally. The description adds that everything except the ID is optional, but it never says whether omitted fields are preserved or cleared — critical for a destructive 20-field update — nor does it mention permissions or the response shape.

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?

Two short sentences, purpose front-loaded, prerequisite second, with no filler or restatement of the title. Every sentence contributes something the structured fields do not already state.

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 20-parameter destructive mutation with no output schema, the description covers purpose, the required ID, and how to obtain it, which is the minimum viable set. It is thin on partial-update semantics (what happens to fields left out) and on what the call returns, both of which matter at this complexity.

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% across all 20 parameters, so the schema already carries per-field meaning and the description need not repeat it. The one added value is the blanket statement that all fields other than id are optional, which is already implied by the required array, so this lands at the 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?

The description states a specific verb and resource ("Edit an existing department/category by its ID") and adds the synonym "category" plus the keying field, so an agent can tell it apart from dept_add or dept_delete without opening a schema. It does not explicitly name those mutation siblings, which keeps it just short of a 5.

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?

It gives a concrete prerequisite step — call data_list_departments to resolve the department ID first — which is real orchestration guidance an agent would otherwise have to guess. The word "existing" implies it is not for creation, but no explicit when-not or sibling comparison (e.g., vs dept_add) is stated.

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