Skip to main content
Glama

Post an RFQ

create_rfq

Post a trade request (scope: taker). direction=sell_base → you GIVE base; buy_base → you RECEIVE it. visibility=private needs askAmount. Amounts are base-unit integer strings.

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": {
      "direction": "<direction>",
      "baseAssetId": "<baseAssetId>",
      "baseAmount": "<baseAmount>",
      "quoteAssetId": "<quoteAssetId>",
      "ttlSeconds": "<ttlSeconds>"
    },
    "name": "create_rfq"
  }
}

Input Schema

NameRequiredDescriptionDefault
askAmountNoa private order's total price, base units — at most 8 decimals of its asset (fewer if the asset has fewer); the API refuses more
directionYessell_base: you give the base asset; buy_base: you receive it
baseAmountYesBase amount in base units (integer string)
ttlSecondsYesHow long the request stays open, in seconds
visibilityNopublic (default): on the board; private: link-only at your askAmount
baseAssetIdYesBase asset id from list_assets
quoteAssetIdYesQuote asset id from list_assets
targetAddressNoPrivate only: lock the order to this counterparty wallet (on the chain they give)

Output Schema

NameRequiredDescriptionDefault
rfqNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / askAmount / description
      Added value: +"a private order's total price, base units — at most 8 decimals of its asset (fewer if the asset has fewer); the API refuses more"
    • addedInput schema / properties / baseAmount / description
      Added value: +"Base amount in base units (integer string)"
    • addedInput schema / properties / baseAssetId / description
      Added value: +"Base asset id from list_assets"
    • addedInput schema / properties / direction / description
      Added value: +"sell_base: you give the base asset; buy_base: you receive it"
    • addedInput schema / properties / quoteAssetId / description
      Added value: +"Quote asset id from list_assets"
    • addedInput schema / properties / targetAddress / description
      Added value: +"Private only: lock the order to this counterparty wallet (on the chain they give)"
    • addedInput schema / properties / ttlSeconds / description
      Added value: +"How long the request stays open, in seconds"
    • addedInput schema / properties / ttlSeconds / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / visibility / description
      Added value: +"public (default): on the board; private: link-only at your askAmount"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "rfq": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "askAmount": {
      +          "type": [
      +            "string",
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "baseAmount": {
      +          "type": [
      +            "string",
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "id": {
      +          "description": "Request id",
      +          "type": "string"
      +        },
      +        "status": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare non-readonly, non-destructive, non-idempotent and open-world, so the safety profile is covered. The description contributes the conditional requirement that visibility=private needs askAmount, which is real behavioral information not enforced by the schema, but it says nothing about whether posting locks funds, incurs fees, how it is later cancelled, or what happens when ttlSeconds expires.

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?

Four short, front-loaded clauses with no padding; the scope marker and the direction rule come first. The telegraphic "visibility=private needs askAmount" phrasing is dense but readable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists and the input schema is fully documented, so much of the burden is already carried elsewhere. For an 8-parameter mutating, open-world tool, however, the description never covers lifecycle behavior (cancellation, TTL expiry, whether targetAddress implies a specific chain) that an agent would want before committing a trade request.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/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 restates direction semantics and amount formatting that the schema already documents, but it does add one genuinely new rule — private visibility requires askAmount — which is a cross-field constraint absent from the schema; targetAddress and ttlSeconds are left entirely to the schema.

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?

"Post a trade request (scope: taker)" gives a specific verb plus resource and adds the taker-side scope, which separates it from maker-side siblings like propose_price or request_listing. It stops short of naming the sibling an agent should use instead when it wants to fill an existing RFQ rather than create one.

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

Usage Guidelines3/5

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

The taker scope implies when this tool applies (you are initiating, not filling), but there is no explicit when-to-use/when-not guidance and no mention of the complementary tools such as quote_rfq, cancel_rfq, or list_my_rfqs. Usage has to be inferred from the parenthetical.

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.