Skip to main content
Glama

preview_basket

Calculate live Blyzenko basket totals and bonuses before checkout. Preview item costs and bonus write-offs without placing or modifying an order.

Instructions

Calculate live Blyzenko basket total and bonuses via POST /orders/calculate (read-only preview).

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": "preview_basket"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
store_idNo
delivery_actionNoself
bonuses_to_write_offNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations present, the description does carry the most important behavioral fact: that this is a read-only calculation with no side effects. It does not disclose whether bonuses_to_write_off reserves or locks bonus points, whether authentication or a set store is required (see set_store), or how the POST body is scoped — gaps that matter for a no-annotation tool.

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?

A single front-loaded sentence with the verb, resource, endpoint and safety mode, and no filler. Nothing could be cut without losing information.

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?

An output schema exists, so return values need no explanation, which keeps the description's burden lower. However, for a four-parameter calculation tool with zero schema coverage and no annotations, the missing meaning for store_id and delivery_action leaves an agent guessing at correct invocation.

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

Parameters2/5

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

Schema description coverage is 0% across four parameters, so the description must compensate and largely doesn't. 'Items' and 'bonuses' map loosely to the items and bonuses_to_write_off fields, but store_id and delivery_action (default 'self', with no enum) are left completely unexplained in both schema and description.

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 gives a specific verb and resource ('Calculate ... basket total and bonuses') and names the backing endpoint, so the agent knows exactly what computation happens. The parenthetical 'read-only preview' implicitly separates it from the mutating order siblings like submit_pickup_order, though no sibling is named outright.

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?

'(read-only preview)' implies it is meant to be called before committing an order, but the description never states when to use it, when not to, or what the alternative is. Usage is inferable from the word 'preview' rather than spelled out.

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