Skip to main content
Glama
REMnux

REMnux MCP Server

Official
by REMnux

check_tools

Verify which REMnux malware analysis tools are installed and available. Get a summary of installed versus missing tools across all file type categories.

Instructions

Check which REMnux analysis tools are installed and available. Returns a summary of installed vs missing tools across all file type categories.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function that checks tool availability. It collects command names from the tool registry, verifies container connectivity, runs batch 'which' commands to check if tools are installed, and returns a summary with available/missing counts and individual tool statuses.
    export async function handleCheckTools(deps: HandlerDeps) {
      const startTime = Date.now();
      const { connector } = deps;
    
      // Collect unique command names from the tool registry
      const toolNames = new Set<string>();
      for (const def of toolRegistry.all()) {
        // Extract the command name (first word)
        const cmdName = def.command.split(/\s/)[0];
        toolNames.add(cmdName);
      }
    
      const tools: Array<{ tool: string; available: boolean; path?: string }> = [];
    
      // Verify container connectivity before checking individual tools
      try {
        await connector.executeShell("true", { timeout: 5000 });
      } catch (error) {
        return formatError("check_tools", toREMnuxError(error), startTime);
      }
    
      try {
        // Batch all tool checks in a single shell call for consistent PATH handling
        // This matches the approach used in suggest-tools.ts
        const uniqueCommands = [...toolNames];
        const availableCommands = new Map<string, string>();
    
        if (uniqueCommands.length > 0) {
          const checks = uniqueCommands.map((c) => `which ${c} 2>/dev/null`).join("; ");
          const result = await connector.executeShell(checks, { timeout: 30000 });
    
          // Parse "which" output - each line is a path if command was found
          for (const line of (result.stdout || "").split("\n")) {
            const path = line.trim();
            if (path && path.startsWith("/")) {
              // Extract command name from path (e.g., "/usr/bin/speakeasy" -> "speakeasy")
              const cmdName = path.split("/").pop();
              if (cmdName) {
                availableCommands.set(cmdName, path);
              }
            }
          }
        }
    
        // Build results for each tool
        const results = uniqueCommands.map((name) => {
          const path = availableCommands.get(name);
          if (path) {
            return { tool: name, available: true, path };
          }
          return { tool: name, available: false };
        });
        tools.push(...results);
      } catch {
        // Graceful degradation: mark all tools as unavailable if which calls fail
        for (const name of toolNames) {
          tools.push({ tool: name, available: false });
        }
      }
    
      const available = tools.filter(t => t.available).length;
      const missing = tools.filter(t => !t.available).length;
    
      return formatResponse("check_tools", {
        summary: { total: tools.length, available, missing },
        tools: tools.sort((a, b) => a.tool.localeCompare(b.tool)),
      }, startTime);
    }
  • Schema definition for check_tools tool - empty object (no input parameters required) with inferred TypeScript type.
    export const checkToolsSchema = z.object({});
    export type CheckToolsArgs = z.infer<typeof checkToolsSchema>;
  • src/index.ts:217-223 (registration)
    MCP tool registration in the main index file. Registers the check_tools tool with its name, description, schema shape, and handler function reference.
    // Tool: check_tools - Check tool availability
    server.tool(
      "check_tools",
      "Check which REMnux analysis tools are installed and available. Returns a summary of installed vs missing tools across all file type categories.",
      checkToolsSchema.shape,
      () => handleCheckTools(deps)
    );
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 tool's function and output ('Returns a summary of installed vs missing tools'), which is adequate for a read-only operation, but does not cover aspects like performance, error handling, or system impact. No contradiction with annotations exists.

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 a single, well-structured sentence that efficiently conveys the tool's purpose and output without unnecessary details. It is front-loaded with the core action and resource, making it easy to understand quickly.

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?

Given the tool's simplicity (0 parameters, no annotations, no output schema), the description is complete enough for a basic read operation. However, it lacks details on output format or potential errors, which could be useful for an agent. It meets minimum viability but has gaps in behavioral context.

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?

The tool has 0 parameters, and schema description coverage is 100%, so no parameter documentation is needed. The description appropriately omits parameter details, focusing on the tool's purpose and output, which aligns with the baseline for zero parameters.

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 ('check which... are installed and available') and resource ('REMnux analysis tools'), distinguishing it from siblings like 'run_tool' or 'suggest_tools' that involve different operations on tools. It precisely defines the scope as checking installation status across all file type categories.

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?

The description provides no guidance on when to use this tool versus alternatives like 'suggest_tools' or 'get_tool_help', nor does it mention prerequisites or exclusions. It implies usage for checking tool availability but lacks explicit context for selection among sibling tools.

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