Skip to main content
Glama

Get token price

get_token_price
Read-onlyIdempotent

USD spot price for a token, by symbol (e.g. ETH, SUI) or by token address + chain (one of 1 Ethereum, 10 Optimism, 56 BNB Chain, 143 Monad, 8453 Base, 42161 Arbitrum, 43114 Avalanche, sui_mainnet Sui): a contract address on EVM chains, a coin type such as 0x2::sui::SUI on Sui.

Input Schema

NameRequiredDescriptionDefault
chainNoChain id: 1 Ethereum, 10 Optimism, 56 BNB Chain, 143 Monad, 8453 Base, 42161 Arbitrum, 43114 Avalanche, sui_mainnet Sui
symbolNo
addressNo

Output Schema

NameRequiredDescriptionDefault
priceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / chain / description
      Previous value: -"Chain id: 1 Ethereum, 56 BNB Chain, 8453 Base, 42161 Arbitrum, sui_mainnet Sui"New value: +"Chain id: 1 Ethereum, 10 Optimism, 56 BNB Chain, 143 Monad, 8453 Base, 42161 Arbitrum, 43114 Avalanche, sui_mainnet Sui"
    • changedInput schema / properties / chain / oneOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "1"
      -    ],
      -    "title": "Ethereum",
      -    "type": "string"
      -  },
      -  {
      -    "enum": [
      -      "56"
      -    ],
      -    "title": "BNB Chain",
      -    "type": "string"
      -  },
      -  {
      -    "enum": [
      -      "8453"
      -    ],
      -    "title": "Base",
      -    "type": "string"
      -  },
      -  {
      -    "enum": [
      -      "42161"
      -    ],
      -    "title": "Arbitrum",
      -    "type": "string"
      -  },
      -  {
      -    "enum": [
      -      "sui_mainnet"
      -    ],
      -    "title": "Sui",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "1"
      +    ],
      +    "title": "Ethereum",
      +    "type": "string"
      +  },
      +  {
      +    "enum": [
      +      "10"
      +    ],
      +    "title": "Optimism",
      +    "type": "string"
      +  },
      +  {
      +    "enum": [
      +      "56"
      +    ],
      +    "title": "BNB Chain",
      +    "type": "string"
      +  },
      +  {
      +    "enum": [
      +      "143"
      +    ],
      +    "title": "Monad",
      +    "type": "string"
      +  },
      +  {
      +    "enum": [
      +      "8453"
      +    ],
      +    "title": "Base",
      +    "type": "string"
      +  },
      +  {
      +    "enum": [
      +      "42161"
      +    ],
      +    "title": "Arbitrum",
      +    "type": "string"
      +  },
      +  {
      +    "enum": [
      +      "43114"
      +    ],
      +    "title": "Avalanche",
      +    "type": "string"
      +  },
      +  {
      +    "enum": [
      +      "sui_mainnet"
      +    ],
      +    "title": "Sui",
      +    "type": "string"
      +  }
      +]
  2. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds that the price is a USD spot quote and specifies the accepted address formats per chain (EVM contract vs Sui coin type), but says nothing about behavior on unknown symbols, missing params, or stale/unavailable pricing.

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, and the chain-id enumeration earns its place because it maps to an opaque numeric enum. The single long sentence with nested parentheticals is dense but not padded.

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?

An output schema exists, so return values need no explanation; given that, the description covers both lookup modes, the currency, and the two address syntaxes across chain families. The only residual gap is the simultaneous symbol+address case, which is minor for a read-only price lookup.

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 only 33% (symbol and address are undescribed in the schema), and the description compensates well: it gives symbol examples (ETH, SUI) and explains that address means an EVM contract address or a Sui coin type like 0x2::sui::SUI. It does not clarify the interaction rule when both symbol and address are passed.

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?

States a specific verb+resource+scope: 'USD spot price for a token'. The word 'spot' implicitly separates it from the historical sibling get_token_history_price, but neither that tool nor any other sibling is named, so the differentiation is left for the agent to infer.

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 by the two lookup modes (symbol, or address+chain), but there is no explicit 'use this when', no exclusion of get_token_history_price, and no statement about what to do if neither symbol nor address is supplied despite zero required parameters.

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.