Skip to main content
Glama

Detect reference

detect_reference
Read-onlyIdempotent

Check a number before tracking it: is it a container (ISO 6346 check digit), bill of lading or booking number, and which carrier issued it. Stores nothing and needs no company. Use it when the user is unsure what a number is; track_shipment detects on its own. Required: reference (3-64 characters, e.g. MSCU1234566). Returns: reference, ref_type, carrier_scac, carrier_name, confidence, check_digit_valid, note, suggested_carrier.

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": {
      "reference": "<reference>"
    },
    "name": "detect_reference"
  }
}

Input Schema

NameRequiredDescriptionDefault
referenceYesContainer, bill of lading or booking number.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so safety is covered. The description still adds real context beyond them: 'Stores nothing and needs no company', plus a full list of returned fields including confidence and check_digit_valid. It stops short of explaining how confidence should be interpreted or what happens on ambiguous matches, which keeps it from a 5.

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?

It is front-loaded with the core question ('is it a container, bill of lading or booking number') and followed by conditions, constraint, and return fields in a logical order with no filler. The trailing field enumeration is dense but justified because no output schema exists.

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 one-parameter read-only lookup with no output schema, the description supplies everything needed: purpose, alternative, preconditions, input format, and the exact return fields. Nothing an agent requires to call it correctly or interpret the result 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 single parameter is already documented, making 3 the baseline. The description goes slightly beyond by repeating the 3-64 character constraint and supplying a concrete example value (MSCU1234566) that shows the expected format, which helps an agent pre-validate input.

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 states a specific verb and resource (check a number's type and issuing carrier) and enumerates the exact classifications it can return: container with ISO 6346 check digit, bill of lading, or booking number. It explicitly distinguishes itself from track_shipment, which 'detects on its own', so an agent can choose between them without opening either schema.

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 when the user is unsure what a number is') and an explicit when-not/alternative ('track_shipment detects on its own'). It also adds a precondition clearing statement ('needs no company') that removes a likely source of hesitation before calling.

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.