Skip to main content
Glama
FreightUtils MCP Server

FreightUtils MCP Server

shipment_summary

Read-onlyIdempotent

Analyze a shipment in one call: compute CBM, gross and chargeable weight, mode-specific LDM or volumetric weight, suggested vehicle or container, dangerous-goods presence and UK duty estimates.

Instructions

Composite shipment analysis in one call: volume (CBM), gross and chargeable weight, and by mode road LDM with pallet floor positions and a suggested vehicle, air volumetric weight, or sea revenue tonnes with a suggested container; plus dangerous-goods presence for items with un_number and UK duty estimates for items with hs_code + customs_value. weight and customs_value are PER ITEM; adr_quantity is the TOTAL for the dangerous-goods line, all pieces together. An item with no stackable flag is not stacked. Sections that cannot run surface in warnings instead of failing the call. Its result uses camelCase field names (legacy shape). For canonical snake_case lines[] totals with advisory flags use consignment_calculator; single figures cbm_calculator, chargeable_weight_calculator, ldm_calculator; ldm_calculator, adr_lookup and uk_duty_calculator are the engines it calls. edition ("2025" | "2027") and as_of choose the ADR edition; neither sent, ADR 2025 until 2027-01-01. Fields are checked by name: a field the tool does not read is refused with a tool error naming it and listing the accepted ones, never ignored. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. A planning summary, not a quotation or compliance determination.

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": "shipment_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoTransport mode — selects the mode-specific section of the result. Required unless consignment is sent.
as_ofNoThe date the answer is for, YYYY-MM-DD (default today, UTC).
itemsNoRequired unless consignment is sent. Shipment items with dimensions, weight and optional HS/UN codes.
originNoOrigin — ISO country code and optional UN/LOCODE.
editionNoADR edition; wins over as_of. Omitted: as_of picks it.
incotermNoIncoterms 2020 three-letter code.
consignmentNoThe consignment object, instead of the other arguments. Send it alone.
destinationNoDestination — ISO country code and optional UN/LOCODE.
freight_costNoFreight cost in GBP for the duty calculation, 0 or more. Default: 0.
insurance_costNoInsurance cost in GBP for the duty calculation, 0 or more. Default: 0.

Output Schema

NameRequiredDescriptionDefault
okYes
_metaNo
as_ofNo
resultYes
statusNo
_sourceYes
editionNo
citationYes
validityNo
warningsNo
confidenceYes
missing_inputsNo
blocking_errorsNo
envelope_versionYes
normalized_inputNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changedv2.34.4
    • changedInput schema / properties / as_of / description
      Previous value: -"YYYY-MM-DD the answer is for (default today, UTC); picks the ADR edition when edition is omitted, and is echoed in the answer and its check receipt."New value: +"The date the answer is for, YYYY-MM-DD (default today, UTC)."
    • changedInput schema / properties / consignment / description
      Previous value: -"Alternative to the other arguments: the consignment object (https://www.freightutils.com/schema/consignment-object.v1.json) — lines[], journey, vehicle, options. Send it alone; an input this tool needs and the object lacks comes back in missing_inputs."New value: +"The consignment object, instead of the other arguments. Send it alone."
    • changedInput schema / properties / edition / description
      Previous value: -"ADR edition: \"2025\" or \"2027\". Wins over as_of. Omit it and as_of picks the edition by the legal timeline: before 2027-01-01 ADR 2025; from 2027-01-01 ADR 2027 (ADR 2025 may still be applied until 2027-06-30 under 1.6.1.1 — edition \"2025\" answers on it until then); from 2027-07-01 ADR 2027 only. An ADR 2027 answer for a date before 2027-01-01 carries an EDITION_NOT_YET_APPLICABLE warning."New value: +"ADR edition; wins over as_of. Omitted: as_of picks it."
    • changedInput schema / properties / incoterm / description
      Previous value: -"Incoterms 2020 three-letter code. Examples: \"DAP\", \"EXW\", \"FOB\"."New value: +"Incoterms 2020 three-letter code."
    • changedInput schema / properties / items / items / properties / adr_quantity / description
      Previous value: -"OPTIONAL ADR 1.1.3.6.3 quantity for this dangerous-goods line — the total for the whole line, all pieces together (never per piece), in adr_quantity_unit. SEPARATE from weight, which is gross package mass — 1.1.3.6.3 counts none of its four categories that way. Supply both on EVERY dangerous-goods line and adrFlags.totalPoints is calculated; omit either and it stays null."New value: +"ADR 1.1.3.6.3 quantity of the dangerous goods, the TOTAL for the whole line (never per piece), in adr_quantity_unit; separate from weight."
    • changedInput schema / properties / items / items / properties / adr_quantity_unit / description
      Previous value: -"Dimension of adr_quantity. CHECKED against the dimension 1.1.3.6.3 counts for the row — a litres entry given kilograms still withholds the total."New value: +"Dimension of adr_quantity, checked against the one ADR 1.1.3.6.3 counts for the row."
    • changedInput schema / properties / items / items / properties / customs_value / description
      Previous value: -"Customs value in GBP PER ITEM (per piece), 0 or more — multiplied by quantity for the line; the duty estimate uses the sum over all lines. Enables the duty section with hs_code."New value: +"Customs value in GBP PER ITEM; enables the duty section with hs_code."
    • changedInput schema / properties / items / items / properties / weight / description
      Previous value: -"Gross weight in kg PER ITEM (per piece) — multiplied by quantity."New value: +"Gross weight in kg PER ITEM."
    • removedOutput schema / properties / _meta / properties / upstream / properties / datasets / additionalProperties / properties / kind / description
      Removed value: -"watched (its upstream is fetched daily) or checksum-only (no upstream of its own)."
    • removedOutput schema / properties / _meta / properties / upstream / properties / datasets / additionalProperties / properties / last_success / description
      Removed value: -"The last day (YYYY-MM-DD) the upstream check succeeded; null when none is recorded."
    • removedOutput schema / properties / _meta / properties / upstream / properties / datasets / additionalProperties / properties / reason / description
      Removed value: -"Why the state is unknown."
    • removedOutput schema / properties / _meta / properties / upstream / properties / stale / description
      Removed value: -"True only when a dataset below missed its upstream check window (window_missed)."
    • removedOutput schema / properties / _meta / properties / upstream / properties / state / description
      Removed value: -"The worst state of the datasets below."
    • removedOutput schema / properties / _meta / properties / upstream / properties / state_read_at / description
      Removed value: -"When the site upstream check recorded the state (ISO 8601); null when it could not be read."
  2. Changed2 schema fields changedv2.34.0
    • addedOutput schema / properties / _meta / properties / ids
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "pattern": {
      +      "type": "string"
      +    },
      +    "scheme": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "scheme",
      +    "pattern"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / _meta / properties / upstream
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "datasets": {
      +      "additionalProperties": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "kind": {
      +            "description": "watched (its upstream is fetched daily) or checksum-only (no upstream of its own).",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "last_success": {
      +            "description": "The last day (YYYY-MM-DD) the upstream check succeeded; null when none is recorded.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "reason": {
      +            "description": "Why the state is unknown.",
      +            "type": "string"
      +          },
      +          "stale": {
      +            "type": "boolean"
      +          },
      +          "state": {
      +            "enum": [
      +              "in_step",
      +              "changed_upstream",
      +              "schema_drift",
      +              "unreachable",
      +              "window_missed",
      +              "unknown"
      +            ],
      +            "type": "string"
      +          },
      +          "window_days": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "state",
      +          "kind",
      +          "last_success",
      +          "window_days",
      +          "stale"
      +        ],
      +        "type": "object"
      +      },
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "stale": {
      +      "description": "True only when a dataset below missed its upstream check window (window_missed).",
      +      "type": "boolean"
      +    },
      +    "state": {
      +      "description": "The worst state of the datasets below.",
      +      "enum": [
      +        "in_step",
      +        "changed_upstream",
      +        "schema_drift",
      +        "unreachable",
      +        "window_missed",
      +        "unknown"
      +      ],
      +      "type": "string"
      +    },
      +    "state_read_at": {
      +      "description": "When the site upstream check recorded the state (ISO 8601); null when it could not be read.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "state",
      +    "stale",
      +    "state_read_at",
      +    "datasets"
      +  ],
      +  "type": "object"
      +}
  3. Changed2 schema fields changedv2.31.0
    • removedOutput schema / properties / _meta / properties / receipt / properties / reason / const
      Removed value: -"key_required"
    • addedOutput schema / properties / _meta / properties / receipt / properties / reason / enum
      Added value: +[
      +  "key_required",
      +  "quota"
      +]
  4. Changed10 schema fields changedv2.27.0
    • addedInput schema / properties / as_of
      Added value: +{
      +  "description": "YYYY-MM-DD the answer is for (default today, UTC); picks the ADR edition when edition is omitted, and is echoed in the answer and its check receipt.",
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / consignment
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Alternative to the other arguments: the consignment object (https://www.freightutils.com/schema/consignment-object.v1.json) — lines[], journey, vehicle, options. Send it alone; an input this tool needs and the object lacks comes back in missing_inputs.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / edition
      Added value: +{
      +  "description": "ADR edition: \"2025\" or \"2027\". Wins over as_of. Omit it and as_of picks the edition by the legal timeline: before 2027-01-01 ADR 2025; from 2027-01-01 ADR 2027 (ADR 2025 may still be applied until 2027-06-30 under 1.6.1.1 — edition \"2025\" answers on it until then); from 2027-07-01 ADR 2027 only. An ADR 2027 answer for a date before 2027-01-01 carries an EDITION_NOT_YET_APPLICABLE warning.",
      +  "enum": [
      +    "2025",
      +    "2027"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / items / description
      Previous value: -"Shipment items with dimensions, weight and optional HS/UN codes."New value: +"Required unless consignment is sent. Shipment items with dimensions, weight and optional HS/UN codes."
    • changedInput schema / properties / mode / description
      Previous value: -"Transport mode — selects the mode-specific section of the result."New value: +"Transport mode — selects the mode-specific section of the result. Required unless consignment is sent."
    • removedInput schema / required
      Removed value: -[
      -  "mode",
      -  "items"
      -]
    • addedOutput schema / properties / _meta / properties / check_id
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / _meta / properties / edition_basis
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / _meta / properties / receipt
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "created_at": {
      +      "type": "string"
      +    },
      +    "dataset_version": {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "engine_version": {
      +      "type": "string"
      +    },
      +    "inputs": {},
      +    "reason": {
      +      "const": "key_required",
      +      "type": "string"
      +    },
      +    "receipt_hash": {
      +      "type": "string"
      +    },
      +    "result": {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "schema_version": {
      +      "type": "string"
      +    },
      +    "stored": {
      +      "const": false,
      +      "type": "boolean"
      +    },
      +    "tool": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "stored",
      +    "reason",
      +    "schema_version",
      +    "receipt_hash",
      +    "created_at",
      +    "tool",
      +    "inputs",
      +    "dataset_version",
      +    "engine_version",
      +    "result"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / _meta / properties / receipt_url
      Added value: +{
      +  "type": "string"
      +}
  5. Changed10 schema fields changedv2.24.0
    • addedOutput schema / properties / _meta
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "identify": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / as_of
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / blocking_errors / items / properties / recovery / properties / params / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / edition
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "applies_from": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "may_apply_until": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "name": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "applies_from",
      +        "may_apply_until"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / envelope_version / enum
      Previous value: -[
      -  "1",
      -  "1.1"
      -]New value: +[
      +  "1",
      +  "1.1",
      +  "1.2"
      +]
    • addedOutput schema / properties / missing_inputs
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / normalized_input / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / result / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "adr": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "dataVersion": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "disclaimer": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "duty": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "itemCount": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "mode": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "modeSpecific": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "totals": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": true,
      -            "properties": {
      -              "billingBasis": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "chargeableWeight": {
      -                "type": [
      -                  "number",
      -                  "null"
      -                ]
      -              },
      -              "grossWeight": {
      -                "type": [
      -                  "number",
      -                  "null"
      -                ]
      -              },
      -              "pieces": {
      -                "type": [
      -                  "number",
      -                  "null"
      -                ]
      -              },
      -              "volumeCBM": {
      -                "type": [
      -                  "number",
      -                  "null"
      -                ]
      -              }
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "warnings": {
      -        "anyOf": [
      -          {
      -            "items": {},
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "adr": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "dataVersion": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "disclaimer": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "duty": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "itemCount": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "mode": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "modeSpecific": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "totals": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "properties": {
      +              "billingBasis": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "chargeableWeight": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "grossWeight": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "pieces": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "volumeCBM": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "warnings": {
      +        "anyOf": [
      +          {
      +            "items": {},
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  }
      +]
    • addedOutput schema / properties / status
      Added value: +{
      +  "enum": [
      +    "ok",
      +    "partial",
      +    "not_found",
      +    "unsupported",
      +    "ambiguous"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / warnings / items / properties / details / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  6. Changed13 schema fields changedv2.22.3
    • changedInput schema / properties / freight_cost / description
      Previous value: -"Freight cost in GBP for the duty calculation."New value: +"Freight cost in GBP for the duty calculation, 0 or more. Default: 0."
    • addedInput schema / properties / freight_cost / minimum
      Added value: +0
    • changedInput schema / properties / insurance_cost / description
      Previous value: -"Insurance cost in GBP for the duty calculation."New value: +"Insurance cost in GBP for the duty calculation, 0 or more. Default: 0."
    • addedInput schema / properties / insurance_cost / minimum
      Added value: +0
    • changedInput schema / properties / items / items / properties / adr_quantity / description
      Previous value: -"OPTIONAL ADR 1.1.3.6.3 quantity for this dangerous-goods line, in adr_quantity_unit. SEPARATE from weight, which is gross package mass — 1.1.3.6.3 counts none of its four categories that way. Supply both on EVERY dangerous-goods line and adrFlags.totalPoints is calculated; omit either and it stays null."New value: +"OPTIONAL ADR 1.1.3.6.3 quantity for this dangerous-goods line — the total for the whole line, all pieces together (never per piece), in adr_quantity_unit. SEPARATE from weight, which is gross package mass — 1.1.3.6.3 counts none of its four categories that way. Supply both on EVERY dangerous-goods line and adrFlags.totalPoints is calculated; omit either and it stays null."
    • addedInput schema / properties / items / items / properties / adr_quantity / maximum
      Added value: +1000000000
    • changedInput schema / properties / items / items / properties / customs_value / description
      Previous value: -"Customs value per item in GBP — enables the duty section."New value: +"Customs value in GBP PER ITEM (per piece), 0 or more — multiplied by quantity for the line; the duty estimate uses the sum over all lines. Enables the duty section with hs_code."
    • addedInput schema / properties / items / items / properties / customs_value / minimum
      Added value: +0
    • addedInput schema / properties / items / items / properties / quantity / maximum
      Added value: +1000000
    • changedInput schema / properties / items / items / properties / weight / description
      Previous value: -"Gross weight per item in kg."New value: +"Gross weight in kg PER ITEM (per piece) — multiplied by quantity."
    • addedInput schema / properties / items / items / properties / weight / minimum
      Added value: +0
    • addedInput schema / properties / items / maxItems
      Added value: +50
    • addedInput schema / properties / items / minItems
      Added value: +1
  7. Changed2 schema fields changedv2.17.3
    • addedInput schema / properties / items / items / properties / adr_quantity
      Added value: +{
      +  "description": "OPTIONAL ADR 1.1.3.6.3 quantity for this dangerous-goods line, in adr_quantity_unit. SEPARATE from weight, which is gross package mass — 1.1.3.6.3 counts none of its four categories that way. Supply both on EVERY dangerous-goods line and adrFlags.totalPoints is calculated; omit either and it stays null.",
      +  "exclusiveMinimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / items / items / properties / adr_quantity_unit
      Added value: +{
      +  "description": "Dimension of adr_quantity. CHECKED against the dimension 1.1.3.6.3 counts for the row — a litres entry given kilograms still withholds the total.",
      +  "enum": [
      +    "L",
      +    "kg"
      +  ],
      +  "type": "string"
      +}
  8. Changed5 schema fields changedv2.17.2
    • addedOutput schema / properties / _source / properties / authority_current_edition
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / _source / properties / checked_at
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / _source / properties / dataset_edition
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / envelope_version / const
      Removed value: -"1"
    • addedOutput schema / properties / envelope_version / enum
      Added value: +[
      +  "1",
      +  "1.1"
      +]
  9. Changed19 schema fields changedv2.11.0
    • changedInput schema / properties / destination / description
      Previous value: -"Destination location — ISO country code and optional UN/LOCODE"New value: +"Destination — ISO country code and optional UN/LOCODE."
    • changedInput schema / properties / freight_cost / description
      Previous value: -"Optional freight cost in GBP for duty calculation"New value: +"Freight cost in GBP for the duty calculation."
    • changedInput schema / properties / incoterm / description
      Previous value: -"Incoterms 2020 three-letter code (e.g. 'DAP', 'EXW', 'FOB')"New value: +"Incoterms 2020 three-letter code. Examples: \"DAP\", \"EXW\", \"FOB\"."
    • changedInput schema / properties / insurance_cost / description
      Previous value: -"Optional insurance cost in GBP for duty calculation"New value: +"Insurance cost in GBP for the duty calculation."
    • changedInput schema / properties / items / description
      Previous value: -"Array of shipment items with dimensions, weight, and optional HS/UN codes"New value: +"Shipment items with dimensions, weight and optional HS/UN codes."
    • changedInput schema / properties / items / items / properties / customs_value / description
      Previous value: -"Customs value per item in GBP"New value: +"Customs value per item in GBP — enables the duty section."
    • addedInput schema / properties / items / items / properties / description / description
      Added value: +"Optional item label."
    • changedInput schema / properties / items / items / properties / height / description
      Previous value: -"Height in cm"New value: +"Height in cm."
    • changedInput schema / properties / items / items / properties / hs_code / description
      Previous value: -"HS code for customs"New value: +"HS code — enables the duty section together with customs_value."
    • changedInput schema / properties / items / items / properties / length / description
      Previous value: -"Length in cm"New value: +"Length in cm."
    • changedInput schema / properties / items / items / properties / pallet_type / description
      Previous value: -"Pallet standard the item sits on, if any"New value: +"Pallet standard the item sits on, if any."
    • changedInput schema / properties / items / items / properties / quantity / description
      Previous value: -"Number of items"New value: +"Number of items."
    • changedInput schema / properties / items / items / properties / stackable / description
      Previous value: -"Whether this item can be stacked (affects pallet fitting calc)"New value: +"Whether this item can be stacked (affects pallet fitting)."
    • changedInput schema / properties / items / items / properties / un_number / description
      Previous value: -"UN number for dangerous goods"New value: +"UN number — enables the dangerous-goods section."
    • changedInput schema / properties / items / items / properties / weight / description
      Previous value: -"Gross weight per item in kg"New value: +"Gross weight per item in kg."
    • changedInput schema / properties / items / items / properties / width / description
      Previous value: -"Width in cm"New value: +"Width in cm."
    • changedInput schema / properties / mode / description
      Previous value: -"Transport mode"New value: +"Transport mode — selects the mode-specific section of the result."
    • changedInput schema / properties / origin / description
      Previous value: -"Origin location — ISO country code and optional UN/LOCODE"New value: +"Origin — ISO country code and optional UN/LOCODE."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "_source": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "checked": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "provenance_status": {
      +          "enum": [
      +            "verified",
      +            "pending-verification",
      +            "computed",
      +            "live"
      +          ],
      +          "type": "string"
      +        },
      +        "source_url": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "checked",
      +        "provenance_status"
      +      ],
      +      "type": "object"
      +    },
      +    "blocking_errors": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "recovery": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "action": {
      +                "type": "string"
      +              },
      +              "params": {
      +                "additionalProperties": {},
      +                "type": "object"
      +              },
      +              "tool": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "action"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message",
      +          "recovery"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "citation": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "qualifier": {
      +          "type": "string"
      +        },
      +        "text": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "text"
      +      ],
      +      "type": "object"
      +    },
      +    "confidence": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "basis": {
      +          "enum": [
      +            "deterministic",
      +            "provenance",
      +            "match_quality",
      +            "freshness"
      +          ],
      +          "type": "string"
      +        },
      +        "level": {
      +          "enum": [
      +            "high",
      +            "medium",
      +            "low"
      +          ],
      +          "type": "string"
      +        },
      +        "score": {
      +          "maximum": 1,
      +          "minimum": 0,
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "level",
      +        "basis"
      +      ],
      +      "type": "object"
      +    },
      +    "envelope_version": {
      +      "const": "1",
      +      "type": "string"
      +    },
      +    "normalized_input": {
      +      "additionalProperties": {},
      +      "type": "object"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "result": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": true,
      +          "properties": {
      +            "adr": {
      +              "anyOf": [
      +                {
      +                  "additionalProperties": {},
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "dataVersion": {
      +              "anyOf": [
      +                {
      +                  "additionalProperties": {},
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "disclaimer": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "duty": {
      +              "anyOf": [
      +                {
      +                  "additionalProperties": {},
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "itemCount": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "mode": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "modeSpecific": {
      +              "anyOf": [
      +                {
      +                  "additionalProperties": {},
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "totals": {
      +              "anyOf": [
      +                {
      +                  "additionalProperties": true,
      +                  "properties": {
      +                    "billingBasis": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "chargeableWeight": {
      +                      "type": [
      +                        "number",
      +                        "null"
      +                      ]
      +                    },
      +                    "grossWeight": {
      +                      "type": [
      +                        "number",
      +                        "null"
      +                      ]
      +                    },
      +                    "pieces": {
      +                      "type": [
      +                        "number",
      +                        "null"
      +                      ]
      +                    },
      +                    "volumeCBM": {
      +                      "type": [
      +                        "number",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "warnings": {
      +              "anyOf": [
      +                {
      +                  "items": {},
      +                  "type": "array"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": {},
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "validity": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "as_of": {
      +          "type": "string"
      +        },
      +        "effective_from": {
      +          "type": "string"
      +        },
      +        "effective_to": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "as_of"
      +      ],
      +      "type": "object"
      +    },
      +    "warnings": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "details": {
      +            "additionalProperties": {},
      +            "type": "object"
      +          },
      +          "message": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "envelope_version",
      +    "ok",
      +    "result",
      +    "confidence",
      +    "_source",
      +    "citation"
      +  ],
      +  "type": "object"
      +}
  10. Addedv2.1.1

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations it discloses several non-obvious behaviors: partial sections degrade to warnings rather than failing the call, unknown field names are refused with a tool error naming them and listing accepted ones, rate-limit errors carry reset_at in UTC, and the result uses camelCase legacy field names. These are exactly the operational details an agent needs and cannot infer from annotations.

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 composite value proposition, then unit semantics, then alternatives, then failure behavior — a sensible ordering. The middle is a dense semicolon-chained block that takes a second read, but no sentence is filler.

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 10-parameter nested-schema tool with an output schema, it covers the gaps that matter: unit bases, stackable default, ADR edition selection, degradation-to-warnings, strict field-name validation, and rate limiting. Nothing an agent needs to invoke it correctly appears to be 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 schema already documents every parameter and a 3 would be the baseline. The description still adds meaning: weight and customs_value are per item while adr_quantity is the total for the line, and an item with no stackable flag is treated as not stacked — the latter being a default not stated in the schema.

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?

"Composite shipment analysis in one call" states a specific verb and resource, then enumerates exactly what the call produces (CBM, gross/chargeable weight, mode-specific road LDM / air volumetric / sea revenue tonnes, dangerous-goods presence, UK duty). It explicitly contrasts itself with consignment_calculator and the single-figure calculators, so an agent can separate it from siblings without opening a 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 routes explicitly: use consignment_calculator for canonical snake_case lines[] totals with advisory flags, and cbm_calculator / chargeable_weight_calculator / ldm_calculator for single figures, with ldm_calculator, adr_lookup and uk_duty_calculator named as the underlying engines. It also gives the edition/as_of precedence rule and the default (ADR 2025 until 2027-01-01), plus a clear scope exclusion ("A planning summary, not a quotation or compliance determination").

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