Skip to main content
Glama

Agentic Fabrication Network (AFN)

Point a cart part at another quote

set_cart_item_quote

Point a part of a cart at another quote of the same part — for a part that was priced again with get_fabrication_quote. Changing a part with refine_quote needs no call here: pass cart_item_id to refine_quote and the cart follows by itself. Asks no shop. Returns the whole cart. 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

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": {
      "item_id": "<item_id>",
      "quote_id": "<quote_id>"
    },
    "name": "set_cart_item_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
cart_idNoThe cart the part is in (cart_…), when you have it
item_idYesThe cart part — its item_id from the cart
quote_idYesThe quote the part is now

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare this is a non-destructive write that is not open-world; the description adds real context: 'Asks no shop' (no shop round-trip), 'Returns the whole cart' (a write that returns state), and a warning that cart_id is a bearer key that must be scoped to its owner. It does not say what happens to the part's previous quote pointer or whether the old quote is orphaned, which is the one behavioral gap.

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

Conciseness3/5

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

The opening sentence and the immediate exclusion are well front-loaded, but the 'HOW A CART WORKS' block repeats the refine_quote/cart-follows claim three times across the text, and the closing cart_id security sentence ('never put it in a link you did not get from the network') is vague and reads as boilerplate rather than actionable instruction.

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?

For a 3-parameter non-destructive write with no output schema, the description covers purpose, alternative, return value, the cart/quote data model, and key handling. It leaves open why cart_id is optional and what becomes of the part's prior quote, which is the remaining gap an agent could hit at call time.

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%, but the schema alone is ambiguous — quote_id is described as 'the quote the part is now', which reads as the current state rather than the target. The description resolves this by requiring 'another quote of the same part' priced via get_fabrication_quote, adding a real constraint beyond the schema. It does not explain when the optional cart_id is needed versus when item_id suffices.

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 precise verb and object: 'Point a part of a cart at another quote of the same part', and immediately contrasts it with the sibling path (refine_quote) that changes a part. An agent can distinguish this from refine_quote, get_fabrication_quote and add_to_cart without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives the positive trigger ('for a part that was priced again with get_fabrication_quote') and an explicit when-not ('Changing a part with refine_quote needs no call here: pass cart_item_id to refine_quote'), naming the alternative and the condition that selects it.

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