Skip to main content
Glama

Buy again

reorder

Use this when a signed in customer wants to buy again from an earlier teas.co.uk order. order_number comes from my_orders (only orders on the linked account are found); only_ids limits it to those product ids from that order, otherwise every product is added in its original quantity. Adds them to the customer's basket at today's prices, on top of anything already there; products that cannot be added now (no longer sold, out of stock, or over the 20 kg parcel limit) are listed in messages and skipped, and if nothing from the order (or from only_ids) can be found it returns an error. Calling it again adds them again. Nothing is bought or charged until the customer pays on teas.co.uk. To see earlier orders first use my_orders.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
only_idsNoOptional: only these product ids from that order.
order_numberYesThe earlier order number.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
addedNo
itemsYesNumber of items in the basket.
linesYes
deliveryYes
messagesYesAnything that could not be added or changed, in plain words.
subtotalNoPounds including VAT, before delivery.
basket_idNoPresent only when the host did not identify the user: pass it to later basket tools.
from_orderNo
subtotal_textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Adds substantial context beyond annotations: non-idempotent re-add behavior (calling again adds again), partial failure handling (skipped items listed in messages), 20 kg parcel limit, error when nothing is found, and no charge until checkout. Annotations already declare idempotentHint=false and destructiveHint=false, so this adds rich extra detail without contradicting them.

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?

Front-loaded with the primary use case, then constraints and edge cases. Dense but each sentence carries actionable information. Slightly long, but appropriate for a tool with non-obvious side effects and partial-failure semantics.

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?

Covers prerequisites, scoping, quantity behavior, pricing, accumulation onto existing basket, partial failure, error condition, repeat-call behavior, and the fact that nothing is charged. An output schema exists, so return payload detail is not needed. Complete for the complexity level.

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 baseline is 3, but the description adds real semantics: only_ids is scoped to 'from that order' and otherwise every product is added in original quantity, and order_number must originate from my_orders. This clarifies intent beyond the schema's terse parameter docs.

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 (buy again) and resource (an earlier teas.co.uk order), and distinguishes itself from sibling add_to_basket by being order-driven rather than product-driven. An agent can route correctly without opening schemas.

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?

Explicitly says when to use (signed-in customer reordering a past order) and points to my_orders as the prerequisite for discovering order_number. It also clearly states when not to rely on it (no charge until payment on teas.co.uk).

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