Skip to main content
Glama

get-contract-source

Retrieve source code and metadata for verified smart contracts on Ethereum and 72+ networks via a contract address.

Instructions

Get the source code and metadata for a verified smart contract

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesContract address (0x format)
networkNoNetwork name or chain ID (default: ethereum mainnet)
Behavior2/5

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

With no annotations provided, the description fails to disclose behavioral details such as what happens if the contract is not verified, rate limits, or the format of the returned data. It only states it 'gets' the source code and metadata, which is minimal.

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?

The description is a single, clear sentence with no unnecessary words. It is front-loaded and efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description mentions 'source code and metadata' but lacks details on the specific fields or structure. It does not address the requirement for the contract to be verified or error handling. Some context is provided but incomplete.

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 description coverage is 100%, so baseline is 3. The description does not add any extra meaning beyond the schema; both parameters are already described in the schema. No additional context is provided.

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?

The description clearly states the verb 'Get' and the resource 'source code and metadata for a verified smart contract'. It is specific and distinguishes the tool from siblings like get-contract-abi (which returns ABI only) and check-verification (which checks verification status).

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 the tool is for verified contracts but does not explicitly state when to use it versus alternatives like get-contract-abi or check-verification. No guidance is given on prerequisites or conditions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dennisonbertram/mcp-etherscan-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server