Skip to main content
Glama

Compose cart (checkout link)

compose_cart

Composes a SIGNED LINK to the Aloha Fungi cart from given items (product handle + variant ID + quantity). This tool does NOT create a cart or order, never pays or logs in. It returns a link that the CUSTOMER must click to add products and checkout. Max 10 items.

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": {
      "pozycje": "<pozycje>"
    },
    "name": "compose_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
pozycjeYes

Output Schema

NameRequiredDescriptionDefault
urlYes
itemsYes
totalYes
currencyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / pozycje / items / properties / variantId / description
      Previous value: -"Variant ID as returned in product details."New value: +"Exact variantId of the chosen catalog variant."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: no server-side cart or order is created, no authentication or payment occurs, and the link must be clicked by the customer to take effect. This meaningfully softens the readOnlyHint=false signal by explaining that the tool's only side effect is link composition, though the non-read-only hint is mildly in tension with that framing.

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?

Four short sentences, front-loaded with what the tool produces, followed by what it is not, what the return value does, and the size limit. Every sentence carries a distinct piece of information; the capitalization is emphatic but not wasteful.

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?

The return value is described in functional terms (a signed link the customer clicks) and an output schema exists, so no further return documentation is needed. Minor gaps remain around link expiry and what happens when a handle or variantId is invalid, but nothing essential to invoking it is missing.

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?

Top-level schema coverage is 0% and the parameter name is non-English, so the description does real work by explaining that each entry is a product handle plus variant ID plus quantity, and that the limit is 10 items. It does repeat the maxItems=10 constraint already in the schema, so it earns a 4 rather than a 5.

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 artifact: it composes a SIGNED LINK to a cart from item triples. It also pre-empts the most likely misreading by stating it does NOT create a cart or order and never pays or logs in, which separates it from order-placing siblings such as place_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?

The usage context is clear: this is for producing a link that the customer clicks to add products and checkout, not for completing the transaction. It gives a strong exclusion set (no cart creation, no order, no payment, no login) but never names the tool to use when the agent actually wants to place an order.

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