Skip to main content
Glama

Token Price

token.price
Read-onlyIdempotent

Get real-time token price. EVM: reads Uniswap V3 TWAP on-chain. Solana: reads Pyth oracle price account directly from chain. No external API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoBlockchain to query. EVM chains: base, ethereum, arbitrum, optimism, polygon, bsc, avalanche, zksync, linea, scroll, blast, mantle, gnosis, polygon-zkevm, mode, sei, celo, manta, taiko, fantom, cronos, opbnb, zora, worldchain, metis, fraxtal, kava, zetachain, filecoin, core-dao, aurora, moonbeam, klaytn, bob, canto, monad, tempo, megaeth, arc, plasma, katana, robinhood, pharos, hyperevm. Dedicated non-EVM adapters: solana, hyperliquid, canton.base
tokenYesToken symbol (e.g., 'eth', 'weth', 'sol', 'usdc') or contract address

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesBlockchain queried
tokenYesToken symbol
sourceYesPrice data source
priceUsdYesCurrent USD price
marketCapNoMarket capitalization
timestampNoUnix timestamp ms
volume24hNo24h trading volume
confidenceNoPrice confidence level
priceChange24hNo24h price change percentage

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world behavior, so the safety profile is covered. The description adds genuinely useful behavioral context beyond that: the exact on-chain oracle mechanism per chain family and the fact that no external API is involved, which tells the agent about reliability and latency characteristics.

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?

Three short sentences with zero filler; the action is front-loaded and the mechanism detail follows. Each sentence earns its place.

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?

An output schema exists and annotations cover safety, so the description need not explain return values. What remains is minor: no freshness/staleness caveat for a 'real-time' claim and no handling note for tokens lacking an oracle or pool.

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 description coverage is 100%, so the enum contents and the token symbol/address formats are already documented in the schema. The description hints that a 'chain' value changes the underlying source (EVM vs Solana Pyth) but adds no syntax or format detail beyond the schema, so baseline 3 applies.

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?

States a specific verb and resource ('Get real-time token price') and goes further by naming the price source per chain (Uniswap V3 TWAP for EVM, Pyth for Solana). This differentiates it from adjacent oracle tools, though it never explicitly names the closest sibling (oracle.price_feed) to disambiguate.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, and no alternative is named despite oracle.price_feed occupying overlapping territory. The note about the data source implies a use case (on-chain-verified pricing) but leaves the selection decision to the agent's inference.

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