Skip to main content
Glama

Get Token Price

get_token_price
Read-only

Fetch live USD prices for up to 20 Solana token mints, with unpriced mints returned separately to indicate missing liquidity or routes.

Instructions

Live USD price for up to 20 mints (GET /prices/:mint per mint). A MISSING PRICE IS DATA, not a failure: a mint that cannot be priced has no usable route or liquidity, which is itself the answer to "can this be a basket leg" — no. Mints that could not be priced come back in unpriced; report that, never substitute a zero.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mintsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1967

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare readOnlyHint/openWorldHint; the description adds crucial semantics they cannot: a missing price is data not a failure, unpriced mints are reported separately, and callers must never substitute zero. This directly shapes correct handling of an open-world lookup and is exactly the kind of context the annotations omit.

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-loads the core capability in the first clause, then the behavioral caveat. Every sentence carries meaning, though the emphatic caps-lock and embedded quote are slightly heavier than needed for the informational payload.

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 single-parameter read with no output schema, the description covers the one thing an agent most needs to get right (the unpriced field and non-failure semantics). Auth/rate-limit context is absent but not critical here.

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 0%, so the description must carry the param load. It explains the 20-mint limit and the per-mint GET semantics, but the 'up to 20 mints' limit is already stated in the schema (maxItems) and it never clarifies the expected base58 mint format. Partial compensation only.

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 (get) plus resource (USD token price), with explicit scope (up to 20 mints) and unit (USD). An agent can immediately tell this apart from portfolio/vault/swap siblings, which return different context than a single-mint price lookup.

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 'can this be a basket leg' framing, which hints at when it's relevant, but no alternatives are named (e.g., swap_quote for executable pricing) and no explicit when-not guidance is given. Adequate but leaves routing to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.