Skip to main content
Glama

token_price

Live token price and market data for one or more coin ids or tickers, for agents that need a USD number before sizing a position. Price $0.04 USDC, charged from your prepaid credits. A key is required: without one the call is refused, because the upstream purchase is real.

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": "token_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
vsNoQuote currency, default usd
idsYesComma-separated coin ids or tickers

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?

With no annotations supplied, the description carries the full behavioral burden and does so well: it discloses cost ($0.04 USDC), the billing source (prepaid credits), the authentication requirement and failure mode (call refused without a key), and that the upstream purchase is real. This is exactly the context an agent needs before invoking a paid call.

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?

Three short sentences, front-loaded with what the tool returns and why, then cost, then the auth precondition. No filler; the closing 'because the upstream purchase is real' earns its place by explaining why the key is mandatory.

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?

A simple two-parameter read tool with full schema coverage and no output schema, and the description covers purpose, cost, and auth. What it omits is the shape of the returned market data and behavior on unknown tickers or upstream failure beyond the missing-key case.

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 description coverage is 100%, so both parameters are already documented, and the description adds only the notion of accepting multiple ids/tickers. It says nothing about the 'vs' quote-currency parameter or the comma-separated format beyond what the schema states, so baseline 3 applies.

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?

The description states a specific resource (live token price and market data) and input shape (one or more coin ids or tickers), plus the concrete consumer goal of getting a 'USD number before sizing a position'. It is clearly distinct from siblings like token_safety or trending_coins, though it never names an alternative explicitly.

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?

It gives a clear use context ('agents that need a USD number before sizing a position') and a hard precondition (an API key is required or the call is refused). It does not say when NOT to use it or which sibling to pick instead, so it stops short of full routing guidance.

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