Skip to main content
Glama
Ethereum MCP
by ETHCF

get_token_price_by_contract

Fetches the token price for a given contract address and platform ID, enabling cross-chain token valuation and lookup.

Instructions

Get token price by contract address on a specific platform

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": {
      "platform": "<platform>",
      "address": "<address>"
    },
    "name": "get_token_price_by_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYesToken contract address
platformYesPlatform ID (e.g., 'ethereum', 'polygon-pos', 'arbitrum-one')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/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 disclosure burden, yet it says nothing about quote currency, price freshness, whether a missing pool yields an error or a null, or whether the call is cached or rate limited. Only the read nature is inferable from the verb 'get'.

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. It is efficient, though the terseness comes at the cost of the behavioral detail noted elsewhere.

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

Completeness3/5

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

For a simple two-parameter read tool with a fully described schema, the definition is serviceable, but an agent still cannot tell what the returned price is denominated in or how failures are surfaced, and there is no output schema to fill that gap.

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%, including an example platform ID list, so the schema already documents both parameters. The description adds only the suggestion that platform and address are paired, which is baseline-level value.

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 and resource: retrieve a token price keyed by contract address, scoped to a platform. It implicitly differentiates itself from id-based lookup siblings like get_token_price, but never names an alternative explicitly.

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?

The phrase 'by contract address on a specific platform' implies the case this tool fits (contract+chain, rather than a coin id), but there is no explicit when-to-use/when-not guidance or reference to the near-identical siblings such as get_coin_by_contract or get_token_price.

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

Deploy Server

Other Tools