Skip to main content
Glama
laszlopere

mcp-bytesmith

eth_storage_slot

Compute the storage slot for a mapping or dynamic array entry. Provide the layout and key or index to return the slot as decimal and hex.

Instructions

Compute the storage slot for a mapping/array entry given a layout.

layout: {"kind": "mapping"|"dynamic_array", "slot": , ...} mapping -> needs key; "key_type" (default uint256). For nested mappings pass key (and optionally "key_type") as lists. dynamic_array -> needs index; optional "element_size" in slots (default 1). Returns the slot both as a decimal string and a 0x 32-byte hex word.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
layoutYes
keyNo
indexNo
Behavior4/5

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

With no annotations provided, the description carries the full burden. It explains the input structure and output format (decimal string and 0x hex word). It does not mention side effects, but as a compute-only tool, none are expected. The description is transparent about what inputs are needed and what outputs are produced.

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 description is somewhat lengthy but structured effectively with bullet-like sections. Every sentence adds value, though some redundant phrasing could be trimmed. Overall, it remains concise enough for quick parsing.

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?

Given no output schema, the description adequately explains return values (decimal string and 0x hex word). It covers the complexity of nested objects and different layout types. The description is complete for the tool's purpose, leaving no major gaps.

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

Parameters5/5

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

The input schema has 0% description coverage, so the description must add meaning for all parameters. It does so extensively: it explains the 'layout' object structure, details the 'key' and 'index' parameters with their contexts, and mentions optional fields like 'key_type' and 'element_size'. This provides crucial semantic information beyond the raw schema.

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 clearly states the tool's purpose: computing storage slots for mapping or array entries. It specifies the supported layout kinds (mapping, dynamic_array) and what it returns (decimal string and 0x hex word), distinguishing it from sibling tools like eth_hash or eth_selector which have different functions.

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?

The description provides clear guidelines on when to use each layout type: mapping requires a key, dynamic_array requires an index. It also covers nested mappings and optional parameters like key_type and element_size. However, it does not explicitly state when not to use the tool, but the context is sufficient for an AI agent.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/laszlopere/mcp-bytesmith'

If you have feedback or need assistance with the MCP directory API, please join our Discord server