Skip to main content
Glama

Agentic Fabrication Network (AFN)

Reopen a quote someone came back to

reopen_quote

Use when the user comes back to a part priced earlier (a saved quote_id), or when a quote carried answers_pending. A quote's answers are shown for 24 hours. Inside them this returns the same quote and asks nobody (reopened "same"). Past them it makes a NEW quote of the same file, configuration, rules and pick — work from the quote_id it returns: with the answers anyone got for this same part and request in the last 24 hours ("copied", nobody asked); else by asking the shops once ("asked" — the offers fill in like any new quote); else, when someone is asking about it right now, at our instant prices ("waiting": call this again after answers_pending.retry_after_s seconds). "press_needed" = this quote was itself made by reopening an old one and nothing was picked or changed on it since, so nobody is asked again by itself: pass pressed true only when the user asks for today's prices. A quote of a shared cart, a part already paid for, or instant prices only comes back as it reads. Do not use it to look at a board again. HOW OLD AN ANSWER IS: a shop's answer is shown for 24 hours, to everyone with the same request (the same design bytes with the same everything asked), so a quote of a part someone priced in the last 24 hours comes back complete at once with those answers and no shop is asked again. An offer says when its shop answered (answered_at). Past 15 minutes it reads stale: true — it is shown at that price and the shop confirms it again before anyone pays (check_offer, or checking out, asks that one shop). A shipping option of such an offer carries eta_approximate: true: say "about N days" from eta_days and never state its eta_date as a date, because no shop stands behind a date until it confirms again. If a quote carries answers_pending, someone else is asking the shops about this same request right now and these are our instant prices: call reopen_quote with that quote_id after retry_after_s seconds.

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>"
    },
    "name": "reopen_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
pressedNotrue = the user asked for today's prices. Needed only after reopened read "press_needed"
quote_idYesThe quote to reopen

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations say only readOnly=false, openWorld=true, destructive=false; the description goes well beyond them by disclosing the entire state machine — 'same', 'copied', 'asked', 'waiting' — plus that it can cause shops to be asked, that offers come back stale after 15 minutes, that eta_approximate means never to state a date, and that press_needed requires pressed=true. This is exactly the side-effect and cost disclosure the annotations do not carry.

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

Conciseness2/5

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

It is front-loaded with a usable 'Use when' clause, but the body is a wall of nested parentheses and quoted status tokens with visible repetition — the 24-hour rule and 'no shop is asked again' are each restated twice in near-identical language. A far shorter phrasing would preserve every behavioral fact.

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 stateful tool with no output schema, the description does cover the return states, what the caller must do with the returned quote_id, and the retry condition. Minor gaps remain: it does not say what the 'answer/pending' payload looks like or how the caller should behave if the reopened status is something unexpected, but the essential operational picture is complete.

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 baseline would be 3, but the description adds real meaning: pressed is 'only when the user asks for today's prices' and only after reopened reads 'press_needed', which is narrower than the schema's 'true = the user asked for today's prices'. quote_id semantics (returns a possibly different quote_id to work from) are also clarified.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('reopen_quote', 'a part priced earlier (a saved quote_id)') and distinguishes reopening from re-surfacing a listing ('Do not use it to look at a board again'). The purpose is decipherable, but the core statement is buried under the 24-hour-window and answers_pending discussion, so an agent must read several sentences before it can confidently separate this from poll_quote or get_fabrication_quote.

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 explicit triggers ('Use when the user comes back to a part priced earlier', 'or when a quote carried answers_pending') and one exclusion ('Do not use it to look at a board again'). It also prescribes a retry loop with retry_after_s. What it does not do is name the sibling that handles the excluded case, so the agent has to infer that poll_quote is the read-only alternative.

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