Skip to main content
Glama

Estimate US landed cost

landed_cost
Read-onlyIdempotent

Estimate US landed cost for a part in the Maglev catalog. Needs its catalog id: find it with search_parts first; parts outside the catalog cannot be priced here. Returns goods value + duty stack for the origin (MFN, Section 301, other programs, each with a source) + merchandise processing fee + freight. An estimate, not customs advice.

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": {
      "id": "<id>"
    },
    "name": "landed_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
qtyNo
originNoISO-2 country it ships from; defaults to the part's origin
unit_usdNoUnit price to use when the part has no listed price
freight_usdNo

Output Schema

NameRequiredDescriptionDefault
htsNo
qtyNo
partNo
as_ofNo
errorNoSet when the tool could not answer; the other fields are then absent.
staleNo
originNo
methodsNo
mpf_usdNo
duty_usdNo
unit_usdNo
total_usdNo
disclaimerNo
duty_linesNo
duty_statusNo
freight_usdNo
origin_nameNo
origin_noteNo
origin_basisNo
per_unit_usdNo
stale_reasonsNo
total_assumesNo
duty_pct_totalNo
hts_is_typicalNo
total_excludesNo
goods_value_usdNo
duty_unknown_reasonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / freight_usd / maximum
      Added value: +100000000
    • addedInput schema / properties / freight_usd / minimum
      Added value: +0
    • addedInput schema / properties / id / maxLength
      Added value: +120
    • addedInput schema / properties / origin / maxLength
      Added value: +120
    • addedInput schema / properties / qty / maximum
      Added value: +1000000
    • addedInput schema / properties / unit_usd / maximum
      Added value: +100000000
    • addedInput schema / properties / unit_usd / minimum
      Added value: +0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "as_of": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "disclaimer": {
      +      "type": "string"
      +    },
      +    "duty_lines": {
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "duty_pct_total": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "duty_status": {
      +      "enum": [
      +        "unknown",
      +        "estimated"
      +      ],
      +      "type": "string"
      +    },
      +    "duty_unknown_reason": {
      +      "type": "string"
      +    },
      +    "duty_usd": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "error": {
      +      "description": "Set when the tool could not answer; the other fields are then absent.",
      +      "type": "string"
      +    },
      +    "freight_usd": {
      +      "type": "number"
      +    },
      +    "goods_value_usd": {
      +      "type": "number"
      +    },
      +    "hts": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "hts_is_typical": {
      +      "type": "boolean"
      +    },
      +    "methods": {
      +      "type": "string"
      +    },
      +    "mpf_usd": {
      +      "type": "number"
      +    },
      +    "origin": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "origin_basis": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "origin_name": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "origin_note": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "part": {
      +      "type": "string"
      +    },
      +    "per_unit_usd": {
      +      "type": "number"
      +    },
      +    "qty": {
      +      "type": "integer"
      +    },
      +    "stale": {
      +      "type": "boolean"
      +    },
      +    "stale_reasons": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "total_assumes": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "total_excludes": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "total_usd": {
      +      "type": "number"
      +    },
      +    "unit_usd": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds real behavioral context beyond that: what the figure is composed of (goods value, duty stack with per-program sources, MPF, freight) and the caveat that it is an estimate rather than customs advice. No mention of latency, caching, or estimate volatility, which keeps it short of a 5.

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?

Three dense sentences, front-loaded with the purpose, then the prerequisite, then what comes back, then the caveat. No filler and no restatement of the title.

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?

An output schema exists, so the return-value enumeration is bonus rather than required; the definition nonetheless covers purpose, prerequisite, scope limit, and a legal caveat. The gaps are the undocumented optional parameters (unit_usd, qty, freight_usd) which leave an agent guessing at defaults for non-trivial pricing inputs.

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 coverage is only 40%, so the description must compensate and it only partially does: it explains where 'id' comes from and implies 'origin' via the duty-stack-per-origin phrasing. The fallback behavior of 'unit_usd' ('when the part has no listed price') and any qty/freight semantics are not addressed in the description at all.

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?

Specific verb plus resource plus qualifier: 'Estimate US landed cost for a part in the Maglev catalog.' It is clearly distinct from siblings like search_parts or get_quotes, and the scope ('parts outside the catalog cannot be priced here') sharpens the boundary further.

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 the prerequisite ('Needs its catalog id: find it with search_parts first') and an explicit exclusion (off-catalog parts cannot be priced). This tells the agent both when to use it and how to unblock itself when the prerequisite is unmet.

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