Skip to main content
Glama

AgentLogic MCP Server

token_price

Read a token's spot price in USD, computed on-chain from Uniswap V2 and V3 liquidity on the token's chain (no external price API): the price, the pair or pool used, and its reserves as a depth signal. The deepest usable pool wins. A token with no usable pool returns found: false rather than a fabricated price. The response labels the source as on-chain DEX spot and notes that spot prices move and thin pools are manipulable. Works on base and ethereum, and on polygon, arbitrum and optimism where canonical Uniswap pools exist. Price: $0.003 USDC on Base via x402.

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": {
      "token": "<token>"
    },
    "name": "token_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoChain to read: base (default), ethereum, polygon, arbitrum or optimism.
tokenYesERC-20 token contract address to price.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses the data source (Uniswap V2/V3, no external price API), the pool-selection rule ('the deepest usable pool wins'), the failure mode ('found: false rather than a fabricated price'), the return fields (price, pool used, reserves), and the $0.003 USDC x402 cost. This is materially more behavioral detail than a caller could infer from the name or schema.

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?

The description is front-loaded with the core action and method, then layers failure behavior, caveats, chain support and price. It runs long for two parameters, but nearly every sentence carries distinct information; only the manipulability caveat is borderline redundant since it describes the response label.

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?

For a two-parameter read with no output schema and no annotations, the description covers source, selection logic, return shape, no-data behavior, chain coverage and cost. An agent has everything needed to decide and call it correctly without further documentation.

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%, with chain default and token address already documented in the schema. The description's chain list roughly duplicates the schema's enum of supported chains and adds no syntax or format detail beyond it, so the baseline 3 applies.

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?

The description opens with a specific verb+resource ('Read a token's spot price in USD') and immediately scopes the method ('computed on-chain from Uniswap V2 and V3 liquidity'). That method statement implicitly separates it from siblings such as token_info (metadata) and token_balance (holdings), so an agent can tell which tool answers a price question.

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 context is present but implicit: supported chains are listed, the pricing basis is stated, and cost is disclosed. There is no explicit 'use this instead of X' or 'when not to use' guidance for the price-adjacent siblings, so the agent must infer selection from the resource name and description.

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.