Skip to main content
Glama
dex-cex-spread

dex-cex-spread

by tordagaz-ops

Resolve a token to its contract

resolve_token
Read-only

Resolves a ticker or contract address to verified DEX pools and confirms whether the contract matches the exchange-listed asset, refusing ambiguous matches instead of reporting unverified spreads.

Instructions

Given a ticker such as PEPE or a contract address, find the pools that hold it and decide whether that contract is the same asset the exchanges list. Pinned addresses are proof; without a pin the only evidence is that the pool trades within 25% of the centralised price, which is reported as weaker evidence. When no candidate agrees, the answer is a refusal listing what the copycats quote, so the reason is auditable instead of silently wrong.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "resolve_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoChain to look on, for example ethereum, solana, base, bsc, arbitrum. Guessed from the address shape when omitted.
queryNoTicker (PEPE) or contract address (0x… / a Solana mint).
candidatesNoHow many alternative contracts to return when a ticker matches several tokens.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnly and openWorld; the description adds the substantive behavior an agent needs — pinned addresses count as proof, price-proximity is graded as weaker evidence, and an unresolved query returns an auditable refusal listing copycat quotes rather than a silent guess. That is exactly the kind of evidence-quality and failure-mode context annotations cannot convey.

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?

Three sentences, front-loaded with the input and core action, then evidence grading, then the refusal case. Dense and efficient, though the middle sentence about the 25% band packs enough clauses to require a re-read.

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 not be explained, and the definition still covers the decisive aspects: input forms, evidence hierarchy, and the no-match outcome. With zero required parameters and all defaults documented in the schema, nothing an agent needs to call this correctly is missing.

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 coverage is 100%, so chain, query, and candidates are already documented including the address-shape guessing rule. The description reinforces the ticker-vs-address duality of query and hints that multiple candidate contracts may be surfaced, but adds no threshold or format detail beyond the schema — baseline 3.

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?

Names a specific verb and resource ('resolve a token to its contract') and states the two-step result: find the pools holding the asset and decide whether the contract matches what exchanges list. None of the siblings (compare_price, list_venues, pool_liquidity, scan_spreads) do identity resolution, and the description makes that distinction implicit through the ticker-to-contract framing.

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

Usage Guidelines4/5

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

Gives clear operating context: ticker or address input, pool discovery first, then a match decision with a 25% price-band criterion and a refusal path when nothing agrees. It does not explicitly name a sibling or say when to prefer compare_price or pool_liquidity instead, so the routing is inferable but not spelled out.

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