Skip to main content
Glama
mcp-store-tools

mcp-store-tools

build_cart_link

Read-only

Generates a checkout-ready cart link for chosen variants after confirming they are published and in stock, without ordering or saving; returns line prices and subtotal.

Instructions

Make a checkout-ready cart link for chosen variants (handle and variant id from get_product) after checking each is published and in stock. Nothing is ordered or saved: the shopper opens the link and decides. Returns the link, line prices, and subtotal before discounts, shipping, and taxes.

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

Input Schema

NameRequiredDescriptionDefault
itemsYes
countryNoISO country code (GB, DE) for that market's prices and availability

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.1

TDQS

A4.3/5.0
Behavior5/5

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

Beyond readOnlyHint and destructiveHint, the description discloses that nothing is ordered or saved and that the shopper opens the link and decides. This confirms side-effect-free semantics in behavioral terms rather than restating the annotation. It also states the price basis (before discounts, shipping, and taxes), which an agent needs in order to interpret the result.

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?

Two dense sentences with zero filler: the product first, then the constraint and return shape. Prerequisites are front-loaded and nothing is repeated across sentences.

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 two-parameter tool with a nested item array and an existing output schema, this covers everything an agent needs: what it builds, the precondition, the absence of side effects, and the price basis. Return-value detail is a bonus rather than something the agent would have to guess at.

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 50%: country already carries an ISO-code description in the schema, and handle/variant_id note provenance. The description reinforces 'from get_product' and the stock/published check, but says nothing about quantity semantics (default 1, max 99) or the 20-item cap, both of which are documented only in the schema. Baseline 3 fits because the schema is doing much of the work.

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?

A specific verb and resource: "Make a checkout-ready cart link for chosen variants." It also states provenance for the key inputs (handle and variant id from get_product), which tells an agent exactly what this produces. It never names a sibling to contrast with, but no sibling plausibly builds cart links, so confusion risk is low.

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 gives a clear precondition: use it for chosen variants after verifying each is published and in stock, and it routes the agent to get_product for the identifiers. There is no explicit when-not-to-use clause or statement about handling unpublished/out-of-stock items, which is the main gap.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.