Skip to main content
Glama

get_token_price

Retrieve current price data for a specific token by contract ID, enabling agents to check token values on Voi before swaps or liquidity actions.

Instructions

Get current price data for a specific token.

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": {
      "tokenId": "<tokenId>"
    },
    "name": "get_token_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenIdYesToken contract ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure and does not meet it. It says nothing about price freshness or staleness, quote currency, which chain/market the price is drawn from, or what happens for an unknown tokenId — all material facts for a price lookup.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity comes at the cost of the missing detail noted under completeness rather than from tight editing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema and no annotations, so the description is the only place to explain what 'price data' contains and how current it is, and it does neither. For a one-parameter read tool this could be adequate, but the undefined return payload and price provenance leave real gaps.

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% for the single parameter (tokenId, 'Token contract ID'), so the schema already documents the input; the description adds only the phrase 'for a specific token,' which restates it. Baseline 3 is appropriate given the schema does the heavy lifting.

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 verb and resource: 'Get current price data for a specific token,' which is clearly a read of spot price for one token. It does not, however, distinguish itself from siblings such as get_price_aggregated, get_price_history, or get_prices, leaving the agent to infer the boundary from the name alone.

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

Usage Guidelines2/5

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

The word 'current' weakly implies this is the spot/latest-price call rather than historical, but there is no explicit when-to-use statement, no exclusion of the aggregated or history variants, and no stated prerequisites. An agent picking among six price-related siblings gets no routing guidance.

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