Skip to main content
Glama

Agent Data Tools: Prices and DeFi

USD prices for up to 20 tokens in one call

price_tokens

USD prices for up to 20 ERC-20 tokens on Base, Ethereum, Arbitrum or Optimism in one call, each from its deepest Uniswap v3 pool against USDC or WETH, read live from the chain, with pool, reserve and a thin-liquidity flag. Tokens without a pool are listed under unpriced instead of failing the call. Spot prices, not time averages. Use to value a basket of tokens or refresh a watchlist in one paid call. Price $0.005/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only; not marked read-only because each call is charged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoNetwork: base (default), eth, arb or op
addressesYesComma-separated 0x ERC-20 token addresses (1-20)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it explains the deepest-pool/USDC-WETH pricing method, spot-not-TWAP semantics, the unpriced fallback instead of call failure, the exact cost ($0.005/call, first 25 free, failed calls free), and explicitly justifies why readOnlyHint=false despite being a pure read ('not marked read-only because each call is charged'). That last point resolves an otherwise confusing annotation.

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?

Dense but front-loaded: purpose and sourcing first, then fallback behavior, then pricing and usage. Every clause carries information, though the payment/credits sentence is long enough that it slightly crowds the core purpose.

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?

No output schema exists, yet the description names the returned fields (pool, reserve, thin-liquidity flag, unpriced bucket) so the agent knows the response shape. Combined with pricing, chain and failure semantics, nothing needed to call it correctly is missing.

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 real meaning: it maps the abbreviated enum values to full network names (Base, Ethereum, Arbitrum, Optimism) and reinforces the 1-20 address limit and that addresses are ERC-20 contracts.

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?

States a specific verb+resource with scope: USD prices for up to 20 ERC-20 tokens across four named chains, sourced from the deepest Uniswap v3 pool. The batch-of-20 framing and named chains distinguish it clearly from the singular sibling price_token without needing 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 Guidelines4/5

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

Explicitly says 'Use to value a basket of tokens or refresh a watchlist in one paid call', which tells the agent when this batch tool is the right pick. It never names price_token as the single-token alternative or states an exclusion, so it stops just short of full routing guidance.

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.