Skip to main content
Glama

get_token_price

Fetch the price of an ERC20 token on Abstract via Dexscreener by supplying its contract address, so AI agents can evaluate token value.

Instructions

Fetch token price on Abstract via Dexscreener

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

Input Schema

NameRequiredDescriptionDefault
tokenAddressYesERC20 token address on Abstract (0x...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.2

TDQS

B3.3/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 behavioral burden, and it discloses only the chain and third-party source. It says nothing about freshness/staleness of the quote, currency denomination, response shape, or behavior for tokens with no Dexscreener liquidity or an unsupported address — all of which matter for a price oracle call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short, front-loaded sentence with the action first and the chain/source qualifiers after. Nothing is padded or restated.

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 one-parameter read tool with a fully documented schema this covers the minimum, but with no output schema and no annotations an agent still cannot tell what a successful response looks like or how failure (unlisted token, rate limit) is signalled. A sentence on return value or error behavior would close the 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?

The single parameter has 100% schema description coverage ("ERC20 token address on Abstract (0x...)"), so the baseline is 3. The description's mention of "on Abstract" is redundant with the schema and adds no format, checksum, or validation detail beyond it.

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 ("Fetch token price") plus the chain (Abstract) and the upstream data source (Dexscreener). This naturally separates it from siblings like get_token_balance and get_token_info, which return holdings and metadata rather than a market price, though the description never explicitly names those alternatives.

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 only implied: an agent can infer it should call this when it needs a market price rather than a balance or metadata. There is no explicit when-to-use statement, no exclusions, and no note about what to do if Dexscreener has no listing for the token.

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