Skip to main content
Glama

anvil

Start or check a local Ethereum development node, optionally forking a live network, to test contracts with funded accounts.

Instructions

Start or check a local Anvil development node. Supports forking from a live network. Default port: 8545.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "anvil"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoPort to listen on (default: 8545)
actionYes'start' launches anvil in the background and returns when ready. 'check' tests if anvil is reachable at the given port.
balanceNoETH balance for each generated account in ether (default: 10000)
chainIdNoChain ID to use
forkUrlNoRPC URL to fork from
accountsNoNumber of funded accounts to generate (default: 10)
blockTimeNoBlock time in seconds for auto-mining
autoImpersonateNoEnable auto-impersonation of all accounts
forkBlockNumberNoBlock number to fork from (requires forkUrl)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden and only partially discharges it: it discloses the default port and forking support, which are useful operational facts. It says nothing about process lifetime (that 'start' spawns a background node that persists after the call), port-in-use behavior, idempotency of repeated starts, or the absence of any stop action — the latter being a real gap for an agent managing lifecycle.

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?

Three short, front-loaded sentences covering purpose, a key capability, and the default port — well structured with no wasted prose. The 'Default port: 8545' sentence largely duplicates the schema's port default, a minor redundancy.

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?

For a nine-parameter tool with no annotations and no output schema, the description is thin: it never indicates what 'start' or 'check' return (e.g., a readiness signal or a boolean reachability result), nor how funded accounts or fork state are exposed. It is sufficient to identify the tool but leaves meaningful operational questions for the agent to discover by calling it.

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 every one of the nine parameters is already documented, including defaults and the forkUrl/forkBlockNumber dependency — baseline 3 applies. The description mentions forking, which lightly reinforces forkUrl, but adds no formatting or constraint detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource (a local Anvil development node) and the two supported actions (start, check), plus a notable capability (forking from a live network). This clearly separates it from the cast_* and forge_* siblings, which operate on chains or projects rather than launching a node, though no sibling is named explicitly.

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 it to boot a local chain before sending transactions or to verify a node is up. There is no explicit when-to-use/when-not guidance, no mention of prerequisites, and no routing to alternatives for related tasks. The distinction between 'start' and 'check' lives in the schema enum, not the description.

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