Skip to main content
Glama

Get GenLayer Contract Code

genlayer_get_contract_code
Read-onlyIdempotent

Retrieve the base64-encoded deployed code of a GenLayer contract by providing its address. Optionally filter by block number or state status.

Instructions

Fetch the deployed base64 code blob for a GenLayer contract from the configured RPC endpoint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusNoOptional state snapshot filter.
addressYesContract address to inspect.
blockNumberNoOptional hex-encoded block number.
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint. Description adds that the code is base64 encoded and fetched from RPC, but does not disclose error behavior, caching, or rate limits. Adequate but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence, front-loaded with verb, no wasted words. All information is immediately useful.

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?

Given annotations cover safety and simplicity, description is mostly complete. However, it does not specify output format (e.g., base64 string) or behavior for optional parameters like status or blockNumber. Minor gap.

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?

Input schema has 100% coverage for parameters; description adds no extra meaning beyond what schema already provides. Baseline score appropriate for full schema coverage.

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 explicitly states the verb 'fetch', the resource 'deployed base64 code blob', and the context 'GenLayer contract'. It clearly distinguishes from sibling tools like genlayer_get_contract_interface or genlayer_get_contract_state.

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?

No guidance on when to use this tool vs alternatives. The description does not mention when-not-to-use, prerequisites, or context for using this specific tool over others.

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/Jr-kenny/genskill-mcp'

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