Skip to main content
Glama

evm_contract

Contract check and ABI for an address on Base: whether it is a contract, its bytecode size, whether Sourcify verified it, and the ABI when available. Price: 0.003 USDC per call over x402 on Base.

Input Schema

NameRequiredDescriptionDefault
addressYesExample: 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does add real behavioral context: it discloses the paid x402 flow (0.003 USDC per call on Base), which is a prerequisite an agent must know before invoking. It also signals conditional output ('ABI when available'), implying unverified/EOA addresses return partial results, though it stops short of describing error or rate-limit behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, both earning their place: the first front-loads what is returned, the second front-loads the pricing constraint. No filler or restatement of the tool name.

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 properly enumerates the return payload (contract flag, bytecode size, Sourcify status, ABI) and notes the ABI is conditional. It is nearly complete for a one-parameter read tool; only the response shape for non-contracts and failure modes are left unstated.

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% for the single address parameter, so the baseline is 3. The description adds only the chain scoping ('on Base'), which narrows the meaning of the address slightly but adds no format or validation detail beyond the schema's example.

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+resource ('Contract check and ABI for an address on Base') and enumerates exactly what is determined: contract-ness, bytecode size, Sourcify verification, and ABI. This clearly separates it from siblings like evm_balance or evm_token_info, which report holdings rather than code properties.

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?

Usage is only implied: an agent can infer you call this when you need to know whether an address is a contract or need its ABI. There is no explicit when-to-use/when-not, no mention of alternatives (e.g. evm_decode for ABI-driven decoding), and no guidance for EOA inputs.

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.