Skip to main content
Glama

chain_interfaces

Read-only

ERC-165 interface detection — Which standards does a contract implement? Calls supportsInterface on 17 well-known interface ids (ERC-721 + Metadata/Enumerable, ERC-1155, ERC-2981 royalties, ERC-4906, ERC-4907, ERC-5192 soulbound, ERC-6551 account, ERC-1363, AccessControl, ERC-1271, receivers...) plus up to 10 custom ids= and checks ERC-165 compliance (0xffffffff must be false). Pass address= and chain= (base, ethereum, optimism, arbitrum, polygon). 422 for EOAs. Price: $0.002 USDC (Base, via x402).

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": {
      "address": "<address>",
      "chain": "<chain>"
    },
    "name": "chain_interfaces"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesethereum
addressYes0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, and destructiveHint=false, so the safety profile is covered; the description still adds real value with the ERC-165 sanity rule (0xffffffff must be false), the EOAs 422 error, and the x402 payment cost of $0.002 USDC on Base. It does not describe the shape of the result (e.g., a per-interface boolean map), which matters given there is no output schema.

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 and the compliance rule, then parameters, then error and pricing — a sensible order with little filler. The parenthetical interface list is dense but is the core information payload, though it could be trimmed without loss.

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?

For a two-parameter read tool this covers purpose, probed standards, compliance check, error behavior, and cost — enough to invoke it correctly. The remaining gap is return-value shape, which the description must carry since no output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% but the schema's descriptions are placeholders ('ethereum', a sample address); the description compensates by enumerating the accepted chains (base, ethereum, optimism, arbitrum, polygon) and the expected address format. It also references 'up to 10 custom ids=', a parameter that is absent from the input schema — useful semantic detail but a mismatch the agent may trip on.

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?

Names a specific verb and resource — calls supportsInterface to detect ERC-165 interfaces — and enumerates the exact standards probed (ERC-721, 1155, 2981, 4906, 4907, 5192, 6551, 1363, AccessControl, 1271). An agent can distinguish this from generic siblings like chain_call or chain_contract_info 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 Guidelines3/5

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

The rhetorical question 'Which standards does a contract implement?' frames the use case and 'Pass address= and chain=' gives invocation context, plus the 422-for-EOAs caveat. However, it never states when to prefer this over a sibling such as chain_call or chain_contract_info, and there are no explicit exclusions beyond EOAs.

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