Skip to main content
Glama

Create Shipment

create_shipment

Create a PostNL shipment using a barcode plus sender and receiver addresses, and generate a PDF shipping label returned as base64 for printing or storage.

Instructions

Create a PostNL shipment and generate a shipping label. Requires a barcode (use generate_barcode first), sender address (AddressType 02), and receiver address (AddressType 01). Returns a PDF label as base64. Common product codes: 3085 (standard), 3385 (stated address only), 3090 (neighbour + return), 3087 (extra cover), 3089 (signature on delivery), 3533/3534 (pickup point). Evening delivery: use product option {Characteristic: '118', Option: '006'} with a DeliveryDate. WARNING: Creating a shipment incurs shipping costs. Always confirm with the user before calling this tool.

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": {
      "barcode": "<barcode>",
      "addresses": "<addresses>"
    },
    "name": "create_shipment"
  }
}

Input Schema

NameRequiredDescriptionDefault
remarkNoRemark for the shipment
barcodeYesThe barcode for this shipment (use generate_barcode to create one)
confirmNoConfirm the shipment immediately (true) or save as concept (false)
customsNoCustoms information (required for international shipments)
contactsNoContact information for notifications
addressesYesArray of addresses. Must include sender (AddressType 02) and receiver (AddressType 01)
dimensionNoPackage dimensions
referenceNoYour reference for this shipment
printerTypeNoLabel output formatGraphicFile|PDF
deliveryDateNoRequested delivery date (format: dd-MM-yyyy HH:mm:ss)
productOptionsNoAdditional product options
productCodeDeliveryNoProduct code: 3085 (standard), 3385 (evening), 3090 (pickup), 3087 (extra@home), 3089 (signature)3085

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.3

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly=false, openWorld=true, non-idempotent, non-destructive, but the description adds the crucial business consequence they do not: creating a shipment incurs shipping costs and requires user confirmation. It also discloses the response format (PDF label as base64) and the effect of the confirm flag (immediate shipment vs. saved concept), which materially affects how an agent should call it.

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?

The core precondition, cost warning and return format are front-loaded and the product code list is compressed into a single scannable clause. The description is dense but nearly every sentence carries operational information; only the long code enumeration approaches padding.

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 12-parameter, nested-object mutation tool with no output schema, this covers what an agent actually needs: prerequisites, address type requirements, cost/confirmation risk, label format, and common product configurations. Nothing essential to a correct first call is missing.

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 beyond the schema for product selection (which code is standard, evening, pickup, signature) and the evening-delivery product option pair (Characteristic '118', Option '006') paired with a DeliveryDate. It does not explain the nested customs and dimension fields, which remain schema-only.

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 description opens with a specific verb+resource ('Create a PostNL shipment and generate a shipping label') and immediately states the return artifact, so an agent knows both the action and the output. It is clearly distinguishable from siblings such as generate_barcode and get_delivery_options.

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 ('Requires a barcode (use generate_barcode first)') and a hard social rule ('Always confirm with the user before calling this tool'), which is unusually actionable. It does not explicitly say when not to use this tool or when a different product/flow would be preferable, so it stops short of full when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.