Skip to main content
Glama

Build a checkout cart link

build_cart_link
Read-onlyIdempotent

Resolve up to four in-stock Cherrybook coffees or brewing gear items by slug or cherrybookcoffee.com link into one reviewable checkout.cherrybookcoffee.com cart link with itemized totals and roaster shipping thresholds. Returns a link without placing an order.

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
itemsYesOne to four in-stock Cherrybook coffee or gear items.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 readOnlyHint, idempotentHint, non-destructive and openWorld=false, so the safety profile is covered; the description adds real value on top by stating the four-item cap, the in-stock precondition, the itemized totals and roaster shipping thresholds returned, and the no-order-placed guarantee. The one gap is what happens when a requested item is out of stock (error vs. silently dropped), which is the main behavioral uncertainty left.

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 sentences with zero filler: the resolution action and constraints come first, followed by the returned artifact and the safety disclaimer. Every clause carries information an agent needs.

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?

An output schema exists and annotations are rich, so the description need not explain return shapes, yet it still characterizes the link, totals and thresholds. For a low-parameter, nested-input tool the coverage is nearly complete, with the only unaddressed edge being out-of-stock or invalid-slug failure behavior.

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 100%, so url_or_slug, variant and quantity are already documented, and the description merely echoes the slug/link accept form and the four-item limit already encoded as maxItems. Baseline 3 is appropriate since the schema does the heavy lifting.

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 and resource: resolve items (by slug or cherrybookcoffee.com link) into one checkout.cherrybookcoffee.com cart link. It also scopes the output (itemized totals, roaster shipping thresholds) and explicitly contrasts with the sibling get_/find_ tools by clarifying it does not place an order.

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?

Clear context for when to call it: when you have one to four in-stock items to turn into a reviewable cart link, and a hard exclusion (it will not complete checkout). It stops short of naming discovery alternatives such as find_coffees for locating slugs, so the routing to it is clear but not fully fleshed out.

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