Skip to main content
Glama

Statistics of the World

get_onchain_quotes

Read-onlyIdempotent

Read SOTW-computed public onchain prices. market=pools (default) reads Uniswap/Raydium/PancakeSwap token pools in USDC (BNB uses Binance-Peg USD Coin). market=derivatives reads Hyperliquid perpetual bid/ask midpoints with original units, source time, spread and depth checks. Instruments are distinct from linked cash securities, bullion benchmarks, indices and official yields. Unavailable prices are null. Set catalog=true to list reviewed contracts without source reads.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_onchain_quotes"
  }
}

Input Schema

NameRequiredDescriptionDefault
marketNopools (default): token pool prices in USDC. derivatives: perpetual bid/ask midpoints.pools
catalogNotrue lists the reviewed contracts without reading prices.
symbolsNoCase-sensitive token symbols (PAXG, AAPLx, SLVon) or exact perpetual IDs (xyz:SILVER, xyz:CL, para:10Y).
categoryNoLimit quotes to one instrument category.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / catalog / description
      Added value: +"true lists the reviewed contracts without reading prices."
    • addedInput schema / properties / category / description
      Added value: +"Limit quotes to one instrument category."
    • addedInput schema / properties / market / description
      Added value: +"pools (default): token pool prices in USDC. derivatives: perpetual bid/ask midpoints."
  2. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description does add real behavior beyond that: missing prices come back as null, derivatives include source time plus spread and depth checks, and catalog=true skips source reads. However, it says nothing about rate limits, latency, or failure modes for a live external-market read.

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?

Five short sentences, front-loaded with the core action and the mode split before caveats. Dense but every sentence carries information; only the 'distinct from linked cash securities...' line is slightly compressed and requires reading twice.

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?

There is no output schema, yet the description covers return content (USDC-denominated pool prices, bid/ask midpoints with units, source time, spread and depth) and the null-for-unavailable convention. What remains thin is confirming whether results are grouped per symbol or returned as a flat list, but overall an agent can call this correctly.

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 schema already documents all four parameters and both enums. The description adds modest extra meaning — the Binance-Peg USD Coin caveat for BNB pools and the effect of catalog=true — but does not enrich symbols or category beyond what the schema states. Baseline 3 is appropriate.

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 opens with a specific verb and resource ('Read SOTW-computed public onchain prices') and immediately splits the tool into its two modes (pools vs derivatives), so an agent knows exactly what data is produced. It does not explicitly contrast with the sibling quote/indicator tools, so differentiation is only partial.

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 states which market value to pick and what each returns, plus the catalog=true shortcut for listing contracts without reading prices. It also warns that these instruments are NOT linked cash securities, bullion benchmarks, indices or official yields, which is genuine exclusion guidance. It gives no explicit routing against alternative quote tools, keeping it below a 5.

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