Skip to main content
Glama
austintgriffith

eth-mcp

stack_configureExternalContracts

Add external contract addresses and ABIs to the Scaffold-ETH debug UI to interact with protocols like USDC, Aave, and Uniswap. Supports bundled ABIs for common types.

Instructions

Configure external contracts for the Scaffold-ETH debug UI.

Adds contract addresses and ABIs to packages/nextjs/contracts/externalContracts.ts so you can interact with external protocols (USDC, Aave, Uniswap) in the debug UI.

WHEN TO USE: When building projects that interact with external contracts:

  • Token interactions: "build a USDC vault" → add USDC with type: "ERC20"

  • DeFi integrations: "integrate with Aave" → add Aave pool with type: "AaveV3Pool"

  • DEX swaps: "swap on Uniswap" → add router with type: "UniswapV3Router"

BUNDLED ABIs (no external fetch needed):

  • ERC20: Standard tokens (USDC, DAI, WETH, etc.)

  • ERC721: NFT contracts

  • ERC4626: Tokenized vaults

  • AaveV3Pool: Aave lending pool

  • AaveV3PoolDataProvider: Aave data queries

  • UniswapV3Router: Uniswap V3 swaps

  • UniswapV3Quoter: Swap quotes

  • UniswapV2Router: V2-style DEX swaps

If a contract type is not bundled and no ABI is provided:

  • Try using Blockscout MCP to fetch the ABI

  • Or instruct the user to get the ABI from Etherscan/Blockscout manually

CHAIN IDs: Adds entries for BOTH 31337 (local fork) AND the real chainId, so contracts work during local dev and after mainnet deployment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoChain name for address lookup (mainnet, base, optimism, arbitrum, polygon). Defaults to project's configured chain.
contractsYesList of external contracts to configure
Behavior4/5

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

With no annotations, the description discloses key behaviors: writes to a file, adds entries for both local fork and mainnet chain IDs, lists bundled ABIs, and fallback to external fetch. It does not explicitly state whether it overwrites or appends, but the detail is commendable.

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 sections and bullet points, making it scannable. While it could be slightly more concise, the examples and detail are warranted given the tool's complexity and the agent's need for precise guidance.

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 the nested input schema and no output schema, the description covers the tool's operation comprehensively: file path, chain behavior, bundled ABIs, error handling for missing ABIs. It does not describe return values, which is acceptable.

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

Parameters5/5

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

The description adds significant value beyond the schema: it explains the default behavior for 'chain', the automatic address lookup when not provided, and lists the available contract types for bundled ABIs. This helps agents construct correct inputs.

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 tool configures external contracts for the Scaffold-ETH debug UI by adding addresses and ABIs to a specific file. It distinguishes itself from sibling tools (e.g., stack_init, stack_install) which focus on project setup, while this is about adding external contract integrations.

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?

The description provides a 'WHEN TO USE' section with concrete examples (token interactions, DeFi, DEX swaps) and mentions fallback behaviors for missing ABIs. It lacks explicit when-not-to-use or alternatives, but the context is clear enough for typical scenarios.

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