Skip to main content
Glama

Agentic Fabrication Network (AFN)

Ask the shop to confirm an offer

check_offer

Ask the shop to confirm one unchecked or checking offer. Use this when the user wants the check result before deciding. create_checkout and checkout_cart ask or join the check themselves for the selected option, so this is not a required pre-check. A passed result is orderable at the shown price for 15 minutes. A repriced result confirms that same shop price; do not say the price changed. A failed result cannot be ordered and the offer is removed from the quote; tell the user and continue with the listed offers. Wait up to wait_s (default 45); pending: true means the shop is still answering, so re-read the quote shortly. Nothing else on the quote changes. On an instant-only quote (routing.instant_only true) no shop is asked; relay that result and quote again without instant_only if the user wants to order. On a lazy quote (routing.lazy true) this call is how a shop is asked at all: it asks this offer's shop, and the offer can be ordered once it passes. A shop's confirmation of an offer is good for 15 minutes: while it stands the offer carries confirmed_until (an ISO time) and can be ordered. After it the offer is NOT failed and NOT removed — it keeps its place and the price the shop last confirmed, and its manufacturability_check reads status "unchecked" with reason "confirmation_lapsed". CHOOSING STARTS THAT SHOP'S CHECK: when the user settles on an option and you store the pick, that one shop is asked again by itself (the answer's selection_match.check reads "running"), and create_checkout and checkout_cart ask it themselves too when it still needs confirming — nobody else is asked, and no separate check_offer call is needed. Pay when it lands: the checkout waits for it. If the shop's price came back higher than the user agreed to, the checkout stops ONCE (price_went_up, with the old and the new figure) and nothing is created: tell the user both figures, then send the same call again. An offer whose manufacturability_check reads status "unchecked" with reason "network_restarted" was being confirmed by its shop when the network restarted, so the answer never came: tell the user, in these words, "A new version of AFN has been released, please refresh the page". Nothing is lost — the price stands and the offer can simply be checked again with check_offer. Say it once, when a tool's own text tells you to; the same reason still on an offer on a later read is history, not news.

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": {
      "quote_id": "<quote_id>",
      "offer_id": "<offer_id>"
    },
    "name": "check_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
wait_sNoSeconds to wait for the shop (default 45)
offer_idYesThe offer to have the shop confirm
quote_idYesThe quote the offer belongs to

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

The description carries far more than the annotations do: a 15-minute confirmation window, repriced-vs-failed semantics, removal of failed offers from the quote, lapsed confirmation leaving the offer in place with reason 'confirmation_lapsed', a one-time price_went_up stop, and the exact network_restarted message to relay. Annotations only say readOnlyHint=false/openWorldHint=true; nothing here contradicts them, and the 'asks the shop' framing is consistent with a non-read-only operation.

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 purpose and usage rules are front-loaded and the ordering is logical, but the text is roughly 400 words and repeats itself: the 15-minute window is stated twice, and the fact that create_checkout/checkout_cart trigger the check themselves appears in two places. The closing instruction about when to repeat the network_restarted message is meta-guidance that further bloats an already dense block.

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?

With no output schema, the description must define return semantics, and it does: pending, passed, repriced, failed, confirmed_until, and manufacturability_check status/reason values are all named. For a single-offer check with three parameters, essentially nothing an agent needs to call it or interpret the answer 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?

Schema coverage is 100%, so all three parameters are already documented, but the description adds real meaning: wait_s bounds the blocking wait and a pending:true response means the shop is still answering and the quote should be re-read shortly. It explains the consequence of wait_s, not just its name, though it does not discuss the wait_s=0 or 60 boundary behavior.

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?

The first sentence names a concrete verb and resource ('Ask the shop to confirm one unchecked or checking offer') and immediately scopes the set of offers it acts on. It also explicitly distinguishes itself from create_checkout and checkout_cart, so an agent can tell it is an optional pre-check rather than a required step.

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?

It states the triggering condition ('when the user wants the check result before deciding'), names the alternatives that perform the same check implicitly, and says check_offer is not a required pre-check. It goes further with branch-specific guidance: what to do on instant-only quotes and on lazy quotes where this call is the only way a shop is asked.

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