Skip to main content
Glama

TCS-i

Create or replace a packing rule

save_box_rule
Destructive

A packing rule: an order of exactly these SKUs and quantities goes in these boxes. Without id it's created; with id, replaced. auto_layout (default true) has the engine place the units so the rule is used at once; if they can't be placed the rule is still saved, with layout_problem saying why. brand null = every brand. As POST/PUT /v1/box-rules.

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": {
      "name": "<name>",
      "items": "<items>",
      "box_ids": "<box_ids>"
    },
    "name": "save_box_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
nameYes
noteNo
brandNo
itemsYes
box_idsYes
enabledNo
auto_layoutNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare the mutation/destructive profile; the description adds substantive behavior beyond that: auto_layout defaults to true, placement failure does not abort the save, and layout_problem in the response explains why placement failed. It also clarifies that a null brand means the rule applies to every brand and maps the operation to POST/PUT /v1/box-rules. That is exactly the kind of failure-mode and default-value context a caller needs.

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?

Four short sentences, front-loaded with the conceptual definition before the id-mode rule, then the auto_layout failure behavior, then the brand default. The telegraphic phrasing is dense but every clause carries information the schema and annotations do not.

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

Completeness4/5

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

For a destructive 8-parameter mutation with no output schema, the description covers the highest-risk unknowns: replacement semantics, the default of auto_layout, and the fact that a failed layout still persists the rule. Missing pieces are what enabled toggles, what note is for, and whether replacement discards existing layout state, but none of these blocks a correct call.

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 description coverage is 0% across 8 parameters, so the description must carry the load, and it does for the ambiguous ones: id (create vs replace), auto_layout (default true and what it does), brand (null = every brand). The meaning of items and box_ids is conveyed indirectly by 'exactly these SKUs and quantities goes in these boxes'. Gaps remain for note and enabled, which are never explained.

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 first sentence defines the resource precisely: an order of exactly these SKUs and quantities going into these boxes. The create-vs-replace split on presence of id is stated outright, so an agent knows this is an upsert rather than a plain create. It stops short of naming a sibling such as save_box or list_box_rules to contrast against.

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

Usage Guidelines3/5

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

There is an explicit conditional rule for the two modes: 'Without id it's created; with id, replaced.' That is real usage guidance for the primary decision. However, nothing says when to reach for this tool versus save_box, list_box_rules, or recommend_box, and no prerequisites or exclusions are given.

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