Skip to main content
Glama

iafri x402 APIs

dex_token_price

Read-only

Live cross-DEX token price, 24h volume, liquidity & FDV via DexScreener (?query=SOL). Price $0.01 per call via x402, USDC on Base.

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": {
      "query": "<query>"
    },
    "name": "dex_token_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesToken symbol, name, or contract address (e.g. SOL).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description earns credit for two behavioral facts beyond that: data is live/real-time rather than cached, and each call requires an x402 USDC-on-Base payment. It says nothing about failure behavior for unknown tokens or rate limits, keeping it short of a 4.

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?

Two dense sentences, both front-loaded: the data payload first, then the cost model. Minor redundancy in the query-string notation, which duplicates the schema's example, but nothing else is wasted.

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

Completeness4/5

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

For a single-parameter read tool with no output schema, the definition covers what data comes back, the data provider, and the payment requirement, which is enough to call it correctly. Only error/edge behavior for unresolvable token queries is left unspecified.

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?

With only one parameter at 100% schema coverage, the schema already defines the accepted input as symbol, name, or contract address. The description's '(?query=SOL)' restates the schema example in query-string form rather than adding new meaning.

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?

Names a specific resource and result set: live cross-DEX token price, 24h volume, liquidity and FDV, plus the upstream source (DexScreener). An agent knows exactly what it retrieves, though it does not explicitly contrast itself with nearby lookups like fx_rate.

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?

There is no explicit when-to-use or when-not-to-use statement, so the agent must infer usage from the resource name. The payment note ($0.01 per call via x402) does implicitly signal that this is a paid call to be used deliberately, which is useful context but not routing guidance.

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.

Resources