Skip to main content
Glama
Ethereum MCP
by ETHCF

get_storage

Read a contract's raw storage value at a specified slot and optional chain to inspect on-chain state directly.

Instructions

Get storage at a specific slot for a contract.

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>",
      "position": "<position>"
    },
    "name": "get_storage"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoChain name or ID (default: ethereum)
addressYesContract address (0x...)
positionYesStorage slot position (hex)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing: it does not state that this is a read-only lookup, what the returned value looks like (raw hex word vs decoded), or whether it works for historical slots. Beyond restating the name it adds only "for a contract", which is minimal for a zero-annotation tool.

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?

A single front-loaded sentence with no filler or redundancy. Its brevity is efficient, though it borders on under-specification rather than genuine conciseness.

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?

The tool is simple, has only three fully documented parameters, and no output schema, so the minimum is nearly met. However, for a tool whose return value is a raw storage word with no output schema, the description should say what comes back and whether historical slots are supported.

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% – chain default, address format (0x...), and position as a hex slot are all documented in the schema. The description adds no parameter meaning beyond that, so the baseline 3 applies.

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 uses a specific verb ("Get") and a precise resource ("storage at a specific slot for a contract"), so an agent can tell this reads EVM contract storage. It stops short of differentiating from the many sibling getters, but the resource is unambiguous.

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?

There is no when-to-use guidance, no mention of prerequisites (e.g. archive node / historical block requirement for old slots), and no indication of when another tool should be preferred. The agent must infer usage entirely from the name.

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

Deploy Server

Other Tools