Skip to main content
Glama

Aigentra x402 API

crypto_price

Read-only

Live crypto token prices in USD (and optional IDR) for up to 20 tokens per call. Accepts CoinGecko ids (bitcoin,ethereum,solana) or chain:contract (base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913). Price, 24h change, confidence, timestamp. Source: DefiLlama + ECB FX. No API key, no account. Price $0.002 USDC per call (x402, Base).

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

Input Schema

NameRequiredDescriptionDefault
idrNoAlso return prices in Indonesian Rupiah
idsYesComma-separated CoinGecko ids or chain:address pairs, max 20

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint, the description discloses data provenance (DefiLlama + ECB FX), that prices are live, the exact returned fields (price, 24h change, confidence, timestamp), and — critically — that calls are paid at $0.002 USDC via x402 on Base with no account required. Payment and auth posture are exactly the behavioral facts an agent needs before invoking.

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?

Six short, front-loaded clauses with no filler: scope first, then accepted formats, then return fields, then source, then auth/payment. Every sentence carries distinct information an agent would otherwise have to guess.

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?

For a two-parameter read-only price tool with annotations covering safety and schema covering both inputs, the description supplies the remaining essentials: return fields, refresh/source, limits, and paid-call mechanics. No output schema is needed since the returned fields are enumerated.

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 coverage is 100%, so both parameters are already documented in the schema, which sets the baseline at 3. The description adds a concrete chain:address example (base:0x8335…) and reiterates the 20-token cap, but adds no IDR-specific semantics beyond what the schema states.

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+resource: live crypto token prices in USD (optionally IDR) for up to 20 tokens per call, with two accepted identifier formats. It is unambiguous what the tool returns, though it never explicitly distinguishes itself from the sibling fx_idr or other price-like tools.

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 through the accepted identifier formats and the 'max 20' limit, and the no-API-key/cost note helps an agent decide it can call this. There is no explicit when-to-use/when-not guidance or named alternative for fiat-only conversions (fx_idr).

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.