Skip to main content
Glama

Correct a packing line

update_packing_line
DestructiveIdempotent

Changes data: corrects what was read off a packing list on one packing line (variety, calibre, quality category, GGN, brand, pack format, box count, box weight or comment), as the person who connected this app, and records it in the organization's audit log. The new value replaces the old one and is kept when the list is read again, so use it only when the user asks to correct a line, and say what will change before calling it. Only the arguments you send change; null or an empty string clears a text field. Net weight is not set: it is recalculated from box weight and box count, and the checks on box count, weights and brands run again. Sending what the line already holds changes nothing, so it is safe to repeat. The answer is the line and changes, each changed field with its old from and new to. Get the packing_line_id (such as "pln_5521") from list_preallocations; to set one field on many lines use set_packing_line_values, and for one GGN on the whole shipment set_shipment_ggn.

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": {
      "packing_line_id": "<packing_line_id>"
    },
    "name": "update_packing_line"
  }
}

Input Schema

NameRequiredDescriptionDefault
ggnNoThe grower's GGN, 13 digits (spaces and dashes are ignored).
labelNoThe brand printed on the box.
calibreNoThe calibre or size, such as "18".
commentNoA note on the line, such as "soft, sell first".
varietyNoThe variety, such as "Hass".
box_countNoThe number of boxes on the line.
pack_formatNoThe pack format, such as "4kg".
box_weight_kgNoThe weight of one box in kilograms.
packing_line_idYesA packing line id such as "pln_5521", as returned by list_preallocations.
quality_categoryNoThe quality category, such as "I" or "Premium".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, the description explains what destructive means here: the incoming value replaces the old one, is recorded in the organization's audit log, and persists the next time the list is read. It also discloses the recalculation side effect for net weight and that box count, weight and brand checks rerun, plus why the idempotentHint holds (sending the current values changes nothing).

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?

Every sentence carries information: scope, effect, persistence, alternatives, side effects, idempotency and return shape. It is a dense single paragraph, and the opening sentence is long and field-heavy, which slightly delays the when-to-use guidance, but there is no wasted prose.

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 10-parameter mutation tool with no output schema, the description covers the id source, the alternatives, overwrite and audit behavior, side effects, idempotency, and even the response shape (the line plus changes with from and to). An agent has everything needed to call this safely.

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 adds meaning the schema does not carry: null or an empty string clears a text field, net weight is derived rather than set, only the arguments sent change, and the packing_line_id comes from list_preallocations (e.g. "pln_5521"). It is meaningfully above the schema baseline.

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 definition names a specific verb (corrects) and resource (one packing line) and enumerates exactly what can be corrected: variety, calibre, quality category, GGN, brand, pack format, box count, box weight and comment. It also names sibling tools it is not, so an agent can separate it from set_packing_line_values and set_shipment_ggn.

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 an explicit when-to-use rule ("use it only when the user asks to correct a line, and say what will change before calling it") and routes to alternatives with conditions: set_packing_line_values for one field across many lines, set_shipment_ggn for a single GGN across the whole shipment. Nothing about choosing this tool is left 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