Skip to main content
Glama

Sage Agent x402 Tools

defi_base_dex_arb

Read-only

Scans live spot DEX liquidity pools across Base, Solana, Ethereum, Arbitrum, or BSC to detect cross-pool price spreads (in bps) and trending high-volume pools. Use for spot DEX arbitrage opportunities; use crypto_funding_arb for perpetual futures funding carry APY or crypto_token_intel for single-token summary metrics. Read-only, stateless; costs $0.010 Base USDC via x402 (unpaid calls return a v2 quote challenge without charging; invalid inputs return 400 uncharged).

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

Input Schema

NameRequiredDescriptionDefault
chainNoTarget blockchain to scan spot DEX pools on. Defaults to 'base'.base
tokenNoOptional token contract address or ticker symbol (e.g. 'AERO' or '0x9401...'). Omit to scan chain-wide trending pools for cross-pool spreads.
min_liquidity_usdNoMinimum USD pool liquidity filter to exclude illiquid dust pools. Must be >= 1000; defaults to 10000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing payment mechanics ($0.010 Base USDC via x402), the unpaid-call behavior (returns a v2 quote challenge without charging), and error handling (invalid inputs return 400 uncharged). It also states the tool is read-only and stateless, which complements rather than merely repeats readOnlyHint and idempotentHint=false. For a paid, open-world scanner, this is the information an agent actually needs before calling.

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?

Three sentences, each front-loaded with its most important clause: capability first, sibling routing second, cost/error behavior third. No filler and no repetition of the title or schema content.

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?

With no output schema, the description covers what matters for a paid scanner: cost, payment flow, statelessness, and error codes, plus a hint at return content (spreads in bps, trending pools). It stops short of describing the response shape or pagination/limit behavior, which is the only remaining gap for a zero-required-parameter tool with full schema coverage.

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%, so enum values, defaults, and the min_liquidity_usd floor are already fully documented. The description's only added meaning is the omit-token behavior, which largely restates the schema's own note. Baseline 3 is appropriate since the schema does the heavy lifting.

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?

States a specific verb (scans) and resource (live spot DEX liquidity pools) with explicit scope (five named chains) and the concrete outputs it detects: cross-pool price spreads in bps and trending high-volume pools. It immediately distinguishes itself from crypto_funding_arb and crypto_token_intel by naming them, so an agent can route without opening any schema.

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

Usage Guidelines5/5

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

Explicitly says when to use it (spot DEX arbitrage opportunities) and names two alternatives with the exact conditions that select them (perpetual futures funding carry APY, single-token summary metrics). The token parameter note also clarifies the two operating modes: single-token spread scan versus chain-wide trending scan.

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.