Skip to main content
Glama
x402-data-mcp

x402-data-mcp

ENS / Basename to address, or address to primary name ($0.003)

resolve_ens

Convert ENS names or Base Basenames to wallet addresses, or reverse-resolve addresses to verified primary names on-chain via ENS Universal Resolver with CCIP-Read.

Instructions

Resolve an ENS name or a Base Basename (name.base.eth) to its address, or an address to its verified primary name, on-chain through the ENS Universal Resolver with CCIP-Read. Pass name or address. Not charged when nothing resolves (404) or the chain fails (502). No API key. Price: $0.003 USDC per call, paid over x402 on Base from the wallet in X402_PRIVATE_KEY (not charged when the call fails).

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

Input Schema

NameRequiredDescriptionDefault
nameNoENS name or Basename, e.g. vitalik.eth or jesse.base.eth (use this or address)
addressNoAddress to reverse-resolve to its primary name (use this or name)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: the ENS Universal Resolver with CCIP-Read path, the x402 payment rail, the required X402_PRIVATE_KEY wallet, and the explicit no-charge conditions on 404/502. This also implicitly explains why readOnlyHint is false for what looks like a read — the call moves USDC — so there is no contradiction. It does not describe the response shape or what happens on partial/multiple resolution.

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?

Front-loaded with the purpose, then progressively adds mechanics, payment, and failure handling, which is the right ordering. The no-charge-on-failure point is stated twice ('Not charged when nothing resolves (404) or the chain fails (502)' and 'not charged when the call fails'), which is minor but avoidable waste.

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 still conveys what comes back in each direction (an address, or a verified primary name). Payment, auth, and error-billing are all covered. What is missing is error/ambiguity handling when both inputs are given or when no primary name is set.

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 both parameters are already documented, including the '(use this or address)' disambiguation. The description only restates 'Pass name or address' and adds no format or validation detail beyond the schema baseline.

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 ('Resolve') plus both resources ('ENS name or a Base Basename' and 'an address'), and makes the directionality explicit in both directions. No sibling in the catalog does name resolution, and the description makes the scope unmistakable.

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?

'Pass name or address' plus the schema's '(use this or address)' makes the input selection rule clear, and the mention of Base Basenames clarifies the supported namespace. It stops short of naming alternatives or stating what happens if both parameters are supplied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.