Skip to main content
Glama

calculate_the_shipping_cost_of_an_order

Read-only

Calculate shipping costs for an order from line items and destination address to estimate delivery charges before checkout or fulfillment.

Instructions

Calculate the shipping cost of an order

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": {
      "shop_id": "<shop_id>"
    },
    "name": "calculate_the_shipping_cost_of_an_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo
shop_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

D1.8/5.0
Behavior2/5

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

Annotations already state readOnlyHint=true and destructiveHint=false, so safety is covered. Beyond that the description says nothing: whether this is a pure quote or writes anything to the order, whether shipping rates must first be fetched, or what the returned cost looks like is unstated. With annotations carrying the safety profile, only minimal credit is earned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with no wasted words, but that brevity reflects under-specification rather than economy. There is no structure, no front-loaded scope, and no useful content to be concise about.

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

Completeness1/5

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

Given a nested anyOf line_items schema, an address object, no output schema, and no annotations explaining return values, the description should explain required inputs and the shape of the result (a cost, a currency, a rate list). It supplies none of this and is wholly inadequate for the tool's complexity.

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

Parameters1/5

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

Schema description coverage is 0% across a required shop_id and a deeply nested body containing address_to and three alternative line_items shapes. The description mentions no parameter at all — not shop_id, not the address fields, not which line-item variant to choose — so it fully fails to compensate for the coverage gap.

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

Purpose2/5

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

The text "Calculate the shipping cost of an order" is a near-verbatim restatement of the tool name and adds no scope, units, or distinction from sibling shipping-info tools. It does imply a read-only computation rather than a mutation, but nothing beyond the name.

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 guidance on when to call this versus the numerous sibling shipping tools (retrieve_shipping_information, retrieve_available_shipping_list_information, the economy/express/priority shipping method tools), nor any prerequisite or exclusion. The agent must infer usage entirely from the name.

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