Skip to main content
Glama

analyzer_export_pcap

Export buffered USB traffic to a .pcap file for Wireshark or Packetry analysis, setting the output path, nanosecond timestamps, and SOF packet inclusion as needed.

Instructions

Write the buffered capture to a pcap file (LINKTYPE_USB_2_0 = 288, opens in Wireshark/Packetry). Also available as resource cynthion://capture/last.pcap.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "analyzer_export_pcap"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoOutput .pcap path (default: cynthion_capture_<timestamp>.pcap).
nanosecondNoUse nanosecond timestamps.
include_sofNoInclude SOF packets.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds useful behavior beyond that: the file format/encodability and the fact the same data is exposed as a resource. It omits whether an existing file at the given path is overwritten, whether the buffer is consumed or retained, and any error conditions — meaningful gaps for a file-writing tool.

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

Conciseness4/5

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

Two compact sentences, front-loaded with the action and output format, with the resource alternative appended. No filler, though the parenthetical format note is slightly dense and could be trimmed.

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?

With full schema coverage, an output schema, defaulted optional parameters and explicit safety annotations, the description supplies everything else an agent needs: what is written, in what format, and where else the same data is reachable. Remaining unknowns (overwrite behavior) are minor for this tool's complexity.

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% and all three parameters (path, nanosecond, include_sof) are documented in the schema with defaults, so the schema carries the parameter burden. The description adds no parameter-level meaning beyond the schema baseline.

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?

States a specific verb+resource ('Write the buffered capture to a pcap file') and adds the on-disk format detail (LINKTYPE_USB_2_0 = 288, opens in Wireshark/Packetry), so the agent knows exactly what artifact is produced. It does not explicitly contrast with siblings such as analyzer_read or analyzer_summary, so it stops short of full sibling differentiation.

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

Usage Guidelines3/5

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

Implies the use case (persisting the live capture for external analysis) and names one alternative access path ('Also available as resource cynthion://capture/last.pcap'), which is genuinely useful routing. However, there is no explicit when-to-use vs. when-not guidance against the sibling read/summary tools, and no stated prerequisites (e.g., that a capture must already be running or buffered).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.