Skip to main content
Glama
REMnux

REMnux MCP Server

Official
by REMnux

get_tool_help

Retrieve command-line help documentation for REMnux malware analysis tools to understand available options, flags, and usage patterns.

Instructions

Get usage help for a REMnux tool. Returns the tool's --help output so you can understand available flags, options, and usage patterns.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toolYesTool name (e.g., 'capa', 'pdfid.py', 'olevba'). Returns the tool's --help output.

Implementation Reference

  • Main handler implementation that executes a REMnux tool with --help or -h flags to retrieve usage information. Validates tool name format, handles timeouts, detects if tool is not installed (exit code 127), and returns formatted response with help output or appropriate error messages.
    export async function handleGetToolHelp(
      deps: HandlerDeps,
      args: GetToolHelpArgs,
    ) {
      const startTime = Date.now();
      try {
        const { connector } = deps;
        const tool = args.tool;
    
        if (!TOOL_NAME_RE.test(tool)) {
          return formatError("get_tool_help", new REMnuxError(
            `Invalid tool name: "${tool}". Use a simple name like 'capa' or 'pdfid.py' (no paths, flags, or shell metacharacters).`,
            "INVALID_INPUT",
            "validation",
            "Provide just the tool name, e.g., 'olevba' not 'olevba -a'",
          ), startTime);
        }
    
        // Try --help first, fall back to -h
        let output = "";
        let exitCode = 0;
    
        for (const flag of ["--help", "-h"]) {
          try {
            const result = await connector.execute([tool, flag], { timeout: 10000 });
            const combined = [result.stdout, result.stderr].filter(Boolean).join("\n").trim();
            exitCode = result.exitCode;
    
            // Detect tool not installed (exit code 127 is the standard shell signal)
            if (result.exitCode === 127) {
              return formatError("get_tool_help", new REMnuxError(
                `Tool '${tool}' not found. It may not be installed on this REMnux system.`,
                "NOT_FOUND",
                "not_found",
                "Use check_tools to see installed tools, or install with apt/pip",
              ), startTime);
            }
    
            if (combined) {
              output = combined;
              break;
            }
          } catch (error) {
            const msg = error instanceof Error ? error.message : String(error);
            if (/timeout/i.test(msg)) {
              return formatError("get_tool_help", new REMnuxError(
                `Timed out running '${tool} ${flag}'`,
                "COMMAND_TIMEOUT",
                "timeout",
                "The tool may require input or not support help flags",
              ), startTime);
            }
            // Continue to next flag
          }
        }
    
        if (!output) {
          return formatError("get_tool_help", new REMnuxError(
            `No help output from '${tool}'. The tool may not be installed or may not support --help/-h.`,
            "EMPTY_OUTPUT",
            "tool_failure",
            "Check that the tool is installed with check_tools, or try run_tool with a specific command",
          ), startTime);
        }
    
        return formatResponse("get_tool_help", {
          tool,
          help: output,
          exit_code: exitCode,
        }, startTime);
      } catch (error) {
        return formatError("get_tool_help", toREMnuxError(error, deps.config.mode), startTime);
      }
    }
  • Schema definition for get_tool_help tool. Defines a single 'tool' parameter as a string that accepts tool names like 'capa', 'pdfid.py', or 'olevba' and returns the tool's --help output.
    export const getToolHelpSchema = z.object({
      tool: z.string().describe(
        "Tool name (e.g., 'capa', 'pdfid.py', 'olevba'). Returns the tool's --help output."
      ),
    });
    export type GetToolHelpArgs = z.infer<typeof getToolHelpSchema>;
  • src/index.ts:208-215 (registration)
    Tool registration in the MCP server. Registers 'get_tool_help' with a description explaining it returns --help output to understand available flags, options, and usage patterns, using the getToolHelpSchema for input validation and handleGetToolHelp as the handler function.
    // Tool: get_tool_help - Get usage help for a REMnux tool
    server.tool(
      "get_tool_help",
      "Get usage help for a REMnux tool. Returns the tool's --help output " +
      "so you can understand available flags, options, and usage patterns.",
      getToolHelpSchema.shape,
      (args) => handleGetToolHelp(deps, args)
    );
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It describes the output ('Returns the tool's --help output') and purpose, but lacks details on potential errors (e.g., if the tool doesn't exist), rate limits, or authentication needs. It adds some context but does not fully compensate for the absence of annotations.

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?

The description is appropriately sized and front-loaded, with two concise sentences that directly state the purpose and output without unnecessary details. Every sentence earns its place by clarifying the action and result, making it efficient and easy to understand.

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?

Given the tool's low complexity (1 parameter, no output schema, no annotations), the description is reasonably complete for its purpose. It explains what the tool does and what it returns, though it could benefit from more behavioral details (e.g., error handling) to fully compensate for the lack of annotations and output schema.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents the single parameter 'tool' with its description. The description adds minimal value beyond the schema by reinforcing that it returns help output, but does not provide additional semantics like examples of valid tool names or constraints beyond what the schema states.

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 clearly states the specific action ('Get usage help') and resource ('for a REMnux tool'), distinguishing it from siblings like 'run_tool' or 'check_tools' by focusing on documentation retrieval rather than execution or verification. It explicitly mentions what is returned ('the tool's --help output') to clarify the output format.

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

Usage Guidelines4/5

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

The description provides clear context for when to use this tool ('to understand available flags, options, and usage patterns'), implying it's for learning about tool capabilities before execution. However, it does not explicitly state when not to use it or name alternatives like 'run_tool' for actual tool execution, which would be helpful for differentiation.

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/REMnux/remnux-mcp-server'

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