Skip to main content
Glama

get_rwa_quote

Quote for swapping into or out of a tokenized real-world asset (a tokenized stock, ETF, gold or treasury token) on one chain, measured against what the token stands for: its reference price, read on chain from a Chainlink feed or the issuing fund's own rate, never from the pool being traded. Use it instead of get_quote when one side is a tokenized asset and the user cares whether the price is fair; use list_rwa_assets first to find the token's address. Read-only: it never executes a trade. Returns the quote (output.amount in tokenOut's base units, output.decimals, venues, gasFeeUSD) and an rwa block: refDeviationBps (the output's value against the input's at reference prices; positive pays more), the reference used and how old it is, marketOpen (whether the US session is open), and minOut. Also returns swapUrl, a link that opens this swap on the LCX Liberty DEX site for the user to review and sign. When the quote is further below the reference than maxRefDeviationBps (default 100), or the token has no live reference, the result is an error that says so.

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": {
      "chainId": "<chainId>",
      "tokenIn": "<tokenIn>",
      "tokenOut": "<tokenOut>",
      "amount": "<amount>"
    },
    "name": "get_rwa_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesPositive human amount of tokenIn to sell, e.g. "1000".
chainIdYes1 Ethereum, 8453 Base, 42161 Arbitrum One, 10 OP Mainnet, 4663 Robinhood Chain, 56 BNB Chain, 137 Polygon, 43114 Avalanche, 130 Unichain, 143 Monad, 5042 Arc, 999 HyperEVM, 9745 Plasma, 59144 Linea, 4326 MegaETH, 57073 Ink, 480 World Chain, 1868 Soneium, 100 Gnosis, 25 Cronos, 146 Sonic, 324 ZKsync
tokenInYesSell token address.
tokenOutYesBuy token address. One of tokenIn and tokenOut must be a tokenized asset from list_rwa_assets.
maxRefDeviationBpsNoHow far below the reference price to accept, in basis points. Default 100.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does so well: it declares read-only semantics ('it never executes a trade'), enumerates returned fields including the rwa block and swapUrl, and discloses the failure mode when deviation exceeds the threshold or no live reference exists. It stops short of covering rate limits, auth requirements, or per-chain availability constraints, which keeps it from a 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?

The distinguishing constraint (reference-price basis) and the sibling comparison are front-loaded, and the return-shape sentence follows logically. It is dense with parenthetical asides and semicolon chains, so it is longer than strictly necessary, but no sentence is filler.

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?

There is no output schema, and the description compensates by naming the returned values (output.amount, decimals, venues, gasFeeUSD, the rwa block fields, swapUrl). For a five-parameter quote tool whose error path is user-visible, an agent has everything needed to call it and interpret the result.

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, but the description adds meaning beyond the schema by explaining the consequence of maxRefDeviationBps (a quote too far below reference produces an error stating so) and by characterizing what the reference price is and where it comes from. It does not add per-parameter format detail for chainId or token addresses, which the schema already handles.

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 description states a specific verb and resource ('Quote for swapping into or out of a tokenized real-world asset') and immediately specifies what the price is measured against (reference price from a Chainlink feed or the issuer's rate, never the pool). It explicitly names the sibling it replaces, get_quote, so an agent can distinguish the two without opening either 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?

It gives an explicit selection rule ('Use it instead of get_quote when one side is a tokenized asset and the user cares whether the price is fair') and a prerequisite workflow ('use list_rwa_assets first to find the token's address'). Both when-to-use and the alternative are spelled out rather than implied.

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