Skip to main content
Glama

door_to_door

Calculates total door-to-door cost and transit time for import moves, including inland drayage, chassis fees, and gate congestion, with rail-vs-truck optimization for interior destinations.

Instructions

Get the TRUE DOOR-TO-DOOR cost and time of an import move, not the port-to-port figure importers usually quote. The ocean tools price PORT-TO-PORT; this layers the INLAND legs at BOTH ends onto the all-in ocean move: origin drayage (the short truck move factory/CY → load port), destination drayage (discharge port → DC), the US CHASSIS rental (a separate daily charge + a chassis-split fee that exists in the US but is bundled elsewhere), terminal GATE-congestion fees and turn-time days, and — when the cargo's real destination is INLAND — the interior haul with a RAIL-vs-TRUCK decision (US IPI intermodal to Chicago/Dallas/Memphis; the Rotterdam/Antwerp barge-rail hinterland to Duisburg/Basel/Milan), choosing the cheaper mode by distance (deadline-aware). Inland routinely adds 15-40% over the port-to-port cost and several days — both of which this returns folded into a door-to-door total and a door p50/p90 transit. Every inland figure is a modeled market-typical band (regla 7), not a trucker quote. PREMIUM: x402 (USDC on Base) or a prepaid key. Same UN/LOCODE port normalization as get_spot_rate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
origin_portYesOrigin (load) port — city, UN/LOCODE, or 'City, Country'.
dest_portYesDestination (discharge) port — city, UN/LOCODE, or 'City, Country'.
container_typeNoContainer size '20ft'/'40ft'/'40HC'. Optional; defaults to '40ft'.
ship_dateNoIntended ship date (ISO). Drives ocean seasonality & transit. Optional; defaults to today.
bandNoInland cost band: 'low', 'typical' (default) or 'high'.
inland_destinationNoOptional inland point the cargo really goes to (e.g. 'Chicago', 'Dallas', 'Duisburg', 'Milan', 'Basel') → adds the interior rail-vs-truck haul from the discharge port.
interior_modeNoForce the interior haul mode: 'rail' or 'truck'. Optional; default = cheaper of the two (deadline-aware).
urgentNoHard deadline → biases the interior haul to truck for door-speed. Optional.
Behavior4/5

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

With no annotations, the description carries full burden. It discloses that inland figures are modeled market-typical bands (regla 7), not trucker quotes, and mentions PREMIUM costing (x402 on Base or prepaid key). It also notes UN/LOCODE normalization. However, it does not explain error handling, data freshness, or default behaviors for optional parameters beyond the schema.

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 dense but every sentence adds value. It front-loads the core purpose and then systematically details components and special cases. There is no wasted text; the length is justified by the complexity.

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?

Given 8 parameters, no output schema, and no annotations, the description covers the tool's behavior well, including output (door-to-door total, p50/p90 transit). It also notes that inland adds 15-40%. However, it does not specify the exact output format (e.g., JSON structure) or handling of missing optional parameters, leaving minor gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and the description adds substantial meaning beyond the schema: it explains the role of each parameter in the door-to-door calculation (e.g., inland_destination triggers interior haul with rail-vs-truck decision, urgent biases to truck). It provides examples and clarifies defaults (e.g., inland cost band default 'typical', interior mode default cheaper of the two).

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 it returns the true door-to-door cost and time, distinguishing it from port-to-port tools. It explicitly contrasts with sibling tools like get_spot_rate, and details the components covered (inland legs, chassis, gate fees). This meets the highest standard of specificity and differentiation.

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?

The description explicitly tells when to use this tool versus alternatives: 'The ocean tools price PORT-TO-PORT; this layers the INLAND legs.' It also mentions PREMIUM pricing and that inland figures are modeled bands, guiding agents on appropriate context. No exclusions are needed.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Baneado98/freight-pulse'

If you have feedback or need assistance with the MCP directory API, please join our Discord server