Skip to main content
Glama

Attach a waybill number to an order

set_order_waybill
DestructiveIdempotent

Writes a waybill (tracking) number into a store order so the buyer can track the parcel (Prom.ua delivery declaration, Rozetka TTN, KeyCRM tracking code, Horoshop external tracking code).

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": {
      "order_ref": "<order_ref>",
      "ttn": "<ttn>"
    },
    "name": "set_order_waybill"
  }
}

Input Schema

NameRequiredDescriptionDefault
ttnYesWaybill / tracking number (Nova Poshta: 14 digits)
order_refYesOrder reference, e.g. prom:312874561

Output Schema

NameRequiredDescriptionDefault
ttnYes
demoNo
noteNo
storeYes
order_refYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 readOnlyHint=false, destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuinely new context by naming which platform-specific tracking field is written for each store type, but it does not say whether an existing waybill is silently overwritten (relevant given destructiveHint=true), nor what permissions or order preconditions are required.

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?

A single front-loaded sentence that states the mutation first and the business intent second, with the platform list as a compact parenthetical. Nothing is wasted, though the parenthetical enumeration is dense and slightly lengthens the sentence without changing agent behavior.

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?

With only two required parameters, 100% schema coverage, existing annotations, and an output schema (so return values need not be explained), the core is covered. Gaps remain around mutation preconditions: order state requirements, overwrite semantics for an already-set waybill, and error behavior on unknown order_ref.

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%, with both parameters documented (ttn format hints for Nova Poshta, order_ref example 'prom:312874561'), so the schema does the heavy lifting. The description only adds the platform-to-field mapping for the ttn value; it introduces no new syntax, format, or validation detail beyond the schema.

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?

States a specific verb and resource ('Writes a waybill (tracking) number into a store order') plus the intent ('so the buyer can track the parcel'), and the parenthetical enumerates the concrete platform fields populated (Prom.ua delivery declaration, Rozetka TTN, KeyCRM/Horoshop codes). It is clearly an attach-existing-TTN operation rather than a waybill-creation operation, which implicitly separates it from np_create_waybill, though that sibling is never named.

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?

There is no explicit when-to-use guidance, no mention of the natural companion step (creating the TTN first via np_create_waybill), and no statement about which order statuses accept a waybill. An agent must infer the workflow and the alternative from context rather than from the definition.

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