Skip to main content
Glama

MCPFax Macro & Market Intelligence

On-chain token prices

defi_token_prices
Read-onlyIdempotent

Price arbitrary on-chain tokens with DefiLlama's coins API, addressed as chain:address (or coingecko:id), returning price in USD, symbol, decimals, a confidence score and the pricing timestamp for each. Use it to value a DeFi position holding tokens no exchange lists. This is NOT the exchange spot-price tool: use the crypto spot tool for a plain price of a major asset. A token DefiLlama cannot price inside search_width returns null, never a substituted price. Costs $0.005 USDC per call via x402 on Base; an unpaid call returns the payment challenge instead of data, and a call that returns no data is never settled so it costs nothing. Equivalent HTTP route: GET /defi/token-prices.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
coinsNoComma-separated DefiLlama coin ids as chain:address or coingecko:id, up to 20 (required) Example: 'base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913,coingecko:ethereum'.
search_widthNoHow far back a price may be taken from (default 6h) Example: '6h'.

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already indicate readOnly, idempotent, and non-destructive behavior, and the description adds substantial context beyond them: unpriced tokens return null rather than a substituted price, unpaid calls return a payment challenge, and no-data calls are never settled. These edge cases are crucial for correct invocation and interpretation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but every sentence serves a purpose: it identifies the tool, its use case, its output, its relation to a sibling tool, null behavior, cost model, and equivalent HTTP route. No filler or repetition exists, and the most important identifying information is front-loaded.

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?

For a paid, read-only data tool with no output schema, the description covers the essential context: input format, output fields, pricing failure mode, null behavior, and alternative routing. An agent has enough information to call it correctly and interpret results in the context of the sibling tools.

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. The description adds value by restating the chain:address / coingecko:id addressing convention and clarifying the search_width semantics by explaining that tokens not priced within that window return null. It slightly reinforces the schema without fully compensating for the missing required-field indication, but it remains useful.

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 ('Price arbitrary on-chain tokens') and resource ('DefiLlama's coins API'), and explains the addressing scheme and output fields. It also explicitly distinguishes itself from the crypto spot-price tool, so an agent can tell them apart without inspecting schemas.

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?

The description gives a clear use case ('value a DeFi position holding tokens no exchange lists') and an explicit when-not-to-use statement with the alternative tool ('use the crypto spot tool for a plain price of a major asset'). It also explains relevant cost and failure behavior, which helps the agent decide whether to call this tool.

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.

TDQS

A4.3/5.0
Disambiguation4/5

Most tools target distinct resources: defi_protocol vs defi_protocols are clearly list-vs-detail, and crypto_spot_prices vs defi_token_prices are explicitly differentiated. The main overlap is prediction_market_search vs polymarket_markets/manifold_markets, but the cross-venue purpose is clearly stated.

Naming Consistency5/5

All tool names use snake_case with a consistent resource-noun pattern (defi_, polymarket_, us_, etc.). Plural/singular variants are logical (defi_protocol vs defi_protocols, polymarket_market vs polymarket_markets), and no unconventional casing or verb-style mixing appears.

Tool Count4/5

18 tools is slightly above the ideal 3-15 range, but the server covers a broad domain (crypto, DeFi, prediction markets, macro, FX, rates), so each tool serves a distinct data type. The count feels justified by the breadth rather than redundant.

Completeness4/5

The surface covers major market intelligence categories well: prices, yields, TVL, prediction markets, macro indicators, and FX. Minor gaps exist (e.g., no equities/commodities, limited macro series, no historical crypto data), but the core workflows for macro and market overview are supported without dead ends.

Resources