Skip to main content
Glama

capture_and_decrypt

Capture live TLS traffic and decrypt it using a key log file to view plaintext HTTP/application data in real time.

Instructions

Capture live TLS traffic and immediately show decrypted plaintext.

This tool saves the capture to a PCAP file and then decrypts it using the provided TLS key log file. The application generating traffic must write its session keys to keylog_file during capture (set SSLKEYLOGFILE env var before launching Chrome, Firefox, curl, Python, etc.).

Workflow:

  1. Set SSLKEYLOGFILE=C:/path/keys.log before launching the target app

  2. Call this tool pointing at the same keys.log

  3. Browse or make HTTPS requests in the target app

  4. The tool returns decrypted HTTP/application data

Args: interface: Network interface to capture on (from list_interfaces) keylog_file: Path to the TLS key log file written by the target app output_pcap: Path where the captured PCAP will be saved for later analysis packet_count: Number of packets to capture (default: 200, max: 500) duration: Capture duration in seconds (default: 30, max: 60) display_filter: Optional display filter (e.g. "tls" or "tcp.port == 443")

Returns: Summary of captured packets and decrypted TLS stream content

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
durationNo
interfaceYes
keylog_fileYes
output_pcapYes
packet_countNo
display_filterNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses the side effect of saving a PCAP file, the decryption mechanism, the need for the keylog file, and the return of decrypted content. It could mention the need for elevated permissions, but for most use cases the behavioral disclosure is solid.

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 well-structured and efficient: a one-sentence summary, a numbered workflow, a compact args list, and a returns line. Every element adds value, and there is no filler or repetition of the schema.

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

Completeness5/5

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

Given the tool's complexity (6 parameters, no schema descriptions, no annotations), the description covers all necessary aspects: purpose, prerequisites, workflow, parameter meanings, and output. The output schema is present, so the description appropriately summarizes return values rather than detailing them.

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?

With 0% schema description coverage, the description fully compensates by explaining every parameter: interface, keylog_file, output_pcap, packet_count (with default and max), duration (with default and max), and display_filter. This goes well beyond the schema's bare titles and provides actionable meaning.

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 opens with a specific verb+resource: 'Capture live TLS traffic and immediately show decrypted plaintext.' This clearly differentiates it from siblings like capture_live (which likely only captures) and follow_tls_stream (which decrypts from existing captures). The workflow makes the unique value obvious.

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 use: it requires the target app to write session keys to a keylog file and explains the prerequisite SSLKEYLOGFILE environment variable. It does not explicitly mention alternatives or when not to use this tool, but the workflow makes the appropriate usage scenario evident.

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