Skip to main content
Glama
Ethereum MCP
by ETHCF

smart_get_price

Fetches token prices with automatic fallbacks between CoinGecko and DefiLlama, so queries can still return a price when one source fails.

Instructions

Get price for any token with automatic fallbacks between CoinGecko and DefiLlama. More reliable than single-source tools.

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": {
      "token": "<token>"
    },
    "name": "smart_get_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoChain for contract addresses (default: ethereum)ethereum
tokenYesToken name (e.g., "bitcoin", "ethereum") or contract address (0x...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add genuine behavioral context: results come from a multi-source fallback chain, so a stale or failed primary source is handled internally. It omits other traits an agent would want — latency implications of trying two APIs, caching, rate limits, and what unit/currency the price is returned in.

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 immediately followed by the differentiator. The second sentence is close to a marketing claim but does double duty as selection guidance, so little is wasted.

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 two-parameter read tool this is close to adequate, but with no output schema and no annotations the description never indicates the shape of the result — quote currency, whether a source is reported, or behavior when both sources fail. Those are the remaining gaps an agent would need filled.

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 both parameters (token, chain) are already documented including the contract-address form and the ethereum default. The description adds only the scope claim "any token", which is consistent with the schema rather than expanding it, so this sits just above the baseline-3 case.

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 price for any token") plus the mechanism (automatic fallbacks between CoinGecko and DefiLlama). That mechanism implicitly separates it from single-source siblings like get_token_price or get_eth_price, though no sibling is named outright.

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?

"More reliable than single-source tools" hints that this is the preferred choice over the single-source price tools, but the guidance is only implied. There is no explicit when-to-use/when-not statement, no mention of when a plain single-source call would be preferable (e.g., latency), and no named alternative.

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