Skip to main content
Glama

Decompiled code of a contract

get_contract_decompilation
Read-only

A contract's code reconstructed as readable Solidity-like pseudocode, for contracts with or without published source — by default the code that runs at the address (through a proxy, a beacon, a minimal proxy or an EIP-7702 delegation), at the latest block or at block. The answer is a table of contents of the functions, named where known; selector returns one function's body, bodies the bodies in order, a page at a time; the table of contents is paged too (about 512 KiB a page: hasMore, nextCursor); a body larger than 512 KiB as written comes without text (textState withheld_for_size and textLength instead). The reconstruction is best-effort and every answer says so. A code not analysed yet is analysed on request: the call is then refused (decompilation_pending) with retryAfterSeconds — call again after it, usually within a minute. Each account starts a limited number of analyses per day; reading an analysed code is not limited. Use it to understand what an unverified contract does. Not for the selectors its bytecode refers to: use get_contract_selectors. Not for the instructions behind a body's pcs: use get_contract_disassembly.

Arguments: address; optional block, target, selector, bodies, cursor. chain_id defaults to 1 (Ethereum mainnet, the only chain served). Paged: pass data.nextCursor back as cursor, with the same other arguments, until it is absent — no nextCursor means the list is complete, even when the page is exactly limit long. Freshness: the current state, or with block the state at the end of that block; meta.asOfBlock is the block the answer is valid at. meta.cached is true when the answer came from the TraceFast response cache (refreshed within minutes); meta.timestamp is when it was produced, in Unix milliseconds.

Minimum plan: Intelligence; the Investigation plan includes it. Rate class: standard. Documentation: https://docs.tracefast.xyz/api/contract-decompilation

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

Input Schema

NameRequiredDescriptionDefault
blockNoThe block to resolve the code at. Default: the latest covered block.
bodiesNo`true`: the first page of bodies in table-of-contents order.
cursorNo`data.nextCursor` of this tool's previous answer, passed back unchanged with the same other arguments. Opaque; absent on the first call.
targetNo`auto` (default): the code that runs at the address, one hop through a proxy. `self`: the address's own code (a proxy's own).
addressYesThe contract address, `0x`-prefixed, 40 hex characters, any case.
chain_idNoChain id. Only 1 (Ethereum mainnet) is served; the default.
selectorNoOne function's body: `0x` + 8 hex characters, or `fallback` / `receive`. Not with `bodies` or `cursor`.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "data": {
      -        "properties": {
      -          "address": {
      -            "type": "string"
      -          },
      -          "analysis": {
      -            "properties": {
      -              "codeHash": {
      -                "type": "string"
      -              },
      -              "computedAt": {
      -                "type": "string"
      -              },
      -              "release": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "codeHash",
      -              "release",
      -              "computedAt"
      -            ],
      -            "type": "object"
      -          },
      -          "block": {
      -            "type": "integer"
      -          },
      -          "bodies": {
      -            "items": {
      -              "properties": {
      -                "kind": {
      -                  "type": "string"
      -                },
      -                "selector": {
      -                  "type": "string"
      -                },
      -                "text": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "kind",
      -                "text"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "body": {
      -            "properties": {
      -              "kind": {
      -                "type": "string"
      -              },
      -              "selector": {
      -                "type": "string"
      -              },
      -              "text": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "kind",
      -              "text"
      -            ],
      -            "type": "object"
      -          },
      -          "chainId": {
      -            "type": "integer"
      -          },
      -          "disclaimer": {
      -            "type": "string"
      -          },
      -          "functionCount": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "functions": {
      -            "items": {
      -              "properties": {
      -                "arguments": {
      -                  "items": {
      -                    "properties": {
      -                      "type": {
      -                        "type": "string"
      -                      }
      -                    },
      -                    "type": "object"
      -                  },
      -                  "type": "array"
      -                },
      -                "bodyOmitted": {
      -                  "type": "boolean"
      -                },
      -                "candidateCount": {
      -                  "minimum": 0,
      -                  "type": "integer"
      -                },
      -                "decodeStatus": {
      -                  "type": "string"
      -                },
      -                "hasBody": {
      -                  "type": "boolean"
      -                },
      -                "kind": {
      -                  "type": "string"
      -                },
      -                "lowConfidence": {
      -                  "type": "boolean"
      -                },
      -                "mutability": {
      -                  "type": "string"
      -                },
      -                "name": {
      -                  "type": "string"
      -                },
      -                "selector": {
      -                  "type": "string"
      -                },
      -                "signature": {
      -                  "type": "string"
      -                },
      -                "status": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "kind",
      -                "status",
      -                "arguments",
      -                "lowConfidence",
      -                "hasBody"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "functionsDone": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "functionsTotal": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "language": {
      -            "type": "string"
      -          },
      -          "lowConfidence": {
      -            "type": "boolean"
      -          },
      -          "nextCursor": {
      -            "type": "string"
      -          },
      -          "outputLimited": {
      -            "type": "boolean"
      -          },
      -          "releaseIsCurrent": {
      -            "type": "boolean"
      -          },
      -          "status": {
      -            "type": "string"
      -          },
      -          "target": {
      -            "properties": {
      -              "codeAddress": {
      -                "type": "string"
      -              },
      -              "codeHash": {
      -                "type": "string"
      -              },
      -              "mode": {
      -                "type": "string"
      -              },
      -              "resolvedVia": {
      -                "type": "string"
      -              },
      -              "targetUnresolved": {
      -                "type": "boolean"
      -              }
      -            },
      -            "required": [
      -              "mode",
      -              "resolvedVia",
      -              "codeHash"
      -            ],
      -            "type": "object"
      -          },
      -          "unsupportedReason": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "chainId",
      -          "address",
      -          "block",
      -          "target",
      -          "analysis",
      -          "releaseIsCurrent",
      -          "disclaimer",
      -          "status",
      -          "lowConfidence",
      -          "functionsDone",
      -          "functionsTotal",
      -          "functionCount"
      -        ],
      -        "type": "object"
      -      },
      -      "links": {
      -        "properties": {
      -          "web": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "web"
      -        ],
      -        "type": "object"
      -      },
      -      "meta": {
      -        "properties": {
      -          "asOfBlock": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "cached": {
      -            "type": "boolean"
      -          },
      -          "chain": {
      -            "type": "string"
      -          },
      -          "coverage": {
      -            "additionalProperties": {
      -              "type": "integer"
      -            },
      -            "propertyNames": {
      -              "type": "string"
      -            },
      -            "type": "object"
      -          },
      -          "docs": {
      -            "type": "string"
      -          },
      -          "timestamp": {
      -            "minimum": 0,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "chain",
      -          "timestamp",
      -          "cached",
      -          "docs"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "data",
      -      "meta",
      -      "links"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "error": {
      -        "properties": {
      -          "code": {
      -            "type": "string"
      -          },
      -          "details": {
      -            "additionalProperties": true,
      -            "type": "object"
      -          },
      -          "message": {
      -            "type": "string"
      -          },
      -          "requestId": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "code",
      -          "message"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "data": {
      +        "properties": {
      +          "address": {
      +            "type": "string"
      +          },
      +          "analysis": {
      +            "properties": {
      +              "codeHash": {
      +                "type": "string"
      +              },
      +              "computedAt": {
      +                "type": "string"
      +              },
      +              "release": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "codeHash",
      +              "release",
      +              "computedAt"
      +            ],
      +            "type": "object"
      +          },
      +          "block": {
      +            "type": "integer"
      +          },
      +          "bodies": {
      +            "items": {
      +              "properties": {
      +                "kind": {
      +                  "type": "string"
      +                },
      +                "selector": {
      +                  "type": "string"
      +                },
      +                "text": {
      +                  "type": "string"
      +                },
      +                "textLength": {
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "textState": {
      +                  "enum": [
      +                    "withheld_for_size"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "kind"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "body": {
      +            "properties": {
      +              "kind": {
      +                "type": "string"
      +              },
      +              "selector": {
      +                "type": "string"
      +              },
      +              "text": {
      +                "type": "string"
      +              },
      +              "textLength": {
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "textState": {
      +                "enum": [
      +                  "withheld_for_size"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "kind"
      +            ],
      +            "type": "object"
      +          },
      +          "chainId": {
      +            "type": "integer"
      +          },
      +          "disclaimer": {
      +            "type": "string"
      +          },
      +          "functionCount": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "functions": {
      +            "items": {
      +              "properties": {
      +                "arguments": {
      +                  "items": {
      +                    "properties": {
      +                      "type": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "bodyOmitted": {
      +                  "type": "boolean"
      +                },
      +                "candidateCount": {
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "decodeStatus": {
      +                  "type": "string"
      +                },
      +                "hasBody": {
      +                  "type": "boolean"
      +                },
      +                "kind": {
      +                  "type": "string"
      +                },
      +                "lowConfidence": {
      +                  "type": "boolean"
      +                },
      +                "mutability": {
      +                  "type": "string"
      +                },
      +                "name": {
      +                  "type": "string"
      +                },
      +                "nameState": {
      +                  "enum": [
      +                    "withheld"
      +                  ],
      +                  "type": "string"
      +                },
      +                "selector": {
      +                  "type": "string"
      +                },
      +                "signature": {
      +                  "type": "string"
      +                },
      +                "status": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "kind",
      +                "status",
      +                "arguments",
      +                "lowConfidence",
      +                "hasBody"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "functionsDone": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "functionsTotal": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "hasMore": {
      +            "type": "boolean"
      +          },
      +          "language": {
      +            "type": "string"
      +          },
      +          "lowConfidence": {
      +            "type": "boolean"
      +          },
      +          "nextCursor": {
      +            "type": "string"
      +          },
      +          "outputLimited": {
      +            "type": "boolean"
      +          },
      +          "releaseIsCurrent": {
      +            "type": "boolean"
      +          },
      +          "status": {
      +            "type": "string"
      +          },
      +          "target": {
      +            "properties": {
      +              "codeAddress": {
      +                "type": "string"
      +              },
      +              "codeHash": {
      +                "type": "string"
      +              },
      +              "mode": {
      +                "type": "string"
      +              },
      +              "resolvedVia": {
      +                "type": "string"
      +              },
      +              "targetUnresolved": {
      +                "type": "boolean"
      +              }
      +            },
      +            "required": [
      +              "mode",
      +              "resolvedVia",
      +              "codeHash"
      +            ],
      +            "type": "object"
      +          },
      +          "unsupportedReason": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "chainId",
      +          "address",
      +          "block",
      +          "target",
      +          "analysis",
      +          "releaseIsCurrent",
      +          "disclaimer",
      +          "status",
      +          "lowConfidence",
      +          "functionsDone",
      +          "functionsTotal",
      +          "functionCount",
      +          "hasMore"
      +        ],
      +        "type": "object"
      +      },
      +      "links": {
      +        "properties": {
      +          "web": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "web"
      +        ],
      +        "type": "object"
      +      },
      +      "meta": {
      +        "properties": {
      +          "asOfBlock": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "cached": {
      +            "type": "boolean"
      +          },
      +          "chain": {
      +            "type": "string"
      +          },
      +          "coverage": {
      +            "additionalProperties": {
      +              "type": "integer"
      +            },
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          "docs": {
      +            "type": "string"
      +          },
      +          "timestamp": {
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "chain",
      +          "timestamp",
      +          "cached",
      +          "docs"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "data",
      +      "meta",
      +      "links"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "details": {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "requestId": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed2 schema fields changed
    • addedInput schema / properties / target / enum
      Added value: +[
      +  "auto",
      +  "self"
      +]
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "data": {
      -        "properties": {
      -          "address": {
      -            "type": "string"
      -          },
      -          "analysis": {
      -            "properties": {
      -              "codeHash": {
      -                "type": "string"
      -              },
      -              "computedAt": {
      -                "type": "string"
      -              },
      -              "release": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "codeHash",
      -              "release",
      -              "computedAt"
      -            ],
      -            "type": "object"
      -          },
      -          "block": {
      -            "type": "integer"
      -          },
      -          "bodies": {
      -            "items": {
      -              "properties": {
      -                "kind": {
      -                  "type": "string"
      -                },
      -                "selector": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "text": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "kind",
      -                "text"
      -              ],
      -              "type": "object"
      -            },
      -            "type": [
      -              "array",
      -              "null"
      -            ]
      -          },
      -          "body": {
      -            "oneOf": [
      -              {
      -                "type": "null"
      -              },
      -              {
      -                "properties": {
      -                  "kind": {
      -                    "type": "string"
      -                  },
      -                  "selector": {
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "text": {
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "kind",
      -                  "text"
      -                ],
      -                "type": "object"
      -              }
      -            ]
      -          },
      -          "chainId": {
      -            "type": "integer"
      -          },
      -          "disclaimer": {
      -            "type": "string"
      -          },
      -          "functionCount": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "functions": {
      -            "items": {
      -              "properties": {
      -                "arguments": {
      -                  "items": {
      -                    "properties": {
      -                      "type": {
      -                        "type": [
      -                          "string",
      -                          "null"
      -                        ]
      -                      }
      -                    },
      -                    "type": "object"
      -                  },
      -                  "type": "array"
      -                },
      -                "bodyOmitted": {
      -                  "type": "boolean"
      -                },
      -                "candidateCount": {
      -                  "minimum": 0,
      -                  "type": [
      -                    "integer",
      -                    "null"
      -                  ]
      -                },
      -                "decodeStatus": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "hasBody": {
      -                  "type": "boolean"
      -                },
      -                "kind": {
      -                  "type": "string"
      -                },
      -                "lowConfidence": {
      -                  "type": "boolean"
      -                },
      -                "mutability": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "name": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "selector": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "signature": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "status": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "kind",
      -                "status",
      -                "arguments",
      -                "lowConfidence",
      -                "hasBody"
      -              ],
      -              "type": "object"
      -            },
      -            "type": [
      -              "array",
      -              "null"
      -            ]
      -          },
      -          "functionsDone": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "functionsTotal": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "language": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "lowConfidence": {
      -            "type": "boolean"
      -          },
      -          "nextCursor": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "outputLimited": {
      -            "type": "boolean"
      -          },
      -          "releaseIsCurrent": {
      -            "type": "boolean"
      -          },
      -          "status": {
      -            "type": "string"
      -          },
      -          "target": {
      -            "properties": {
      -              "codeAddress": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "codeHash": {
      -                "type": "string"
      -              },
      -              "mode": {
      -                "type": "string"
      -              },
      -              "resolvedVia": {
      -                "type": "string"
      -              },
      -              "targetUnresolved": {
      -                "type": "boolean"
      -              }
      -            },
      -            "required": [
      -              "mode",
      -              "resolvedVia",
      -              "codeHash"
      -            ],
      -            "type": "object"
      -          },
      -          "unsupportedReason": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "required": [
      -          "chainId",
      -          "address",
      -          "block",
      -          "target",
      -          "analysis",
      -          "releaseIsCurrent",
      -          "disclaimer",
      -          "status",
      -          "lowConfidence",
      -          "functionsDone",
      -          "functionsTotal",
      -          "functionCount"
      -        ],
      -        "type": "object"
      -      },
      -      "links": {
      -        "properties": {
      -          "web": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "web"
      -        ],
      -        "type": "object"
      -      },
      -      "meta": {
      -        "properties": {
      -          "asOfBlock": {
      -            "minimum": 0,
      -            "type": [
      -              "integer",
      -              "null"
      -            ]
      -          },
      -          "cached": {
      -            "type": "boolean"
      -          },
      -          "chain": {
      -            "type": "string"
      -          },
      -          "coverage": {
      -            "additionalProperties": {
      -              "type": "integer"
      -            },
      -            "propertyNames": {
      -              "type": "string"
      -            },
      -            "type": [
      -              "object",
      -              "null"
      -            ]
      -          },
      -          "docs": {
      -            "type": "string"
      -          },
      -          "timestamp": {
      -            "minimum": 0,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "chain",
      -          "timestamp",
      -          "cached",
      -          "docs"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "data",
      -      "meta",
      -      "links"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "error": {
      -        "properties": {
      -          "code": {
      -            "type": "string"
      -          },
      -          "details": {
      -            "type": [
      -              "object",
      -              "null"
      -            ]
      -          },
      -          "message": {
      -            "type": "string"
      -          },
      -          "requestId": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "required": [
      -          "code",
      -          "message"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "data": {
      +        "properties": {
      +          "address": {
      +            "type": "string"
      +          },
      +          "analysis": {
      +            "properties": {
      +              "codeHash": {
      +                "type": "string"
      +              },
      +              "computedAt": {
      +                "type": "string"
      +              },
      +              "release": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "codeHash",
      +              "release",
      +              "computedAt"
      +            ],
      +            "type": "object"
      +          },
      +          "block": {
      +            "type": "integer"
      +          },
      +          "bodies": {
      +            "items": {
      +              "properties": {
      +                "kind": {
      +                  "type": "string"
      +                },
      +                "selector": {
      +                  "type": "string"
      +                },
      +                "text": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "kind",
      +                "text"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "body": {
      +            "properties": {
      +              "kind": {
      +                "type": "string"
      +              },
      +              "selector": {
      +                "type": "string"
      +              },
      +              "text": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "text"
      +            ],
      +            "type": "object"
      +          },
      +          "chainId": {
      +            "type": "integer"
      +          },
      +          "disclaimer": {
      +            "type": "string"
      +          },
      +          "functionCount": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "functions": {
      +            "items": {
      +              "properties": {
      +                "arguments": {
      +                  "items": {
      +                    "properties": {
      +                      "type": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "bodyOmitted": {
      +                  "type": "boolean"
      +                },
      +                "candidateCount": {
      +                  "minimum": 0,
      +                  "type": "integer"
      +                },
      +                "decodeStatus": {
      +                  "type": "string"
      +                },
      +                "hasBody": {
      +                  "type": "boolean"
      +                },
      +                "kind": {
      +                  "type": "string"
      +                },
      +                "lowConfidence": {
      +                  "type": "boolean"
      +                },
      +                "mutability": {
      +                  "type": "string"
      +                },
      +                "name": {
      +                  "type": "string"
      +                },
      +                "selector": {
      +                  "type": "string"
      +                },
      +                "signature": {
      +                  "type": "string"
      +                },
      +                "status": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "kind",
      +                "status",
      +                "arguments",
      +                "lowConfidence",
      +                "hasBody"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "functionsDone": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "functionsTotal": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "language": {
      +            "type": "string"
      +          },
      +          "lowConfidence": {
      +            "type": "boolean"
      +          },
      +          "nextCursor": {
      +            "type": "string"
      +          },
      +          "outputLimited": {
      +            "type": "boolean"
      +          },
      +          "releaseIsCurrent": {
      +            "type": "boolean"
      +          },
      +          "status": {
      +            "type": "string"
      +          },
      +          "target": {
      +            "properties": {
      +              "codeAddress": {
      +                "type": "string"
      +              },
      +              "codeHash": {
      +                "type": "string"
      +              },
      +              "mode": {
      +                "type": "string"
      +              },
      +              "resolvedVia": {
      +                "type": "string"
      +              },
      +              "targetUnresolved": {
      +                "type": "boolean"
      +              }
      +            },
      +            "required": [
      +              "mode",
      +              "resolvedVia",
      +              "codeHash"
      +            ],
      +            "type": "object"
      +          },
      +          "unsupportedReason": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "chainId",
      +          "address",
      +          "block",
      +          "target",
      +          "analysis",
      +          "releaseIsCurrent",
      +          "disclaimer",
      +          "status",
      +          "lowConfidence",
      +          "functionsDone",
      +          "functionsTotal",
      +          "functionCount"
      +        ],
      +        "type": "object"
      +      },
      +      "links": {
      +        "properties": {
      +          "web": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "web"
      +        ],
      +        "type": "object"
      +      },
      +      "meta": {
      +        "properties": {
      +          "asOfBlock": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "cached": {
      +            "type": "boolean"
      +          },
      +          "chain": {
      +            "type": "string"
      +          },
      +          "coverage": {
      +            "additionalProperties": {
      +              "type": "integer"
      +            },
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          "docs": {
      +            "type": "string"
      +          },
      +          "timestamp": {
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "chain",
      +          "timestamp",
      +          "cached",
      +          "docs"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "data",
      +      "meta",
      +      "links"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "details": {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "requestId": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With readOnlyHint=true already covering safety, the description goes well beyond annotations: unanalysed code triggers a refused call with decompilation_pending and retryAfterSeconds (usually under a minute), per-account daily analysis limits while reading is unlimited, ~512 KiB page sizes, and bodies over the limit returned without text (textState withheld_for_size, textLength). It additionally discloses that the reconstruction is best-effort, that responses may come from a cache (meta.cached, meta.timestamp, meta.asOfBlock), and how freshness is anchored to a block.

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?

Front-loads the answer shape (table of contents, then bodies, then paging), then usage, then arguments, then freshness — a sensible order for an agent scanning before a call. It is dense and near the upper bound of useful length; the paging explanation is repeated once in the prose and again in the arguments paragraph, which is the main trim opportunity.

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?

For a 7-parameter read tool with an output schema, the definition covers everything an agent needs: what is returned by default vs with selector or bodies, how to page to completion, what happens on a cold contract, freshness and caching semantics, and plan/rate constraints. Return-value detail (meta.asOfBlock, meta.cached, meta.timestamp) is described where it affects interpretation rather than merely restating the output schema.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3, but the prose adds real semantics on top: cursor paging must reuse the same other arguments and the absence of nextCursor proves completeness even when the page is exactly limit-long, selector returns a single body and cannot be combined with bodies or cursor, and the default target resolves one hop through a proxy while self uses the address's own code. It does not add format detail beyond the schema for address, chain_id, or block.

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?

Opens with a specific verb-and-resource framing (code reconstructed as readable Solidity-like pseudocode) and a precise scope: contracts with or without published source, resolved through proxy/beacon/minimal-proxy/EIP-7702 to the code that actually runs. It explicitly distinguishes itself from get_contract_selectors and get_contract_disassembly, so an agent can route correctly without opening another schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a positive use case ("Use it to understand what an unverified contract does") and two explicit exclusions with the named alternatives: not for the selectors its bytecode refers to, not for the instructions behind a body's pcs. It also states access gating (works on the Intelligence and Investigation plans) and that it is not the right tool when you only need bytecode or selector lists.

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