Skip to main content
Glama

cast_storage

Reads a raw storage slot from a contract using an RPC URL and optional block tag, letting you inspect on-chain state without needing source code.

Instructions

Read a raw storage slot of a contract (cast storage).

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>",
      "slot": "<slot>",
      "rpcUrl": "<rpcUrl>"
    },
    "name": "cast_storage"
  }
}

Input Schema

NameRequiredDescriptionDefault
slotYesStorage slot to read (hex or decimal)
rpcUrlYesRPC URL of the network
addressYesAddress of the contract
blockTagNoBlock to query at, e.g. "latest" or a number

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, yet it only implies read-only via the word 'Read'. It says nothing about what is returned (raw hex word? padded?), whether the block defaults to 'latest', or any rate-limit/auth considerations for the RPC endpoint.

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 zero filler, and the core action appears first. It is perhaps too terse for a tool with four parameters, but nothing is wasted.

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 four-parameter, read-only RPC tool with no output schema and no annotations, the description is minimally adequate: it identifies the operation but leaves the return shape and block-tag default unstated. An agent could call it correctly from the schema alone, but would not know what to expect back.

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%, with each of the four parameters (slot, rpcUrl, address, blockTag) documented inline, so the schema does the heavy lifting. The description adds only marginal meaning by framing the slot as 'raw', which hints that no ABI decoding occurs.

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 gives a specific verb ('Read') and resource ('a raw storage slot of a contract'), plus the parenthetical CLI equivalent 'cast storage', which clearly separates it from siblings like cast_code or cast_balance. It does not explicitly name a sibling it is contrasted with, so it stops short of a 5.

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 guidance on when to use this versus alternatives such as cast_call or cast_code, and no stated preconditions (e.g. that an RPC endpoint and a valid slot are needed). The agent must infer usage entirely from the name and description.

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