Skip to main content
Glama

Storage slot read, Sonic

sonic_storage
Read-only

Read one raw storage slot of a contract on Sonic (eth_getStorageAt): the 32-byte word, as a number and, when it holds one, as an address. Slot is a decimal index or a 0x 32-byte key (mapping and proxy slots). Use to inspect contract state that has no getter, owners or implementation pointers; for proxies use sonic_proxy. A malformed address or slot is rejected with 400, uncharged. Example: address=0x29219dd400f2Bf60E5a23d13Be72B486D4038894. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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

Input Schema

NameRequiredDescriptionDefault
slotNoSlot: a decimal index (0, 1, 2…) or a 0x 32-byte key
addressYes0x contract address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/destructive=false, but the description adds real behavioral context beyond them: malformed address or slot returns 400 and is uncharged, each call costs $0.01 with the first 10 free, failed calls are free, and repeats are not free — which explains the idempotentHint=false billing semantics. It also confirms the operation mutates nothing.

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?

Purpose and scope are front-loaded and no sentence is filler — pricing, error behavior, and the example all matter to an agent deciding whether to call. It is dense with semicolon-separated clauses, which costs a little readability but not correctness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description still explains the return value (number and address interpretations of the word), the accepted input forms, the failure mode, and the cost model. Nothing an agent needs to call this two-parameter read correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description goes further by contextualizing what the slot value represents (mapping and proxy slots) and supplying a concrete address example. It largely restates the slot format already in the schema, so it sits just above baseline rather than fully independent.

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?

States a specific verb and resource plus the underlying RPC ("Read one raw storage slot of a contract on Sonic (eth_getStorageAt)") and describes the return shape (32-byte word as a number, and as an address when applicable). It explicitly contrasts with the sibling sonic_proxy for the proxy case, so an agent can discriminate without opening either schema.

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

Usage Guidelines5/5

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

Gives positive guidance ("inspect contract state that has no getter, owners or implementation pointers") and an explicit alternative with its selection condition ("for proxies use sonic_proxy"). It also states the rejection behavior for bad input, which further defines when the call will and will not succeed.

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