Skip to main content
Glama

tariff_quote

Read-onlyIdempotent

Calculates merchant shipping tariffs using packet weight, shipment type, origin and destination city IDs, and COD amount; set COD to zero for prepaid shipments.

Instructions

Get merchant tariff using weight, shipment type ID, city IDs and COD amount (zero if prepaid). Verify tariff weight unit with carrier.

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": {
      "packet_weight": "<packet_weight>",
      "shipment_type": "<shipment_type>",
      "origin_city": "<origin_city>",
      "destination_city": "<destination_city>",
      "cod_amount": "<cod_amount>"
    },
    "name": "tariff_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
cod_amountYes
origin_cityYes
packet_weightYes
shipment_typeYes
destination_cityYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, non-destructive, open-world), so the description's added value is the unit-mismatch warning about carrier tariff weight units, which is genuine operational context not present in structured fields. It does not describe response shape, currency, or failure behavior when a city or shipment-type ID is invalid, so it adds only modest context beyond 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?

Two short sentences, front-loaded with the primary purpose and followed by the caveat, with no filler. The COD-zero rule is embedded compactly in parentheses, which keeps the definition tight without losing the override case.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A five-parameter, all-required read-only tool with no parameter descriptions and no output schema, so the description carries heavy burden; it addresses the two trickiest points (COD zero default and weight-unit verification) but says nothing about where to obtain city or shipment-type IDs or what the quote result contains. Adequate to avoid misuse on the COD and unit fronts, incomplete for correct end-to-end invocation.

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 0% — every parameter carries only a bare title — so the description must compensate, and it partially does by mapping each input to its role and clarifying that cod_amount should be zero for prepaid shipments, a rule absent from the schema's minimum:0. It still omits critical meaning: the weight unit, valid ranges or sourcing for shipment_type and city IDs, and whether city IDs are carrier-specific.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Get merchant tariff") and enumerates the inputs that drive the quote: weight, shipment type ID, city IDs and COD amount. An agent can tell this is a pricing lookup. It does not, however, distinguish itself from the sibling shipping_charges, which sounds like an adjacent pricing tool, leaving ambiguity about which to call.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no alternative named; the only directive is "Verify tariff weight unit with carrier," which is an operational caution rather than routing. The agent must infer that required ID parameters come from list_cities or similar siblings on its own.

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