Skip to main content
Glama

Base Explorer (tevm.app)

fork/set-code

Etch custom runtime bytecode at an address on the active @tevm/effect fork.

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": {
      "address": "<address>",
      "code": "<code>"
    },
    "name": "fork/set-code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes0x-prefixed runtime bytecode
addressYes0x contract address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

No annotations, so the description carries the full behavioral burden. It does disclose that the target is the *active* fork, implying ephemeral in-memory state mutation, but it says nothing about reversibility (snapshot/revert), persistence, or permission/model requirements.

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?

A single front-loaded sentence with zero filler; the target (address) and payload (runtime bytecode) are stated immediately with no redundant restatement of the name.

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 simple two-parameter mutation tool with no output schema, the description is adequate but thin. It omits the return value, whether an active fork is a precondition, and what happens on an invalid address or unforked chain.

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 coverage is 100%, so both parameters are already documented in the schema. The description only reinforces that 'code' is runtime bytecode (not init code) placed at an address, adding little beyond the structured fields – baseline 3.

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?

States a specific verb+resource: etch runtime bytecode at an address on the active fork. The agent can tell this writes code rather than storage (fork/set-storage) or executes a call (fork/call), though the differentiation is implicit rather than stated.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance. It never says a fork must already be started/selected, nor how this differs from fork/set-storage or when a snapshot should precede it. 'On the active fork' is the only contextual anchor.

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