Skip to main content
Glama

freightgate-mcp-server

Compare D&D Across Shipping Lines

shippingrates_dd_compare
Read-onlyIdempotent

Compare demurrage and detention costs across ALL available carriers for the same country, container type, and detention days.

Use this for freight procurement and carrier selection — it answers "which carrier has the cheapest D&D in this country?" Returns a side-by-side comparison with each carrier's free days, slab rates, and total cost sorted cheapest first.

For a single carrier's detailed D&D breakdown, use shippingrates_dd_calculate instead.

PAID: $0.25/call via x402 (USDC on Base or Solana). Without payment, returns 402 with payment instructions.

Returns: Array of { line, free_days, total_cost, currency, slabs } for each available carrier, sorted by total_cost ascending.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysYesNumber of detention days
countryYesISO 2-letter country code
x_paymentNox402 payment proof header
container_typeYesISO 6346 container type — 20GP, 40GP, 40HC, 20RF, 40RF, 20OT, 40OT, 45HC, 40FR, 20FR, 40DG, 20DG, 45RF, 45OT, 45DG, 40TK, 20TK, 45GP, 45TK, 40NOR

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changed
    • changedInput schema / properties / container_type / description
      Previous value: -"ISO 6346 container type — 20DV, 40DV, 40HC, 20RF, 40RF, 20OT, 40OT, 20FR, 40FR"New value: +"ISO 6346 container type — 20GP, 40GP, 40HC, 20RF, 40RF, 20OT, 40OT, 45HC, 40FR, 20FR, 40DG, 20DG, 45RF, 45OT, 45DG, 40TK, 20TK, 45GP, 45TK, 40NOR"
    • changedInput schema / properties / container_type / enum
      Previous value: -[
      -  "20DV",
      -  "40DV",
      -  "40HC",
      -  "20RF",
      -  "40RF",
      -  "20OT",
      -  "40OT",
      -  "20FR",
      -  "40FR"
      -]New value: +[
      +  "20GP",
      +  "40GP",
      +  "40HC",
      +  "20RF",
      +  "40RF",
      +  "20OT",
      +  "40OT",
      +  "45HC",
      +  "40FR",
      +  "20FR",
      +  "40DG",
      +  "20DG",
      +  "45RF",
      +  "45OT",
      +  "45DG",
      +  "40TK",
      +  "20TK",
      +  "45GP",
      +  "45TK",
      +  "40NOR"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / container_type / description
      Previous value: -"Container type code"New value: +"ISO 6346 container type — 20DV, 40DV, 40HC, 20RF, 40RF, 20OT, 40OT, 20FR, 40FR"
  3. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds valuable behavioral context: the tool is PAID ($0.25/call via x402 with payment instructions if unmet), returns a sorted array, and explains the response format. No contradictions with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is five sentences with no filler. The first sentence states the core function, the second explains use cases, the third differentiates from a sibling, the fourth covers payment, and the fifth describes the return value. Every sentence earns its place.

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?

The description covers purpose, usage, payment behavior, alternative tools, and the return format (array of objects with fields, sorted by total_cost). There is no output schema, so the description carries the burden of explaining the response, which it does, though it doesn't elaborate on the 'slabs' field structure or potential error cases. Overall, it's sufficiently complete for a paid comparison tool.

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%, so the baseline is 3. The description reinforces the meaning of the three required parameters (country, container type, days) but does not add significant new semantic detail beyond the schema, aside from clarifying that 'days' refers to detention days in the first sentence.

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 clearly states the tool's purpose with a specific verb ('Compare') and resource ('demurrage and detention costs across ALL available carriers'), and explicitly distinguishes it from the sibling tool shippingrates_dd_calculate by pointing to that alternative for single-carrier comparisons. This is more than adequate.

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?

Explicitly states when to use: for freight procurement and carrier selection, answering 'which carrier has the cheapest D&D in this country?'. It also directly says to use shippingrates_dd_calculate instead for a single carrier's detailed breakdown, providing a clear when-not scenario.

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