Skip to main content
Glama

market_get_token_price

Read-onlyIdempotent

Fetch current USD prices for one or more tokens via DefiLlama oracle. Input token identifiers in 'chain:address' format to get price, symbol, decimals, confidence, and last-updated timestamp.

Instructions

Fetch current USD prices for one or more tokens using DefiLlama's price oracle. Accepts token identifiers in the format 'chain:address' (e.g. 'ethereum:0x...') and returns price, symbol, decimals, confidence score, and last-updated timestamp for each token.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokensYesArray of token identifiers to price
searchWidthNoTime range to search for prices (e.g., '4h')
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, and the description adds useful behavioral context: it names DefiLlama as the oracle and lists return fields (price, symbol, decimals, confidence score, last-updated timestamp). No contradictions with annotations.

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?

Two well-structured sentences with no filler. The first sentence states the action and source; the second details input format and return fields. Highly efficient and 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?

Tool is simple (2 params, 1 required, no nested objects) and has no output schema, so the description appropriately covers return fields and input format. This provides sufficient context for an agent to invoke the tool and interpret results.

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% and parameter descriptions already explain the format. The description adds an example ('ethereum:0x...') and clarifies the array semantics, but does not provide significant new meaning beyond the schema.

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 clearly states the tool fetches current USD prices for one or more tokens using DefiLlama's price oracle. It distinguishes itself from sibling tools like market_get_token_history (historical prices) by specifying 'current' and the oracle source.

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?

The description provides clear context (current prices, token identifiers in 'chain:address' format) and implies when to use it. It does not explicitly mention alternatives or exclusions, but it is not misleading and gives enough context for an agent to select it appropriately.

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/Apegurus/web3agent'

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