Skip to main content
Glama

Checkout link

create_cart_link
Read-onlyIdempotent

Make a link that opens Toys Hub's checkout with these products already in the cart. Give it to the shopper; they confirm and pay on the store's site. Nothing is ordered or stored by this tool.

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_cart_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of names, descriptions and links: "sq" Albanian, "en" English.en
itemsYesThe products to put in the cart, each with its quantity.

Output Schema

NameRequiredDescriptionDefault
itemsYes
totalNo
skippedNo
currencyNo
checkoutUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / items / description
      Added value: +"The products to put in the cart, each with its quantity."
    • addedInput schema / properties / items / items / properties / quantity / description
      Added value: +"How many of this product, 1 to 20."
    • addedInput schema / properties / items / items / properties / slug / description
      Added value: +"Product slug (from search_products)."
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the bar is lower. The description still adds real value by stating that nothing is ordered or stored and that payment happens off-tool, which tells the agent the link is a handoff artifact rather than a transaction.

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?

Three short sentences, front-loaded with what the tool produces, then how it is used, then what it does not do. No filler.

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 an output schema and full annotation coverage, the description supplies the missing workflow context: cross-site handoff and absence of side effects. It does not mention link lifetime or validity, which is a minor gap.

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 coverage is 100% with per-field descriptions, enums, and bounds, so the baseline applies. The description only gestures at 'these products' and adds no meaning about items, quantity, or language beyond the schema.

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 concrete verb and resource -- make a link that opens Toys Hub's checkout with products pre-loaded in the cart -- which no sibling tool (all lookups) does.

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?

Explains the intended workflow clearly: hand the link to the shopper, who confirms and pays on the store's site. It gives no explicit exclusions or named alternatives, but the surrounding context makes when-to-use obvious.

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.