Skip to main content
Glama
austintgriffith

eth-mcp

stack_init

Initialize a Scaffold-ETH 2 project that forks a specified mainnet chain for local development with Foundry.

Instructions

Initialize a new Scaffold-ETH 2 project with Foundry, configured for a specific mainnet chain.

IMPORTANT: The chain parameter specifies which MAINNET to fork for local development. All development happens on a LOCAL Anvil fork (chainId 31337) - you never deploy directly to mainnet from here.

Supported chains: mainnet, base, optimism, arbitrum, polygon. NO TESTNETS - use fork workflow instead (fork gives you real mainnet state for free).

Development workflow after init:

  1. stack_install() - Install dependencies

  2. stack_start(["fork"]) - Runs: yarn fork --network

  3. stack_start(["deploy"]) - Deploy to LOCAL fork (free!)

  4. stack_start(["frontend"]) - Start frontend connected to local fork

  5. When ready: yarn generate && yarn deploy --network for mainnet

The workspace path should be an empty directory. Requires Foundry CLI tools (forge, anvil) - call stack_install_foundry first if not installed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesTarget chain for forking (e.g., 'base', 'mainnet', 'optimism')
templateYesTemplate to use (only scaffold-eth supported)
workspacePathYesPath where the project should be created
Behavior4/5

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

With no annotations, the description carries full burden. It explains that development happens on a local Anvil fork (chainId 31337) and never deploys directly to mainnet, lists supported chains, and notes prerequisites (Foundry CLI). Covers side effects and constraints well.

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?

The description is well-structured with important notes and numbered workflow steps. It front-loads the purpose and each section earns its place, though could be slightly more concise.

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?

Given no output schema and 3 parameters, the description covers purpose, workflow, constraints, prerequisites, and supported chains. It is complete enough for an agent to understand and invoke the tool correctly.

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 has 100% coverage on parameters. The description adds value by clarifying that 'chain' means a mainnet to fork and that template is only scaffold-eth, but does not add significant new information beyond the schema.

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 explicitly states 'Initialize a new Scaffold-ETH 2 project with Foundry' with a specific verb and resource. It clearly distinguishes from sibling tools like stack_install and stack_start by focusing on project initialization.

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

Usage Guidelines4/5

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

Provides clear context on when to use (starting a new project), what not to do ('NO TESTNETS'), and a full workflow after init. Does not explicitly compare to alternatives, but the workflow steps and warnings are sufficient.

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/austintgriffith/eth-mcp'

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