Skip to main content
Glama

Generate Barcode

generate_barcode

Generate a PostNL shipping barcode required before shipment creation; select the correct barcode type for mailbox, domestic, EU, letter, registered, or non-EU parcels.

Instructions

Generate a PostNL barcode for shipping. The barcode is required before creating a shipment. Types: 2S (mailbox parcel), 3S (domestic NL parcels), CC/CP/CD/CF (EU parcels), LA (EU letter), RI (registered international), UE (non-EU parcels).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_barcode"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoBarcode type. 2S = mailbox parcel, 3S = domestic, CC = EU consumer parcel, CP = EU compact, CD = EU parcel, CF = EU bulk, LA = EU letter, RI = registered international, UE = non-EU3S
rangeNoCustomer code override (defaults to env POSTNL_CUSTOMER_CODE)
serieNoBarcode serie range000000000-999999999

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.3

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and openWorldHint=true, so the description needn't restate that this is a non-idempotent remote write. The description adds the useful sequencing constraint but omits the behavioral consequence of non-idempotency: that each call yields a new barcode and calling twice may leave orphaned barcodes. No mention of expiry/validity, auth/customer-code requirements, or rate limits.

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?

Three short, front-loaded sentences: purpose, prerequisite, then the type taxonomy. The type taxonomy largely repeats the enum descriptions in the schema, so that sentence is the only redundant weight, but it does not bloat the definition.

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 three-optional-parameter generator with no output schema, the definition covers purpose, workflow position and type selection, which are the decisions an agent actually faces. It leaves the return shape (barcode string plus serie/range echoes) implicit and says nothing about whether generated barcodes expire, which is the main residual gap.

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 coverage is 100%, so the schema already defines every parameter, including the type enum with per-value meanings. The description's type list duplicates a subset of that enum text and says nothing about 'range' or 'serie' (customer-code override, serie range), so it adds no meaning beyond the structured data.

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 ('Generate') and resource ('a PostNL barcode for shipping') and ties it to a concrete workflow step. It does not name the downstream sibling tool explicitly, but the 'required before creating a shipment' clause makes its role distinct from create_shipment and the read-only lookup tools.

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?

Gives a clear when-to-use trigger (must be obtained before creating a shipment), which is stronger than most sibling definitions. It stops short of when-not-to-use guidance, e.g. whether to reuse an existing barcode rather than generating a new one, or how to pick a type for a given destination/parcel class.

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