Skip to main content
Glama

compare_courier_rates

Read-onlyIdempotent

Compare tariff, SLA, and COD fees across major Bangladeshi couriers, then recommend a delivery option based on weight, destination, COD amount, and priority.

Instructions

Execute side-by-side tariff, structured SLA ({min, max}), and COD collection fee comparisons across all four major Bangladeshi couriers (Steadfast, Pathao, RedX, Paperfly) for any destination nationwide using the unified tariff table (meta.source='static_tariff'). Evaluates exact parcel weight, declared COD amount, and optimization priority ('cheapest', 'fastest', 'balanced') to select the recommended courier. READ-ONLY CALCULATION ENGINE.

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": {
      "recipient_address": "<recipient_address>"
    },
    "name": "compare_courier_rates"
  }
}

Input Schema

NameRequiredDescriptionDefault
priorityNoOptimization priority (default: balanced)
weight_kgNoParcel weight in KG (default: 0.5)
cod_amountNoCash On Delivery amount in BDT (default: 0)
recipient_addressYesDestination delivery address anywhere in Bangladesh

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.4.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds real value beyond that by disclosing the data source (meta.source='static_tariff'), which warns the agent these are static tariffs rather than live quotes, and by stating the output shape at a high level. The closing 'READ-ONLY CALCULATION ENGINE' is redundant with the annotation, and there is no note on staleness or coverage limits of the static table.

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?

The comparison scope is front-loaded in the first sentence, and the recommendation behavior follows. The first sentence is dense with stacked parentheticals (courier list, SLA shape, source key) that take effort to parse, and the trailing read-only sentence restates an existing annotation, but overall there is little waste.

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?

With no output schema and four fully documented parameters, the description carries most of the burden and does name the comparison fields and the recommendation output. It remains silent on whether per-courier breakdowns are returned alongside the recommendation and on how stale the static tariff table may be, which is a meaningful omission for a rate tool.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds the interaction semantics the schema does not: exact weight, declared COD amount, and priority are combined to select a recommended courier, and priority values map to a ranking outcome. It does not clarify units/rounding for weight or how ties are broken, so it stops short of full compensation.

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 names a specific verb (compare), resource (courier rates), and scope (all four named Bangladeshi couriers, nationwide), plus the exact dimensions compared: tariff, SLA {min,max}, and COD fee. An agent can distinguish this from siblings like calculate_delivery_zone_and_fee or list_couriers without opening any schema.

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?

Usage is implied rather than stated: it is clearly a pre-booking comparison across all carriers driven by weight, COD amount, and a priority setting. However, it never says when to prefer this over calculate_delivery_zone_and_fee or list_couriers, and gives no exclusions or prerequisites. Adequate but leaves routing to inference.

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