Skip to main content
Glama

get_token_price

Read-onlyIdempotent

Retrieve the current USD spot price of any ERC-20 token or native asset across EVM chains via DefiLlama. Use for accurate, wallet-free price lookup.

Instructions

Fetch the USD price of a token via DefiLlama. Pass token: "native" for the chain's native asset (ETH on ethereum/arbitrum, MATIC on polygon) or an ERC-20 contract address. Prefer this over get_swap_quote for pure price lookups — no wallet or liquidity simulation needed. EVM-only — for non-EVM natives (BTC, LTC, SOL, XMR, etc.) or any well-known coin without an EVM contract address, use get_coin_price instead. SCOPE: returns the current spot USD price — a snapshot, not a forecast. It is NOT a buy/sell signal, price prediction, target, or token-pick endorsement. AGENT BEHAVIOR: this tool surfaces data; it does NOT pick. Current price says nothing about future direction. Do NOT use the price to ground "what coin will 100x", "should I buy X", "best memecoin", or any other speculative-pick answer; refuse those prompts even when this tool was called. Issue #599.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYes
tokenYes
Behavior5/5

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

Annotations provide readOnlyHint, idempotentHint, openWorldHint. Description adds that it's a snapshot, EVM-only, and includes agent behavior constraints (not a pick tool). No contradictions.

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?

Well-structured and informative, but includes a minor reference to 'Issue #599' that adds little value. Otherwise clear and efficient.

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?

Covers input, alternatives, and scope well. Lacks explicit output format (e.g., number or object), but states it returns current spot USD price. Sufficient for a simple tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema coverage, description explains 'native' vs contract address for token parameter and lists supported chains in schema. Adds examples for native assets per chain.

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?

Description clearly states it fetches USD price via DefiLlama, specifies token as 'native' or ERC-20 address, and distinguishes from siblings (get_swap_quote for swaps, get_coin_price for non-EVM natives).

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?

Explicitly says when to prefer this tool over get_swap_quote and when to use get_coin_price for non-EVM natives. Also clarifies scope: current spot price, not a forecast or signal.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/szhygulin/recon-crypto-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server