Skip to main content
Glama

Agentic Fabrication Network (AFN)

Start a cart

create_cart

Start a cart, for a user who wants several parts and one payment. Pass items to put parts in at once; each is named by quote_id (a quote you already have — its shops are not asked again), or by file_id or file_url (a design that has no quote yet — it gets one ordinary quote, priced exactly as get_fabrication_quote would price it). Returns the cart with its cart_id. HOW A CART WORKS: each part in a cart IS a quote — its material, finish, quantity, rules and its pick (selection) live on that part's quote, and nothing is kept twice. To change a part, call refine_quote on its quote_id and pass cart_item_id: the cart follows the part to the new quote by itself. To pick the option to order for a part, store the pick on its quote (refine_quote selection). The cart_id is the only key to the cart — whoever holds it can read and change it — so give it only to the user it belongs to, and never put it in a link you did not get from the network.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsNoParts to put in the cart now
ship_to_zipNoDestination US ZIP the cart's new parts are priced to, exactly as the user stated it. OMIT if the user has not given one — NEVER guess or invent a ZIP

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare that this is a non-read, non-destructive, open-world operation; the description goes far beyond that with the cart_id custody warning ("whoever holds it can read and change it"), the rule that a part IS a quote and nothing is stored twice, and the fact that the cart auto-follows a part to a new quote after refine_quote. That is exactly the behavioral context an agent needs before mutating state.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action and the item modes, then a clearly labeled "HOW A CART WORKS" block that earns its space by covering the quote/cart duality and the refine_quote handoff. It is dense and slightly long, with minor repetition of details already in the schema, but no idle 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?

There is no output schema, so the description compensates by stating the return value (the cart with its cart_id) and how to operate on the cart afterward. Combined with the security note and the item-mode rules, an agent can call and continue from this tool without further context.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: quote_id skips shop selection, while file_id/file_url produce "one ordinary quote, priced exactly as get_fabrication_quote would price it," which ties this tool's pricing behavior to a sibling. Some overlap with the schema text exists, but the pricing-equivalence framing is not in 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 specific verb and resource ("Start a cart") plus the scenario it serves ("a user who wants several parts and one payment"), which separates it from add_to_cart and create_checkout by intent even without naming them. It also explains what the cart contains semantically (each part is a quote), so the agent knows what it is creating.

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 description gives clear guidance on how to populate the cart (quote_id vs file_id/file_url) and hands off to refine_quote for changes and picks, with the exact parameter (cart_item_id) named. It lacks an explicit exclusion such as "if a cart already exists, use add_to_cart instead," so the when-not is left to inference.

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