Skip to main content
Glama

chain_storage_slot

Read-only

$0.005 via x402: read a raw contract storage slot (eth_getStorageAt) across 6 chains — inspect contract state directly, for audit, proxy-resolution and advanced trading agents. Pass address + slot.

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

Input Schema

NameRequiredDescriptionDefault
slotYesStorage slot, hex or decimal
chainNobase|ethereum|optimism|arbitrum|polygon|gnosis (default base)
addressYesContract address 0x...
x_paymentNosigned x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / x_payment / description
      Added value: +"signed x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms"
  2. Added
  3. Removed
  4. Added
  5. Removed
  6. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, openWorldHint), and the description adds genuinely useful behavior: the exact cost ($0.005), the x402 payment requirement, and the two-step first-call-returns-terms flow. It does not describe error cases (e.g., invalid slot or unsupported chain) or the shape of the returned value, which keeps it from a 5.

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 cost and operation are front-loaded, followed by audience and then the argument instruction — a sensible information hierarchy with no filler. The single dense sentence carrying cost, method, chain count, and audience is slightly overloaded, but every clause earns its place.

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?

For a 4-parameter read tool with full schema coverage and no output schema, the definition covers what is needed: the operation, the chains, and the non-obvious payment flow. The only real gap is any indication of what a storage slot read returns or how errors on missing slots behave.

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 all four parameters are already documented, including the chain enum-like list and the x_payment header semantics. The description only adds 'Pass address + slot', which reiterates the required set rather than adding new meaning. Baseline 3 is appropriate when the schema does the work.

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 names a precise verb and resource ('read a raw contract storage slot') and anchors it to the underlying RPC method (eth_getStorageAt), so an agent can immediately distinguish it from sibling read tools like get_chain_call or get_chain_code. The scope ('across 6 chains') and concrete use cases (audit, proxy-resolution, trading agents) reinforce what the tool is for.

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?

It gives clear context for when this tool is appropriate (auditing contract state, resolving proxies, advanced trading agents) and explains the payment handshake — omit x_payment on the first call to get price and terms. It stops short of naming an alternative tool or stating when NOT to use it (e.g., when a higher-level decoded call would suffice).

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.