Skip to main content
Glama

Beggar Bot

uniswap_v2_pair

Uniswap v2 pair on Ethereum/Base by tokens or address: reserves, both prices, LP supply, last update. Paid: $0.02 USDC via x402.

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": "uniswap_v2_pair"
  }
}

Input Schema

NameRequiredDescriptionDefault
pairNopair
chainNochain
token_aNotoken_a
token_bNotoken_b

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose two real behavioral facts the schema cannot: the tool is paid ($0.02 USDC via x402) and it returns reserves, both prices, LP supply, and last update time. It omits what happens when the pair is not found, which chain is assumed by default, whether token_a/token_b ordering matters, and how the x402 payment flow is triggered.

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?

Two sentences, front-loaded with the resource and lookup key, then the returned fields, then the payment term. No filler; the colon-delimited field list is dense and readable.

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 four-parameter, no-output-schema read tool, the description covers the resource, chains, lookup modes, and return contents, which is most of what an agent needs. The gap is behavior at the edges: no defaults, no not-found handling, and no guidance when zero parameters are supplied despite all four being optional.

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 nominally 100%, but each property description is a tautology ('pair': 'pair', 'chain': 'chain'), so the schema adds almost no meaning. The description compensates partially by establishing that lookup can be done either by pair address or by the token_a/token_b pair, and that chain is limited to Ethereum/Base. It does not explain how the two modes interact or which takes precedence when both are supplied.

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 names a specific resource (Uniswap v2 pair), the chains it covers (Ethereum/Base), the two lookup modes (by tokens or by address), and the returned fields (reserves, both prices, LP supply, last update). An agent can tell it is a read/lookup tool for a single pair. It does not explicitly contrast itself with siblings like uniswap_v2_lp or uniswap_v2_quote, so it falls short of a 5.

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: 'by tokens or address' hints at two mutually exclusive input modes, and the chain restriction to Ethereum/Base is useful context. There is no statement of when to prefer this over uniswap_v2_quote or uniswap_v2_lp, no prerequisites, and no exclusions.

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.