Skip to main content
Glama

ScorpTech x402 Tools

Token Price

token_price
Read-onlyIdempotent

Use this when you need the current USD price of one or more crypto tokens. Live USD price, 24h % change, confidence and source timestamp for up to 10 tokens per call: tickers (BTC, ETH, SOL, PEPE), CoinGecko ids (bitcoin) or chain:address on eth, base, arbitrum, optimism, polygon, bsc and solana (base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913). Batch, cached ~60 s, one fast call. Unknown ids come back as found:false instead of failing the batch. Returns JSON with: ok, data, sources, fetched_at, cache_age_s. Price: $0.005 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/token-price

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
idsYesup to 10 comma-separated tickers, CoinGecko ids (or coingecko:<id>) or chain:address (eth|base|arbitrum|optimism|polygon|bsc|solana). Aliases: id, symbols, tokens

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare it a safe, idempotent read; the description goes well beyond by disclosing the ~60 s cache window, per-call cost ($0.005 USDC via x402 on Base or Solana), partial-failure semantics (unknown ids return found:false rather than failing the batch), and the return envelope keys. That is exactly the operational context annotations cannot carry.

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?

The trigger condition and identifier formats are front-loaded, and each sentence carries distinct information (formats, caching, error behavior, price, alternate endpoint). It is dense to the point of reading like a spec sheet, but no sentence is filler.

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?

With no output schema, the description still enumerates the response fields (ok, data, sources, fetched_at, cache_age_s), plus cost, caching, failure mode and a non-MCP HTTPS equivalent. For a single-parameter read tool, an agent has everything needed to call it and interpret the result.

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 schema already documents the single ids parameter with its aliases and chain list, so the description is not strictly required to compensate. It still reinforces value by giving concrete examples (BTC, ETH, base:0x8335...bA02913) and the 10-token cap in context, adding modest meaning beyond the 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?

The description names a specific verb and resource – 'current USD price of one or more crypto tokens' – and immediately enumerates the accepted identifier forms (ticker, CoinGecko id, chain:address). An agent can distinguish this from siblings like liquidation_price or token_units without opening the schema.

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?

'Use this when you need the current USD price...' gives an explicit trigger condition and notes that batching up to 10 tokens is the intended pattern over repeated single calls. It stops short of naming an alternative tool or stating when not to use it, so it does not reach a 5.

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