Skip to main content
Glama

Beggar Bot

eip712_domain_lookup

EIP-712 domain of a token: name, version, chainId, verifyingContract (EIP-5267 eip712Domain() when supported), on-chain vs computed DOMAIN_SEPARATOR match, optional permit nonce, and ready-to-use x402 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": "eip712_domain_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNobase|ethereum|...
ownerNooptional 0x for permit nonce
tokenNo0x or usdc (default)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose real behavior: values come from EIP-5267 eip712Domain() when supported, an on-chain vs computed DOMAIN_SEPARATOR comparison is performed, and the call is paid ($0.02 USDC via x402). That pricing disclosure is valuable, but it is stated twice and clumsily, and nothing is said about failure modes, unsupported chains, or what happens when EIP-5267 is absent.

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?

It is one front-loaded sentence that leads with the resource and the returned fields, which is the right order. The trailing clause is garbled and repeats the x402 payment twice, wasting the last few words.

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 correctly enumerates the returned fields (name, version, chainId, verifyingContract, separator match, nonce), which is the main gap it needed to close. It falls short only on when-to-use and error/fallback behavior for a three-parameter paid tool.

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 100%, so the baseline is 3, and the schema already documents chain, token (with the 'usdc' default), and owner. The description's only added signal is that the nonce derives from a permit flow, which the schema's owner description largely covers already.

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 (a token's EIP-712 domain) and enumerates the returned fields, so an agent knows it is a domain-parameter lookup. It does not distinguish itself from the sibling eip712_hash, which an agent could plausibly confuse it with.

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

Usage Guidelines2/5

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

There is no statement of when to call this versus eip712_hash or a plain contract read, and no prerequisites are given beyond the implicit 'owner is needed for a permit nonce'. The agent must infer the use case from the field list alone.

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.