Skip to main content
Glama

Delivery fee for cart

zoodex_cart_shipping
Read-only

Calculate delivery fees for a cart shipped to a saved address, defaulting to the selected address, with prices returned in toman.

Instructions

Calculate delivery fees for the cart to a saved address (defaults to the selected address). Prices are in toman (the API uses rials; 1 toman = 10 rials).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "zoodex_cart_shipping"
  }
}

Input Schema

NameRequiredDescriptionDefault
address_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the description does not need to re-establish safety. It adds real context beyond them: the returned prices are in toman while the underlying API uses rials (1 toman = 10 rials), which is essential for correctly interpreting the result given there is no output schema. It does not cover failure modes or whether the fee is per-vendor, so it is not 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?

Two compact sentences, front-loaded with the action, then the default-argument behavior, then the unit caveat. Every clause carries information an agent needs and there is no filler.

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 one-optional-parameter, read-only calculation with no output schema, the definition covers what it computes, the fallback address behavior, and the currency of the result. Minor gaps remain around empty-cart behavior and whether fees vary per vendor, but nothing critical to invoking it correctly is missing.

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 0% and the single property is a bare integer with no description, so the description must compensate. It does partly: it explains that address_id refers to a saved address and that omitting it falls back to the selected address. It still says nothing about where address IDs come from (e.g., zoodex_list_addresses) or what happens with an invalid ID.

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?

The description states a specific verb and resource ('Calculate delivery fees for the cart') plus the target ('a saved address'), which is enough to separate it from sibling cart tools like zoodex_cart_view or zoodex_checkout_options. It stops short of naming a sibling explicitly to differentiate, so it lands at 4 rather than 5.

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 parenthetical '(defaults to the selected address)' tells the agent the tool is callable without an argument and implies the common case, which is useful usage context. However, there is no explicit statement of when to prefer this over alternatives such as zoodex_checkout_options, nor any preconditions (e.g., cart must be non-empty).

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