Skip to main content
Glama

iota_decompile

Decompile deployed Move modules to retrieve their ABI, including structs, functions, and type parameters for smart contract analysis.

Instructions

Retrieve and decompile a deployed Move module. Returns the module's ABI (structs, functions, type params).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
package_idYesPackage object ID (0x...)
module_nameYesModule name within the package

Implementation Reference

  • The iota_decompile tool is registered and implemented directly here, using the iota_getNormalizedMoveModule RPC call.
    server.tool(
      "iota_decompile",
      "Retrieve and decompile a deployed Move module. Returns the module's ABI (structs, functions, type params).",
      {
        package_id: z.string().describe("Package object ID (0x...)"),
        module_name: z.string().describe("Module name within the package"),
      },
      async ({ package_id, module_name }) =>
        text(await rpc("iota_getNormalizedMoveModule", [package_id, module_name]))
    );
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool retrieves and decompiles, implying a read-only operation, but lacks details on permissions, rate limits, or potential side effects. This is a significant gap for a tool with no annotation coverage.

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?

The description is two sentences with zero waste: the first states the action and resource, and the second specifies the output. It is front-loaded and appropriately sized, making it efficient and easy to parse.

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

Completeness3/5

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

Given the tool's complexity (decompilation), lack of annotations, and no output schema, the description is incomplete. It explains the output format but omits behavioral details like error handling or performance considerations. However, it covers the core purpose adequately, making it minimally viable.

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 the schema already documents both parameters ('package_id' and 'module_name'). The description does not add any additional meaning or context beyond what the schema provides, such as format examples or usage tips, meeting the baseline for high 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 clearly states the specific action ('Retrieve and decompile') and resource ('a deployed Move module'), and distinguishes it from siblings by specifying the unique output ('Returns the module's ABI (structs, functions, type params)'), which no other tool mentions. This makes the purpose explicit and differentiated.

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?

The description provides no guidance on when to use this tool versus alternatives. It does not mention prerequisites, such as needing a deployed module, or compare it to siblings like 'iota_move_build' or 'iota_move_publish_unsigned', leaving the agent without context for selection.

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/Scottcjn/iota-agent-mcp'

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