Skip to main content
Glama

ENS resolve, ENS lookup: ENS name to address and address to ENS name

ens
Read-only

ENS resolve and ENS lookup: resolve an Ethereum Name Service name such as vitalik.eth to its wallet address and avatar, or look up the primary ENS name of an address (reverse resolution). Read live from Ethereum mainnet. Use to turn a human-readable name into a payable address, or to show a readable name for a counterparty address. Example: name=vitalik.eth. Price $0.002/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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

Input Schema

NameRequiredDescriptionDefault
nameYesAn ENS name such as vitalik.eth, or an address (0x...) for reverse lookup

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, non-destructive, open-world, and non-idempotent hints; the description adds genuinely new behavior: live reads from Ethereum mainnet, pricing ($0.002/call via x402 USDC or card key, first 10 free), failed calls free, and repeat charges. It stops short of describing latency, caching, or output shape, so 4 rather than 5.

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 two operations, then usage, then example, then pricing; every sentence carries information. The pricing sentence is dense but earns its place for a paid tool.

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 usefully tells the agent what comes back in both directions (address plus avatar, or primary name). Pricing and side-effect-free behavior are covered; only residual gaps like output field names or rate limits remain.

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?

Only one parameter and schema coverage is 100%, so the schema already documents 'name' as an ENS name or 0x address. The description's example ('name=vitalik.eth') and the restated dual input mode add marginal reinforcement but no real syntax or format detail beyond the schema.

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 and resource ('resolve an Ethereum Name Service name ... to its wallet address and avatar') and covers the inverse operation ('look up the primary ENS name of an address (reverse resolution)'). This makes it distinguishable from generic siblings like dns_lookup or wallet 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 Guidelines4/5

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

Gives concrete usage contexts: 'turn a human-readable name into a payable address' and 'show a readable name for a counterparty address'. It does not explicitly exclude alternatives or state when-not to use it versus dns_lookup, 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.

Resources