Skip to main content
Glama

SIPATCH

Посчитать посылку

quote_cart
Read-onlyIdempotent

Расчёт посылки тем же правилом, что при оформлении на сайте: цены из базы, комплекты (патч с пуговицами и бирками вместе дешевле, чем по отдельности), одна лучшая скидка (ступени за количество, распродажа, промокод), доставка Почтой России (бесплатно от суммы товаров), подарки, сколько добавить до бесплатной доставки или следующей ступени, предложения «добавить к посылке». Свой патч - макетом (design, см. custom_patch_options). Суммы - в копейках и текстом. Удобно, чтобы собрать посылку выгоднее: например добавить товар до бесплатной доставки.

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": {
      "items": "<items>"
    },
    "name": "quote_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesТовары: [{"slug": "si1289", "qty": 2}] - адрес и количество (1-99).
customNoСвои патчи: [{"design": {...макет...}, "qty": 1}].
promo_codeNoПромокод, если есть.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, and the description is consistent with a pure computation. It adds genuinely useful behavior beyond the annotations: pricing comes from the database, only one best discount is applied rather than stacking, bundle rules are defined, and all sums are returned in kopecks plus text. It does not spell out the exact response fields, but the computation model is disclosed.

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 pricing scope is front-loaded and every clause adds information (bundles, single discount, delivery, gifts, upsell, kopecks, custom design). It is a single dense run-on paragraph, though, so the discount, delivery and upsell facets would scan faster as discrete items.

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?

There is no output schema, so the description carries the return-value burden, and it does list the components (totals in kopecks and text, gifts, amount to free delivery or next tier, add-on suggestions). It still leaves the exact response field names implicit, which matters for an agent parsing the quote.

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 would be 3; the description earns a bump by explaining that a custom patch is supplied as a 'design' object and pointing to custom_patch_options for that object's shape, which the schema leaves as an untyped object. Quantity semantics and promo_code are left to the schema, which already documents them.

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?

Names a specific operation and resource ('Расчёт посылки') and enumerates exactly what is computed: DB prices, bundle pricing (патч с пуговицами и бирками), one best discount (ступени за количество, распродажа, промокод), Почта России delivery with free threshold, gifts and upsell suggestions. It also points to the sibling that governs the custom-design input ('см. custom_patch_options'), so an agent can tell it apart from a plain order-creation or catalog tool.

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

Usage Guidelines4/5

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

Gives a concrete use case ('удобно, чтобы собрать посылку выгоднее: например добавить товар до бесплатной доставки'), which tells the agent when this tool earns its keep. It does not state exclusions or explicitly contrast with custom_patch_quote or create_order, so it stops short of full alternative routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources