Skip to main content
Glama

Price a basket

quote_cart
Read-onlyIdempotent

Use this to price products for the person before anything goes in a basket. Pass up to 20 items (id from find_products and quantity) and the delivery country. It returns live prices including VAT, every delivery option teas.co.uk offers for that country and parcel, the total with the cheapest option, how much more to spend for free UK delivery, stock, and a basket link the person can open. Nothing is stored and no basket changes. For a basket the person keeps, call add_to_basket; to hand over checkout, call checkout_link.

Input Schema

NameRequiredDescriptionDefault
itemsYesProducts and quantities to price, 1 to 20 lines. The same id twice is added together.
countryNoDelivery country as a two letter code, for example GB, IE or FR. Leave out for the UK.

Output Schema

NameRequiredDescriptionDefault
noteYes
linesYes
totalNoSubtotal plus the cheapest delivery option.
countryYesThe two letter delivery country priced.
deliversYesFalse when teas.co.uk does not deliver to that country.
subtotalYes
not_foundYesIds that matched no product on sale.
total_textNo
basket_linkNoA link for the person: it opens a confirmation page and adds these items only when they press Add to basket.
subtotal_textYes
delivery_optionsYes
spend_more_for_freeNoHow much more to spend for free UK delivery, when it applies.
free_delivery_over_textNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, so the bar is lower; the description still adds real context (live prices incl. VAT, delivery options per country/parcel, free-delivery gap, basket link) and explicitly states nothing is stored. The 'no basket changes' line partially restates the annotations, but the read-behavior specifics go beyond them.

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?

Front-loads the purpose and the pre-basket constraint, then packs return contents and sibling routing into two further sentences with no filler. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only pricing tool with full schema coverage and an output schema, the description supplies the routing guidance, the side-effect profile, and the shape of the result. Nothing an agent needs to select or call 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 description coverage is 100%, so the schema already documents id, quantity, and country semantics. The description only restates the item shape and the 20-item cap, adding no format or edge-case detail beyond structured data; baseline 3 applies.

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?

States a specific verb and resource ('price products') plus the scope ('before anything goes in a basket'), and explicitly distinguishes itself from add_to_basket and checkout_link. An agent can identify the right tool without opening the schema.

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

Usage Guidelines5/5

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

Gives an explicit when ('price for the person before anything goes in a basket'), names the two alternative siblings, and states the condition that selects each ('for a basket the person keeps' vs 'to hand over checkout'). Nothing is left to inference.

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