Skip to main content
Glama

decompile_method

Decompile a single method from a .NET assembly to C# by providing the assembly path and the method's fully qualified name.

Instructions

Decompile a single method to C# via ilspycmd.

Args: path: path to a .dll / .exe .NET assembly fqn: "Namespace.Type::MethodName" (the :: separator matches the C++ convention; do not use . between type and method name — those are both parts of the type FQN)

Returns::

{"path": "...", "fqn": "...", "code": "C# method body..."}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
fqnYes
Behavior3/5

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

Describes return format (JSON with path, fqn, code) and mentions decompiling to C#. No annotations provided, so full burden on description. Lacks disclosure of side effects, prerequisites, or error conditions.

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?

Starts with a clear one-line summary, followed by structured argument list and expected return format. Every sentence serves a purpose, no fluff.

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?

Coverage is good: purpose, parameters, return value documented. Could mention potential errors (e.g., invalid path or FQN), but the tool is simple and the description is sufficient for common use.

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

Parameters5/5

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

Schema has 0% description coverage, but description fully explains both parameters: 'path' as .NET assembly path, 'fqn' with detailed format and separator rules. Adds meaning well beyond schema.

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?

Description clearly states the verb 'decompile', resource 'single method', and tool used 'ilspycmd'. Distinguishes from sibling 'decompile_type' which targets a whole type.

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?

Provides detailed argument format (especially FQN with '::'), which aids correct invocation. However, no explicit guidance on when to use this vs siblings like 'decompile_type'.

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-dotnet'

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