Skip to main content
Glama

Cop

Create a cart and checkout link

create_cart
Idempotent

Build a cart from offer_ids (from search_products or get_product) and get a checkout_url. Opening the link fills the shopper's Cop cart and goes straight to checkout, where they pay (taxes and delivery are added there). Nothing is charged or reserved 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"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
languageNo

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=false, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavioral context: nothing is charged or reserved, and taxes/delivery are applied later at checkout, which clarifies the side-effect boundary of a non-read-only tool. It omits cart lifetime/expiry and any auth requirements.

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 tight sentences, front-loaded with the action and its inputs, then the outcome, then the no-charge caveat. No filler or repetition.

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 usefully names the return value (checkout_url) and explains what it does. For a two-parameter tool this is nearly sufficient; the unmentioned language option and cart persistence behavior are the remaining gaps.

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% at the parameter level, so the description carries the burden; it explains the origin and meaning of offer_id well. However, the `language` enum parameter (en/fr) and `quantity` (1-10 cap) are never mentioned, leaving half the surface undocumented.

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 ("Build a cart from offer_ids ... and get a checkout_url") and even names the upstream tools that produce the input, which cleanly separates it from get_cart and update_cart. An agent can identify the operation without opening the 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 gives clear prerequisite context by naming search_products and get_product as the source of offer_ids, and explains what opening the link does (fills the shopper's cart, goes straight to checkout). It stops short of explicit exclusions, e.g. when to use this versus update_cart on an existing cart.

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