Skip to main content
Glama

Compare Freight Modes

compare_modes
Read-only

THE ONE CALL for "what's the cheapest/best way to ship this?". Prices ALL FOUR freight modes (LTL / full truckload / cargo van / 26' box truck) in ONE keyless call to Warp's all-modes engine and returns a decision-complete recommendation: the winning mode, its rate, transit, a bookable quote_id, the trade-off math against the runner-up, and every mode that couldn't price (with the reason). Prefer this over calling the individual quote tools and comparing them yourself — one round trip, and modes Warp can't serve are returned as explicitly unavailable WITH the reason rather than being dropped, so there is never a silently shortened list to guess from. Dims are optional (a standard 48x40x48 pallet is assumed). Set benchmark_market:true to also rank Warp's rate against the live 30+ carrier market for the lane (adds ~15-25s) — that makes the answer decision-complete: the right mode AND whether the price is actually good. Quote-only: it never books. To book, pass the recommended quote_id to book after the user confirms.

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": {
      "origin_zip": "<origin_zip>",
      "destination_zip": "<destination_zip>",
      "pickup_date": "<pickup_date>",
      "pallets": "<pallets>",
      "weight_lbs_per_pallet": "<weight_lbs_per_pallet>"
    },
    "name": "compare_modes"
  }
}

Input Schema

NameRequiredDescriptionDefault
hazmatNoHazardous materials flag
palletsYesNumber of pallets (1-26)
priorityNoWhat to optimize the recommendation for. Defaults to 'cheapest'.
width_inNoPallet width in inches (defaults to 40)
commodityNoCommodity description
height_inNoPallet height in inches (defaults to 48)
length_inNoPallet length in inches (defaults to 48)
stackableNoWhether pallets are stackable
origin_zipYes5-digit US ZIP code
pickup_dateYesPickup date YYYY-MM-DD
freight_classNoFreight class (optional, FAK rates used if omitted)
destination_zipYes5-digit US ZIP code
pickup_servicesNoPickup accessorials: pickup-appointment, liftgate-pickup, residential-pickup, limited-access-pickup, inside-pickup, driver-assist-pickup
benchmark_marketNoAlso benchmark Warp's rate against the live 30+ carrier LTL market for this lane. Makes the answer decision-complete (is this rate actually good?) but costs ~15-25s — the mode comparison alone returns in ~1-2s. Defaults to false.
delivery_servicesNoDelivery accessorials: delivery-appointment, liftgate-delivery, residential-delivery, limited-access-delivery, inside-delivery, driver-assist-delivery
weight_lbs_per_palletYesWeight per pallet in lbs

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, and the description confirms the safety profile ('Quote-only: it never books'), so that portion is redundant. It does add genuinely non-structured behavior: keyless auth, ~1-2s baseline latency vs ~15-25s with benchmarking, and the failure semantics that unservable modes are returned explicitly with a reason rather than dropped. That is real added value, though the return-shape detail bleeds into a domain the description handles elsewhere.

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 claim and the routing advice are front-loaded in the first two sentences, and the booking handoff is correctly placed last. It is somewhat over-written — capitalized emphasis ('THE ONE CALL', 'ALL FOUR') and restated 'decision-complete' phrasing pad an otherwise tight paragraph.

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?

With 16 parameters and no output schema, the description carries the return-value burden and does so fully: winning mode, rate, transit, bookable quote_id, runner-up trade-off math, and explicitly-listed unpriceable modes with reasons. Latency trade-offs and the booking boundary are also stated, leaving nothing an agent needs in order to call it correctly.

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% and the schema already documents the dimension defaults (40/48/48), the benchmark_market latency cost and default, and the accessorial enums. The description adds only framing — the assumed standard pallet and the cheapest-vs-best priority intent — which is a modest supplement rather than meaning the schema lacks. Baseline 3 is appropriate.

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 — prices all four freight modes (LTL, FTL, cargo van, 26' box truck) in one call — and immediately contrasts that with the sibling quote tools it replaces. An agent can tell what it returns (winning mode, rate, transit, quote_id, trade-off math) without opening the 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 explicitly names the alternative ('the individual quote tools') and the condition that selects this one ('one round trip'), plus a conditional usage rule for benchmark_market and a handoff rule ('pass the recommended quote_id to `book` after the user confirms'). When-to-use, when-to-pay-extra, and what-not-to-do are all covered.

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.