Skip to main content
Glama

Prepare a Boutique basket

create_basket

Build a Boutique basket for the person and get the checkout link. Pass the products from search_products (id or slug) with quantities, and subscribe: true for subscribe-and-save where the person wants it. Returns a summary to read back to the person, each line at the price checkout charges, anything that could not be added and why, the delivery options, checkout_url and cart_link (the same basket as a short link, priced again when opened). Give the person checkout_url or cart_link: they enter a UK delivery address and pay on Stripe themselves. Nothing is charged or stored by this tool; never pass or ask for card details.

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

Input Schema

NameRequiredDescriptionDefault
itemsYesUp to 20 lines.

Output Schema

NameRequiredDescriptionDefault
resultNo
statusYes
approvalIdNo
releaseUrlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "approvalId": {
      +      "type": "string"
      +    },
      +    "releaseUrl": {
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    "result": {
      +      "properties": {
      +        "checkout_url": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "items": {
      +          "items": {
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "not_added": {
      +          "items": {
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "safety": {
      +          "type": "string"
      +        },
      +        "status": {
      +          "enum": [
      +            "ready",
      +            "partial",
      +            "empty"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "status",
      +        "items",
      +        "not_added",
      +        "safety"
      +      ],
      +      "type": "object"
      +    },
      +    "status": {
      +      "enum": [
      +        "ok",
      +        "awaiting_approval",
      +        "refused"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), the description discloses the important behaviors: nothing is charged, the person pays on Stripe with their own UK delivery address, partial failures are reported with reasons, and cart_link re-prices when opened. It also sets a hard safety boundary — "never pass or ask for card details" — which annotations cannot express. The phrase "nothing is charged or stored" sits slightly awkwardly against a persistent basket/link, but the intent (no payment data held) is clear.

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?

It is front-loaded with the purpose, then behavior, then the handoff instruction, with almost no filler. There is mild repetition between the returned artifacts ("checkout_url and cart_link") and the later "Give the person checkout_url or cart_link," but the second instance carries the actionable instruction, so it earns its place.

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?

For a single-parameter nested write tool with an output schema, the definition covers the risky edges: consent for recurring charges, external payment, partial-add failures, and no card handling. What it leaves unstated is the lifecycle of the basket/link (expiry, whether retries create duplicate baskets given idempotentHint=false), which matters for an agent recovering from errors.

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 is 3, but the description adds real meaning: product identifiers must come from search_products, quantities are tied to the person's request, and subscribe must reflect explicit consent. It doesn't restate the 1–10 quantity range or the 20-line cap, relying on the schema for those limits, which is appropriate.

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?

The description opens with a specific verb and artifact: "Build a Boutique basket for the person and get the checkout link." It also ties itself to the sibling tool that feeds it ("Pass the products from search_products (id or slug)"), so an agent can distinguish it from search_products and the booking/get_* tools without opening a schema.

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?

It states the context of use clearly: build a basket for a particular person, take products from search_products, and only set subscribe when "the person wants it." It also tells the agent what to do with the result ("Give the person checkout_url or cart_link"). What's missing is any explicit exclusion, e.g. that this is a purchase flow and not appropriate for bookings or price comparison.

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