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]))
    );

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