Skip to main content
Glama

token_price

Coarse spot price preview for a token (symbol like "AERO" or Base contract address): price rounded to 2 significant figures, 24h direction, and a liquidity band. Exact prices are a paid lookup. Source: DexScreener best Base pair.

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
tokenYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the precision limit (2 significant figures), that it is a coarse preview rather than an exact quote, that exact pricing is a separate paid lookup, and the upstream source (DexScreener best Base pair). It does not cover failure behavior for unknown symbols or whether results are cached.

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?

Front-loaded with the core purpose, then precision, then the paid-lookup caveat and source in short clauses. Every sentence carries information, though the enumeration of return fields (rounded price, 24h direction, liquidity band) is partly redundant given an output schema exists.

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 simple one-parameter tool with an output schema, the description supplies what structured fields do not: accepted input formats, precision limits, the paid-lookup boundary, and the data source. Only edge-case behavior (invalid token, no pair found) is left unaddressed.

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 0% — the single "token" parameter is completely undocumented in the schema — but the description compensates by stating it accepts a symbol like "AERO" or a Base contract address. That is the key ambiguity for this parameter and it is resolved in the description.

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 gives a specific verb and resource ("Coarse spot price preview for a token") plus the precision level and data source, so an agent knows exactly what it returns. It does not explicitly differentiate itself from plausible siblings such as token_price_change or token_price_eth, which would be needed for 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 Guidelines4/5

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

"Coarse ... preview" and "Exact prices are a paid lookup" give clear context for when this tool is the right free/lightweight choice, and the accepted input forms (symbol or Base contract address) are spelled out. It stops short of naming an alternative tool for the exact-price case, so no explicit exclusions.

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