Skip to main content
Glama

get_coin_price

Read-onlyIdempotent

Fetch the current USD price of any cryptocurrency by ticker symbol or CoinGecko ID. Returns spot price with liquidity confidence score.

Instructions

Fetch the USD price of any well-known cryptocurrency by ticker symbol or CoinGecko ID — no contract address required. Sister tool to get_token_price; use this for non-EVM natives (BTC, LTC, SOL, TRX, XMR, DOGE, etc.) and any asset that doesn't have an EVM ERC-20 representation. Two input modes: (a) symbol — case-insensitive ticker from a curated allowlist (~120 entries covering top market-cap coins, all native chain currencies VaultPilot supports, major LSTs, top stablecoins, top DeFi governance tokens, and high-question-volume memecoins). The allowlist hardcodes the canonical CoinGecko ID per ticker so scam-token collisions can't poison the result. (b) coingeckoId — escape hatch for long-tail assets. Pass the URL slug from coingecko.com/en/coins/. Returns: { symbol, priceUsd, source: "defillama-coingecko", resolvedKey, asOf, confidence }. The confidence field is DefiLlama's 0–1 thin-liquidity score; surface it to the user when it's below 0.9. When the agent sees a portfolio response with priceMissing: true for a non-EVM asset, this is the tool to call. 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
symbolNoTicker symbol from the curated allowlist (~115 entries; case-insensitive). Examples: "BTC", "LTC", "SOL", "DOGE", "USDC", "stETH". The allowlist hardcodes the canonical CoinGecko ID for each symbol so scam tickers can't poison the result. For assets not on the allowlist, use the `coingeckoId` field instead.
coingeckoIdNoCoinGecko ID (the URL slug from coingecko.com/en/coins/<id>). Examples: "litecoin", "bitcoin", "monero". Bypasses the allowlist for long-tail assets. Pass exactly one of `symbol` or `coingeckoId`.
Behavior4/5

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

Annotations already declare readOnly, non-destructive, idempotent, openWorld. Description adds useful context about confidence field and non-predictive nature, but doesn't add new behavioral traits beyond annotations.

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 front-loaded with purpose. Slightly verbose but all content is justified and adds value.

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?

Very complete given complexity: explains two modes, allowlist details, return fields (though no output schema), and agent behavior. No gaps.

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?

Schema has 100% coverage. Description adds meaning: explains two input modes, allowlist, and escape hatch, providing context beyond schema descriptions.

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?

Clearly states it fetches USD price by ticker or CoinGecko ID. Distinguishes from sibling tool `get_token_price` for non-EVM assets.

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 when to use (for non-EVM assets) and when not to (for EVM tokens, use `get_token_price`). Also provides scope (snapshot, not forecast) and agent behavior guidelines.

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