Skip to main content
Glama
HexStrike AI MCP Agents

HexStrike AI MCP Agents

by liusc45

foremost_carving

Carve files from disk images or devices using Foremost, specifying file types and an output directory to recover evidence with enhanced logging.

Instructions

Execute Foremost for file carving with enhanced logging.

Args: input_file: Input file or device to carve output_dir: Output directory for carved files file_types: File types to carve (jpg,gif,png,etc.) additional_args: Additional Foremost arguments

Returns: File carving results

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": {
      "input_file": "<input_file>"
    },
    "name": "foremost_carving"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_typesNo
input_fileYes
output_dirNo/tmp/foremost_output
additional_argsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.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 must carry the full burden of behavioral disclosure. It states only 'enhanced logging' and 'File carving results', without saying whether output_dir is created or overwritten, whether the operation requires elevated privileges or raw-device access, how long carving takes, or whether the run is safe to repeat.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The structure is front-loaded and short, but it reads like boilerplate docstring output: 'enhanced logging' and 'Returns: File carving results' add no information, and the Args block largely restates parameter titles.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, but for a tool that writes files to disk and may touch raw devices, the description leaves out permissions, side effects, and runtime expectations. With no annotations and zero schema description coverage, the definition does not give the agent enough to invoke it confidently.

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 0%, so the description must compensate, and it partly does by explaining each of the four parameters: input_file is a file or device, output_dir is where carved files land, file_types takes comma-separated extensions such as jpg,gif,png, and additional_args passes raw Foremost flags. It does not say what format additional_args expects or how file_types interacts with Foremost's configuration, so the compensation is incomplete.

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 names a concrete verb and resource: 'Execute Foremost for file carving', and the Args section makes clear it carves files out of an input file or device. It does not distinguish itself from sibling tools such as binwalk_analyze that also extract content from binaries, so the agent must know what Foremost is to choose correctly.

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 when-to-use guidance, no statement of preconditions (for example, root access to read a raw device), and no mention of an alternative tool. The only guidance is a parameter listing, which is not the same as telling the agent when this tool is the right choice.

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