Skip to main content
Glama

contract abi

contract_abi
Read-only

Verified smart-contract ABI (+ optional Solidity/Vyper source) for Ethereum, Base, Arbitrum, Optimism, Polygon and BNB Chain from the open Sourcify registry: compiler, deployment, read/write function and event signatures, and proxy resolution to the implementation ABI. Unverified contracts return 404 (not charged). Paid ($0.001, x402).

Input Schema

NameRequiredDescriptionDefault
chainYesEVM chain
addressYesContract address
resolve_proxyNoAlso return the implementation ABI of a proxy
include_sourceNoInclude verified source files (up to 600k characters)

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?

Goes well beyond annotations (readOnlyHint, openWorldHint) by disclosing the pricing model ($0.001, x402) and the failure behavior for unverified contracts (404, not charged). It also names the data source (Sourcify) and proxy-resolution behavior, adding real operational context.

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?

A dense, front-loaded lead sentence covers the resource and return contents, followed by two short sentences for the error and pricing behavior. Minimal waste, though the lead sentence is long.

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 carries the return-value burden well, enumerating compiler/deployment/signatures/proxy output and the source-size bound. Pricing and error handling are covered, so little is left for the agent to guess.

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%, so the baseline is 3, but the description adds meaning: 'proxy resolution to the implementation ABI' clarifies resolve_proxy and 'optional Solidity/Vyper source' clarifies include_source, giving purpose beyond the terse schema descriptions.

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 ('Verified smart-contract ABI ... from the Sourcify registry') and enumerates exactly what is returned (compiler, deployment, function/event signatures, proxy resolution). This is clearly distinguishable from siblings like token_audit or explain_transaction.

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 description implies context (verified contracts on supported EVM chains, sourced from Sourcify) but never explicitly states when to use this versus alternatives such as token_audit or simulate_tx. Usage is inferable but not guided.

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