Skip to main content
Glama

decomp.function

Decompile a function to recover C source code for reverse-engineering analysis, helping inspect and understand binary behavior.

Instructions

Decompile a function and return recovered C source code.

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": {
      "session_id": "<session_id>",
      "function_start": "<function_start>"
    },
    "name": "decomp.function"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes
timeout_secsNo
function_startYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and says only what the output is. It does not state that the operation is read-only and does not modify the binary, does not mention session requirements or the meaning of timeout_secs, does not say what happens when decompilation fails or times out, and does not describe the shape of the returned source (single string, truncated, with comments).

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?

A single front-loaded sentence with no filler, and the key output (C source) is stated immediately. It is efficient but borders on under-specified rather than merely concise.

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?

For a read-only decompilation call with no output schema, the description covers the essential contract (function in, C source out) but leaves too much unsaid about the dual-typed function_start parameter and timeout behavior. The absence of annotations means more behavioral disclosure was warranted.

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

Parameters2/5

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

Schema description coverage is 0% across three parameters, so the description must compensate, and it does not. It never explains that function_start accepts either an integer address or a string (presumably a symbol name), nor what session_id identifies, nor what timeout_secs bounds.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: it decompiles a function and returns recovered C source. That distinguishes it from mutation-oriented siblings such as decomp.global.rename, but it does not distinguish it from decomp.ast or decomp.high_function.summary, which also produce views of a function's internals.

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?

There is no statement of when to prefer this tool over decomp.ast or decomp.high_function.summary, and no prerequisite conditions such as an active session are given. The agent has to infer the choice between decomposition views from sibling names alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools