Skip to main content
Glama

Agent Data Tools: Prices and DeFi

Crypto prices in USD for up to 20 tokens in one call: get USD prices for several crypto tokens or coins in one call

price_tokens
Read-only

USD prices for up to 20 crypto tokens in one call, by ticker (ETH, BTC, LINK, AERO…) or ERC-20 0x address, on Base, Ethereum, Arbitrum and Optimism, each from its deepest Uniswap v3 pool against USDC or WETH, read live, with pool, reserve and a thin-liquidity flag. With no chain named each ticker is priced on the network that lists it. Tokens without a pool are listed as unpriced. Use to value a basket or refresh a watchlist in one paid call. Example: symbols=ETH,BTC,AERO. Price $0.002/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": "price_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoNetwork: base (default), eth, arb, op or polygon
symbolsNoComma-separated tickers such as ETH,BTC,AERO (with or instead of addresses; 1-20 tokens in all; an HTTP call with no input at all answers for BTC and ETH)
addressesNoComma-separated 0x ERC-20 token addresses (with or instead of symbols; 1-20 tokens in all)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / chain / description
      Previous value: -"Network: base (default), eth, arb or op"New value: +"Network: base (default), eth, arb, op or polygon"
    • changedInput schema / properties / chain / enum
      Previous value: -[
      -  "base",
      -  "eth",
      -  "arb",
      -  "op"
      -]New value: +[
      +  "base",
      +  "eth",
      +  "arb",
      +  "op",
      +  "polygon"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / symbols / description
      Previous value: -"Comma-separated tickers such as ETH,BTC,AERO (with or instead of addresses; 1-20 tokens in all)"New value: +"Comma-separated tickers such as ETH,BTC,AERO (with or instead of addresses; 1-20 tokens in all; an HTTP call with no input at all answers for BTC and ETH)"
  3. Changed3 schema fields changed
    • changedInput schema / properties / addresses / description
      Previous value: -"Comma-separated 0x ERC-20 token addresses (1-20)"New value: +"Comma-separated 0x ERC-20 token addresses (with or instead of symbols; 1-20 tokens in all)"
    • addedInput schema / properties / symbols
      Added value: +{
      +  "description": "Comma-separated tickers such as ETH,BTC,AERO (with or instead of addresses; 1-20 tokens in all)",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "addresses"
      -]
  4. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, non-destructive, open-world and non-idempotent behavior, and the description reinforces these consistently ("reads or computes only and changes nothing", "each call is charged, so repeats are not free"). It also adds genuinely useful context beyond annotations: the $0.002/call price, first 10 free, failed calls free, and the x402/card-key payment paths. However, it omits any latency or rate-limit guidance for a paid batch call, so with annotations covering the safety profile this lands at 3.

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 definition is front-loaded with what is priced and how, then layers cost and payment detail, and every sentence carries operational information. It is dense to the point of being one long paragraph, and the pricing detail is repeated in slightly different forms ("one paid call", "$0.002/call", "each call is charged"), which costs some tightness.

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?

With no output schema, the description still tells the agent what comes back: pool, reserve, a thin-liquidity flag, and unpriced tokens being listed rather than dropped. Payment mechanics, free-tier limits, and failure behavior are all covered, so an agent can call this correctly without further information.

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 three parameters, giving a baseline of 3. The description adds the default-chain rule ("with no chain named each ticker is priced on the network that lists it") and a worked example, but it also lists only Base/Ethereum/Arbitrum/Optimism while the schema enum includes polygon, leaving a small ambiguity about polygon support.

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 opening clause names a specific verb and resource (USD prices for up to 20 crypto tokens), the accepted identifier forms (ticker or ERC-20 0x address), and the chains covered. The batch scope implicitly separates it from single-token siblings like crypto_price or price_token, but no sibling is named explicitly, so the differentiation is left partly to inference.

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?

"Use to value a basket or refresh a watchlist in one paid call" gives a concrete usage context, and the pricing sentence tells the agent that repeats carry cost. There is no explicit when-not or a named alternative for single-token lookups, which keeps it out of the top band.

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