Skip to main content
Glama

export_objects

Extract files transferred over application protocols from a PCAP file. Reconstruct HTTP, SMB, FTP, TFTP, IMF, or DICOM exchanges and save them to an output directory for forensic recovery.

Instructions

Extract transferred files from a PCAP using tshark's --export-objects.

Reconstructs files exchanged over application protocols and writes them to output_dir. Useful for forensic recovery of HTTP downloads, SMB file transfers, FTP uploads/downloads, and TFTP transfers.

Args: file_path: Path to the PCAP file protocol: Protocol layer to extract from — one of: http, smb, tftp, imf, dicom output_dir: Directory where extracted files will be written (must exist)

Returns: List of extracted files with sizes, or error message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
protocolYes
file_pathYes
output_dirYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the burden. It discloses that files are reconstructed and written to output_dir, that output_dir must exist, and that returns a list with sizes or an error. It doesn't mention overwrite behavior or permissions, but the core side effects are clear.

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 compact and well-structured, leading with the tool's purpose, then a use-case sentence, followed by Args and Returns sections. Every sentence earns its place with 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?

The description covers purpose, parameters, return value, and a key prerequisite (output_dir exists). Given the tool has an output schema, return details are sufficient. It lacks edge-case info like overwrite behavior or error handling specifics, but overall it is complete enough for correct invocation.

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 description coverage is 0%, so the description must compensate. It does so fully: file_path is 'Path to the PCAP file', protocol is 'Protocol layer to extract from — one of: http, smb, tftp, imf, dicom', and output_dir is 'Directory where extracted files will be written (must exist)'. This adds crucial detail and enum values.

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 tool extracts transferred files from a PCAP using tshark's --export-objects and writes them to a directory. It names specific protocols (http, smb, tftp, imf, dicom), distinguishing it from sibling tools that analyze packets or extract fields.

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?

It explicitly states the tool is useful for forensic recovery of HTTP downloads, SMB transfers, FTP, and TFTP, providing clear context for when to use it. It does not explicitly exclude alternatives or name when-not-to-use scenarios, but the context is solid.

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/ouonet/tshark-mcp'

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