Skip to main content
Glama

Cambridge China Bridge — China sourcing

Compare sea against air on total cost

compare_sea_and_air
Read-only

Compare air and sea freight on total landed cost rather than on the freight quote: includes duty charged on the freight itself, the cost of capital tied up in transit, and profit lost while stock is unavailable. Also returns the weekly lost profit at which the two routes cost the same.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
air_daysNoDoor-to-door air transit days. Defaults to 8.
sea_daysNoDoor-to-door sea transit days. Defaults to 38.
sea_quoteYesTotal sea freight quote, in GBP.
weight_kgYesGross weight of the shipment in kg.
volume_cbmYesVolume of the shipment in cubic metres.
goods_valueYesValue of the goods in GBP.
air_rate_per_kgYesAir freight rate quoted per chargeable kg, in GBP.
duty_rate_percentNoCustoms duty rate on the goods, as a percentage.
capital_rate_percentNoAnnual cost of money tied up in stock, as a percentage. Defaults to 8.
lost_profit_per_weekNoGross profit lost per week the stock cannot be sold, in GBP.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already indicate readOnlyHint=true and destructiveHint=false. The description adds useful context by listing the specific cost components included (duty on freight, capital cost in transit, lost profit) and disclosing the extra output: the weekly lost profit at which the routes cost the same. This goes beyond what annotations provide.

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?

Two sentences with no filler. The main purpose is front-loaded, the key distinction from a freight-quote comparison is stated, and the additional breakeven output is clearly presented in the second sentence.

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?

For a tool with 10 parameters but no output schema, the description explains the core computation and the notable additional return value. It does not detail the full output format, but it gives enough context for an agent to understand what the tool produces and what inputs are conceptually involved.

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 does add conceptual meaning by connecting duty, capital cost, and lost profit to the calculation, but it does not materially improve parameter-level understanding beyond the schema descriptions.

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 uses a specific verb and resource pair: 'Compare air and sea freight on total landed cost.' It clearly distinguishes this from a single-mode estimator like estimate_landed_cost by emphasizing the comparative nature and the 'rather than on the freight quote' framing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description conveys the intended use case—comparing two freight modes on total landed cost—and implicitly rules out using it for a single-mode estimate. However, it does not explicitly name alternatives such as estimate_landed_cost or state when not to use this tool, leaving some selection inference to the agent.

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