Skip to main content
Glama

Crypto price

crypto_price
Read-onlyIdempotent

Current USD price and 24-hour change for up to 20 crypto tokens in one call: symbols (btc, eth, sol), CoinGecko ids (coingecko:bitcoin) or contract addresses on any chain (base:0x..., solana:), from DefiLlama's aggregated prices. Costs $0.002 USDC on Base via x402.

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": {
      "tokens": "<tokens>"
    },
    "name": "crypto_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokensYesComma-separated symbols, coingecko:<id> or chain:address

Output Schema

NameRequiredDescriptionDefault
pricesNoarray
sourceNostring, e.g. "DefiLlama (aggregated from CoinGecko and onchain DEX pools)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "prices": {
      +      "description": "array"
      +    },
      +    "source": {
      +      "description": "string, e.g. \"DefiLlama (aggregated from CoinGecko and onchain DEX pools)"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, openWorld, idempotent and non-destructive, so the safety profile is covered. The description adds genuinely non-obvious behavior: the call costs $0.002 USDC on Base via x402, the prices come from DefiLlama aggregation, and at most 20 tokens are accepted per call. It does not say what happens for unknown/unsupported tokens, which prevents a 5.

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?

A single front-loaded sentence carrying payload shape, accepted input formats, batching limit, provenance and cost, with no filler. Every clause earns its place.

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

Completeness4/5

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

With only one parameter at full schema coverage and an output schema present, return-value explanation is unnecessary, and the description covers inputs, source, batch limit and the payment requirement. The remaining gap is error behavior for unresolved symbols/addresses.

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% and the description still adds value: it enumerates the three accepted token encodings and gives concrete examples (btc, coingecko:bitcoin, base:0x..., solana:<mint>) that the schema's terse comma-separated note does not illustrate. The 20-token cap is also only documented here.

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?

Specific verb+resource: current USD price and 24h change, with a stated batch ceiling of 20 tokens and the underlying data source (DefiLlama). It does not name a sibling (e.g. crypto_candles for history), so differentiation is implied rather than stated, which keeps it just short of a 5.

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?

Usage is implied by the wording 'current ... in one call', and the 20-token batch ceiling tells the agent when batching is appropriate. There is no explicit when-not guidance or named alternative for historical/time-series data, so an agent must infer that crypto_candles covers that case.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources