Skip to main content
Glama

Quote an RFQ

quote_rfq
Destructive

Quote an open RFQ (scope: maker) — opens a settlement thread. quoteAmount = total quote-asset amount in base units. Your quote is your acceptance: when the requester accepts, the deal is agreed. Only if the returned thread shows makerAccepted: false (you are the initiator) call accept_terms on it right away with your hashlock — or, acting for a person with no wallet here, send them to the thread's dealUrl to accept there.

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": {
      "id": "<id>",
      "quoteAmount": "<quoteAmount>"
    },
    "name": "quote_rfq"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRequest id from list_open_rfqs
quoteAmountYestotal price, base units — at most 8 decimals of its asset (fewer if the asset has fewer); the API refuses more

Output Schema

NameRequiredDescriptionDefault
threadNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / thread / properties / dealUrl
      Added value: +{
      +  "description": "The deal page on the Hashlock site — where a person without a wallet here accepts as initiator, funds and claims",
      +  "type": "string"
      +}
  2. Changed5 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / id / description
      Added value: +"Request id from list_open_rfqs"
    • addedInput schema / properties / id / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • addedInput schema / properties / quoteAmount / description
      Added value: +"total price, base units — at most 8 decimals of its asset (fewer if the asset has fewer); the API refuses more"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "thread": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "currentQuoteAmount": {
      +          "description": "Price on the table",
      +          "type": [
      +            "string",
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "id": {
      +          "description": "Thread id",
      +          "type": "string"
      +        },
      +        "makerAccepted": {
      +          "type": "boolean"
      +        },
      +        "pendingAmount": {
      +          "description": "Counter awaiting acceptance",
      +          "type": [
      +            "string",
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "status": {
      +          "type": "string"
      +        },
      +        "takerAccepted": {
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, openWorldHint=true, and idempotentHint=false, but the description adds the crucial semantic that the quote is itself an acceptance that binds once the requester accepts, plus the post-call obligation. It stops short of saying whether a quote can be withdrawn or superseded (a relevant question for a destructive, non-idempotent call), so 4 rather than 5.

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 its side effect, then the amount semantics, then the follow-up branch — a sensible order. It is a single dense run-on sentence with stacked em-dashes, which costs a little readability but wastes no words.

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?

An output schema exists, yet the description still points at the one returned field that drives the agent's next action (makerAccepted) and gives the human fallback (dealUrl). For a two-parameter, destructive, open-world mutation tool, nothing an agent needs to call it correctly and follow through 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 the baseline is 3; the description still adds meaning by clarifying that quoteAmount is denominated in the quote asset's base units (the schema only says "total price, base units"). It says nothing extra about the id parameter beyond the schema, so it is a modest lift over the baseline rather than a large one.

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+resource ("Quote an open RFQ"), names the acting scope ("scope: maker"), and discloses the primary effect ("opens a settlement thread"). That distinguishes it clearly from create_rfq (requester side) and accept_terms (follow-up step) without needing the 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 precondition (the RFQ must be open, id comes from list_open_rfqs) and explicit routing for the follow-up case: call accept_terms with your hashlock only if the returned thread shows makerAccepted: false, otherwise send a wallet-less person to dealUrl. When-to-use and the alternative path are both spelled out.

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.