Skip to main content
Glama

Leash

Get code

elysium_get_code
Read-onlyIdempotent

Whether an address is a contract, its bytecode size and keccak256 hash. Full bytecode only when includeBytecode is true. Chains: elysium (default), hyperevm, robinhood.

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": "elysium_get_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoelysium (default), hyperevm or robinhoodelysium
addressYes
includeBytecodeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is covered structurally. Beyond that, the description usefully discloses that the response payload varies with includeBytecode and that results are chain-scoped, though it does not say what is returned for a non-contract address or how large bytecode payloads are handled.

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?

Three short sentences with the substantive output description front-loaded and the flag caveat before the chain list. The chain enumeration partially duplicates the schema enum, which is the only wasted phrasing.

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?

With no output schema, the description carries the burden of describing return values and does so at a field level (is-contract, size, hash, conditional full bytecode). The remaining gap is the non-contract response shape, which is a minor but real omission for a three-parameter read tool.

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 coverage is only 33% — chain has an enum plus description while address and includeBytecode are undocumented there. The description compensates for includeBytecode by stating full bytecode is returned only when it is true, but the address format is left entirely to the schema pattern and no default or format is restated.

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 names concrete outputs — contract detection, bytecode size, and keccak256 hash — which distinguishes this from bytecode-adjacent siblings like elysium_get_source and elysium_get_abi. It stops short of explicitly contrasting with those siblings, so an agent must infer that this returns raw bytecode metadata rather than source or ABI.

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 or when-not-to-use guidance and no sibling alternatives are named, despite get_abi, get_source, and contract_info living in the same namespace. The only conditional guidance is about flipping includeBytecode to true, which is parameter-level, not tool-selection guidance.

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