Skip to main content
Glama

Build my basket

build_basket

Creates a new anonymous IMPOSSIBREW Shopify cart for a one-time or subscription purchase (frequency) and returns its checkout link (Shop Pay or card on impossibrew.co.uk). The cart is not linked to any customer account. Suits any request to buy, order, try or subscribe. Subscriptions are cancel-any-time and, exactly like the website, earn welcome gifts by box count: 2 boxes 1 free glass, 3 boxes 2 glasses, 4 boxes 2 glasses plus a T-shirt. A T-shirt size (S-4XL) is needed only when the result says need_shirt_size. Prices, discounts and gifts are Shopify's exact live readback. A one-time result also shows the same beers on subscription, with the saving and gifts. It does not place an order or take payment: the customer completes checkout on impossibrew.co.uk.

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

Input Schema

NameRequiredDescriptionDefault
itemsYes
frequencyNo
shirtSizeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations it discloses a lot: the cart is anonymous and not linked to any account, no order is placed and no payment is taken, checkout happens on impossibrew.co.uk, prices and gifts are live Shopify readback, and subscriptions are cancel-any-time. The gift-by-box-count table and the note that a one-time result also shows the subscription alternative describe return content that annotations cannot convey. All of this is consistent with readOnlyHint=false and idempotentHint=false.

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 core action and its return value are front-loaded in the first sentence, and the gift thresholds and need_shirt_size rule are useful operational detail rather than filler. It is on the long side and the pricing/readback sentence is slightly redundant with the checkout-link sentence, but nothing is seriously wasteful.

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?

With no output schema, the description does the work of explaining the return value: a checkout link, a possible need_shirt_size signal, and a subscription comparison for one-time results. That covers the tool's complexity well; the remaining gap is that the nested items structure is only partially explained.

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 0%, so the description carries the burden. It adds real meaning for frequency (one-time vs subscription) and shirtSize (only when need_shirt_size is signalled), but it says nothing about packCans, the productId enum values, or the 1-6 quantity limit per item, which the agent must discover from the schema alone.

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?

States a specific verb and resource: creates an anonymous IMPOSSIBREW Shopify cart for a one-time or subscription purchase and returns a checkout link. It is clear what the tool produces, but it never explicitly distinguishes itself from siblings like build_box, build_shop_link or add_to_subscription, which an agent could plausibly reach for instead.

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?

"Suits any request to buy, order, try or subscribe" gives clear positive routing guidance, and the conditional rule that shirtSize is needed only when the result says need_shirt_size tells the agent how to handle a follow-up turn. What is missing is any exclusion or named alternative, so the boundary against build_box and add_to_subscription is left implicit.

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