Skip to main content
Glama

crypto_price

Retrieves the current USD price of a cryptocurrency by CoinGecko or DefiLlama ID. Useful for agents needing spot prices for portfolio valuation or before on-chain actions.

Instructions

[costs $0.005 USDC per call] Get the current USD price of a cryptocurrency by ID. Live cryptocurrency price API: current USD price for any coin by CoinGecko id ('bitcoin', 'ethereum') or DefiLlama id ('coingecko:bitcoin', 'chain:address' for tokens by contract address). Sourced from DefiLlama's aggregated market feed with the source's own confidence score (0-1) and the unix timestamp of the observation. Ideal for agents needing spot prices, portfolio valuation, or price checks before on-chain actions. Cached up to 60 seconds; freshness in meta.fetchedAt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
coinIdYesCoin identifier: a CoinGecko id ('bitcoin') or DefiLlama id ('coingecko:bitcoin', '<chain>:<address>').
Behavior5/5

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

Discloses cost, caching behavior, data source with confidence score and timestamp. No annotations provided, so description carries full burden and does so well.

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?

Concise, front-loaded with cost and action, every sentence adds value. No repetition or unnecessary detail.

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?

Given one parameter and no output schema, description explains output attributes (confidence score, timestamp) and caching, making it complete for the tool's complexity.

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 coverage is 100% but description adds value with examples of acceptable formats (CoinGecko id, DefiLlama id with chain:address), going beyond 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?

Description clearly states it gets the current USD price of a cryptocurrency by ID. It specifies sources and use cases, and distinguishes from siblings like 'crypto_gas' and 'defi_tvl'.

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?

Provides explicit use cases (spot prices, portfolio valuation, price checks) and cost warning. Does not explicitly state when not to use or name sibling alternatives, but context is clear.

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/Marysbrain/x402-gateway-mcp'

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