Skip to main content
Glama
Heretek-RE

re-il2cpp

by Heretek-RE

resolve_method_rva

Resolve a method's fully qualified name to its RVA in GameAssembly.dll, handling both stripped and non-stripped binaries by returning the RVA or a IL2CPP mangled name for byte search.

Instructions

Resolve a method FQN to its GameAssembly.dll RVA.

Walks the global-metadata.dat typeDef/method tables to find the method, then parses GameAssembly.dll to look for the s_Il2CppCodeRegistrations global. If the binary is non-stripped and contains the registration symbols, the pointer table's RVA is reported. If the binary is stripped (the default for shipped Unity games), the function returns rva_status="binary_stripped" plus the IL2CPP mangled name to use with re-rizin.search_bytes.

Requires pip install lief (an optional dep — install via pip install re-il2cpp[rva]).

Args: metadata_path: path to global-metadata.dat gameassembly_path: path to GameAssembly.dll method_fqn: "Namespace.ClassName.MethodName"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metadata_pathYes
gameassembly_pathYes
method_fqnYes
Behavior4/5

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

No annotations are provided, so the description carries full burden. It details internal operations (walking tables, parsing binary), handles both stripped and non-stripped cases, and mentions an optional dependency. It does not cover all failure modes but provides good transparency.

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?

The description is well-structured with a summary line, process explanation, return scenarios, dependency note, and args list. It is front-loaded and each sentence adds value, though could be slightly shorter.

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?

No output schema exists, but the description explains return values (rva_status, mangled name) and covers input and logic. It is fairly complete for the tool's complexity, though exact output format is not specified.

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 0%, but the description includes an 'Args' section with brief explanations for each parameter, including the format of method_fqn. This adds meaningful context beyond the schema's type information.

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 'Resolve a method FQN to its GameAssembly.dll RVA.' It clearly identifies the specific resource and action, distinguishing it from sibling tools that list or search metadata.

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

Usage Guidelines3/5

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

The description explains what the tool does and mentions a related sibling tool (re-rizin.search_bytes) but does not provide explicit guidance on when to use this tool vs alternatives or when not to use it. Usage context is implied but not explicit.

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/Heretek-RE/re-il2cpp'

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