Skip to main content
Glama
Ethereum MCP
by ETHCF

get_coin_prices

Retrieves current token prices via DefiLlama for comma-separated chain:address identifiers, enabling valuation of Ethereum and cross-chain assets.

Instructions

Get current prices for tokens using DefiLlama. Format: "chain:address" (e.g., "ethereum:0x..." or "coingecko:bitcoin")

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "coins": "<coins>"
    },
    "name": "get_coin_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
coinsYesComma-separated list of coins in format "chain:address" (e.g., "ethereum:0x6b175474e89094c44da98b954eedeac495271d0f,coingecko:bitcoin")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the disclosure burden. Saying it uses DefiLlama and returns "current" prices gives some behavioral context (source, freshness), but it omits the quoting currency (presumably USD), behavior for unknown/invalid coin identifiers, and whether the call is batched per-request or per-coin.

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?

Two short sentences, front-loaded with the action and source, with the format hint immediately followable. Minor waste from duplicating the format example already present in the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple single-parameter lookup with no output schema and no annotations, the description should clarify the return shape (price per coin, currency, units). It is callable as written but leaves the agent to discover the response structure and error behavior empirically.

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% and the schema already documents the "chain:address" format with an example, so the description largely restates it. It adds only marginal value by naming the upstream provider and giving a second example (coingecko:bitcoin), which hints at multi-provider identifier syntax.

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 current prices for tokens") and names the data source, DefiLlama. The word "current" implicitly separates it from get_coin_prices_historical and the various chart tools, but it never names or explicitly contrasts with any sibling.

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

Usage Guidelines3/5

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

"Current prices" implies the usage context (spot pricing, not historical), which is enough to pick this over the historical/chart siblings by inference. There is no explicit when-not guidance, no mention of batch limits, and no statement of what to do when a price is unavailable for a coin.

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

Deploy Server

Other Tools