Skip to main content
Glama

AgentData — crypto market data with a checkable record

get_dex_vs_cex

On-chain price (WBTC, WETH, wSOL via DefiLlama) against MEXC spot for BTC, ETH and SOL, with spread, age of the on-chain price and confidence ($0.005 USDC). Use to check that on-chain and exchange prices agree before trading on-chain.

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

Input Schema

NameRequiredDescriptionDefault
paymentNoOptional. Base64 x402 payment payload you signed yourself (ERC-3009 TransferWithAuthorization, USDC on Base). Call without it once to receive the payment requirements, sign those, then call again with this argument. This server forwards the payload and never holds a key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / payment
      Added value: +{
      +  "description": "Optional. Base64 x402 payment payload you signed yourself (ERC-3009 TransferWithAuthorization, USDC on Base). Call without it once to receive the payment requirements, sign those, then call again with this argument. This server forwards the payload and never holds a key.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare openWorldHint and non-idempotency, and the description adds genuinely new context: the data provenance (DefiLlama vs MEXC), the fact that an on-chain price has an 'age', and a $0.005 USDC cost. The payment/auth mechanics are left to the schema rather than the description, but nothing here conflicts with the annotations (readOnlyHint=false is consistent with a paid, external-data call).

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 sentences, front-loaded with the comparison and followed by the usage cue. Slightly dense parentheticals, and the trailing '($0.005 USDC)' is ambiguously attached to 'confidence', which costs a point.

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?

No output schema exists, and the description does name the key returned fields (spread, price age, confidence), which is the main thing an agent needs. The two-call payment handshake is only in the parameter schema, so the description alone would not fully prepare an agent for that flow.

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?

Single parameter with 100% schema description coverage, so the schema already explains the x402 payment payload, signing flow and that the server holds no key. The description adds only the $0.005 USDC price point, not the retry/sign sequence, which is baseline-appropriate for full schema coverage.

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 comparison: on-chain price (WBTC, WETH, wSOL via DefiLlama) versus MEXC spot for BTC, ETH and SOL, plus the derived fields returned. The asset mapping and named data sources make it clearly distinct from generic siblings like get_crypto_prices or get_arbitrage_opportunities.

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?

Explicitly says when to use it: 'check that on-chain and exchange prices agree before trading on-chain.' No when-not conditions and no named alternative tools are given, so it falls short of a 5.

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.