Skip to main content
Glama

calculate_delivery

Calculates CDEK shipping cost and delivery time for a specific tariff using origin, destination, and package details.

Instructions

Рассчитать стоимость и сроки доставки по конкретному тарифу

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": {
      "tariff_code": "<tariff_code>",
      "from_location": "<from_location>",
      "to_location": "<to_location>",
      "packages": "<packages>"
    },
    "name": "calculate_delivery"
  }
}

Input Schema

NameRequiredDescriptionDefault
packagesYesСписок упаковок
tariff_codeYesКод тарифа СДЭК (например: 136 - посылка склад-склад, 137 - посылка склад-дверь)
to_locationYesАдрес получения
from_locationYesАдрес отправления

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It says the tool calculates cost and timing, but does not disclose whether the operation is read-only, what permissions are needed, error behavior for invalid tariff codes, or any rate limits.

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?

The definition is a single front-loaded sentence with no redundant wording. Every phrase contributes to purpose and scope.

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?

For a tool with four required parameters, nested objects, and no output schema, the description is minimally adequate: it names the outputs (cost and delivery time) but does not explain return format, currency, units, or error behavior. The rich schema compensates for parameter completeness, but behavioral context remains thin.

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 100%, so all four parameters and nested package fields are already documented in the schema. The description adds no parameter-specific semantics beyond implying that tariff_code selects the specific tariff.

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?

Description states a specific verb (Рассчитать), the exact outputs (стоимость и сроки доставки), and the scope (по конкретному тарифу). This clearly distinguishes it from the sibling that calculates across all tariffs.

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 by the phrase 'по конкретному тарифу', which suggests this tool is for when a tariff code is already known. However, the description does not explicitly state when to choose this over calculate_delivery_all_tariffs or any prerequisites for valid tariff codes.

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