Skip to main content
Glama

chain_token_price_batch

Read-only

On-chain token prices (batch) — USD prices for up to 10 ERC-20 tokens in one call, straight from Uniswap v3 pools (QuoterV2 vs USDC, direct and via WETH) with route, liquidity grade and 1000 USD price impact for each - no off-chain price API. Required: chain (base, ethereum, arbitrum, optimism or polygon), tokens (comma-separated symbols or 0x addresses). Price: $0.008 USDC (Base, via x402).

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": {
      "chain": "<chain>",
      "tokens": "<tokens>"
    },
    "name": "chain_token_price_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesbase
tokensYesWETH,cbBTC,AERO

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, non-destructive and open-world traits, but the description adds real behavioral context beyond them: no off-chain price API, dual route computation (direct and via WETH), per-token route/liquidity grade/1000 USD price impact outputs, and an x402 payment requirement of $0.008 USDC. It does not discuss rate limits, missing-pool behavior, or price staleness, which keeps it below 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?

A single front-loaded paragraph that opens with the resource and scope before the technical detail, with zero filler sentences. The middle clause chain ('QuoterV2 vs USDC, direct and via WETH') is dense and slightly hard to parse, and the pricing sentence could be its own line, but nothing is redundant.

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?

With no output schema, the description carries the burden of return values and does so by naming route, liquidity grade and 1000 USD price impact per token. Required inputs, valid chain values, token format, batch limit and payment model are all covered; only edge cases (unsupported token, empty pool, price staleness) are unaddressed.

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% but the schema descriptions are bare examples ('base', 'WETH,cbBTC,AERO'). The description adds genuine meaning: it enumerates the five valid chains (base, ethereum, arbitrum, optimism, polygon) that the schema does not enumerate, states tokens may be comma-separated symbols or 0x addresses, and imposes the 10-token maximum.

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 names a specific verb and resource ('On-chain token prices (batch) — USD prices') and immediately scopes it with 'for up to 10 ERC-20 tokens in one call,' which cleanly separates it from the singular chain_token_price sibling. It also states the data provenance (Uniswap v3 QuoterV2 vs USDC) so an agent knows exactly what kind of price it gets.

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?

Usage is implied by the batch framing and the 10-token cap, and the cost line hints at a paid path, but there is no explicit 'use this instead of X when Y' guidance. No when-not conditions or comparison to chain_token_price / chain_price_feed are given, leaving the agent to infer selection from the name.

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