Skip to main content
Glama

Token USD Price

token_price
Read-onlyIdempotent

Use for a verifiable USD price and 24h change of a token (symbol, 0x address, or Solana mint). Not a rug, honeypot, or safety report — use rug_check for the full 0-100 safety report or honeypot_check for sellability. $0.001 per call via x402 on GET /price?token=. No free daily check. If a symbol or 0x address exists on more than one chain, pass chain (ethereum, base, arbitrum, polygon, solana); Solana mints use solana. Unknown or unpriced tokens return an error and are not charged. Invalid or failed calls are not charged. With no payment, the tool returns error=payment_required and the x402 Payment Required challenge for the HTTP route; pay that USDC amount, then retry the URL.

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": {
      "token": "<token>"
    },
    "name": "token_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNooptional: ethereum, base, arbitrum, polygon, solana. Pass it when the identifier exists on more than one chain; Solana mints use solana
tokenYesSymbol, 0x address or Solana mint

Output Schema

NameRequiredDescriptionDefault
chainNo
errorNopayment_required, bad_input, or a failure code
tokenNo
messageNo
payWithNox402 payment requirement for the HTTP route, plus credit-key instructions when those apply
priceUsdNoUSDC price to pay when error is payment_required
refundedNotrue when a credit was taken and then returned because the call failed
change24hPctNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / chain / enum
      Added value: +[
      +  "ethereum",
      +  "base",
      +  "arbitrum",
      +  "polygon",
      +  "solana"
      +]
    • addedInput schema / properties / chain / examples
      Added value: +[
      +  "solana",
      +  "base"
      +]
    • addedInput schema / properties / token / examples
      Added value: +[
      +  "JUP",
      +  "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / chain / description
      Previous value: -"optional: ethereum, base, arbitrum, polygon, solana"New value: +"optional: ethereum, base, arbitrum, polygon, solana. Pass it when the identifier exists on more than one chain; Solana mints use solana"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "Success fields on a paid/authorized call, or error/payment_required fields. Additional properties may be present.",
      +  "properties": {
      +    "chain": {
      +      "type": "string"
      +    },
      +    "change24hPct": {
      +      "type": "number"
      +    },
      +    "error": {
      +      "description": "payment_required, bad_input, or a failure code",
      +      "type": "string"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "payWith": {
      +      "description": "x402 payment requirement for the HTTP route, plus credit-key instructions when those apply",
      +      "type": "object"
      +    },
      +    "priceUsd": {
      +      "description": "USDC price to pay when error is payment_required"
      +    },
      +    "refunded": {
      +      "description": "true when a credit was taken and then returned because the call failed",
      +      "type": "boolean"
      +    },
      +    "token": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [],
      +  "type": "object"
      +}
  3. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already establish readOnly, idempotent, open-world, non-destructive behavior, and the description goes further by disclosing cost ($0.001/call via x402), the absence of a free tier, and the not-charged conditions for unknown or failed calls. It also documents the payment_required challenge flow and retry path, which is exactly the kind of context annotations can't carry. However, the description does not state the shape of a successful response or its freshness/latency characteristics, so a 5 is not warranted rather than a 3; given the depth of the payment and billing disclosure, 4 is the fair mark, adjusted to 4.

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?

Purpose is front-loaded and the negative differentiation follows immediately. The trailing payment-challenge mechanics run long and read like error-handling documentation rather than invocation guidance, but nearly every clause carries real information.

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?

For a paid, open-world lookup with an output schema, the definition covers pricing, payment failure, chain ambiguity, and uncharged error cases. The output schema carries the return-value burden, so the only remaining gap is response freshness or latency, which is minor.

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 the schema already documents both parameters, and the description's chain guidance largely restates the schema's own enum description. It adds only a small amount of meaning, namely the ambiguity rule for identifiers existing on multiple chains, which the schema hints at but does not fully explain.

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?

States a specific verb and resource ("verifiable USD price and 24h change of a token") and enumerates the accepted identifier forms. It explicitly distinguishes itself from rug_check and honeypot_check, so an agent can route correctly without opening another schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use and when-NOT-to-use guidance, naming the two sibling alternatives and the condition that selects them (safety report vs sellability). It also states the chain-selection rule and when the chain parameter is needed, leaving nothing to inference.

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.