Skip to main content
Glama

load_traffic_file

Import HTTP traffic flows from HAR or mitmproxy files into the traffic database for inspection and analysis without a running proxy.

Instructions

Import flows from a HAR or mitmproxy flow file into the traffic database. After import, all traffic inspection tools work on the imported data. No proxy needs to be running. Args: file_path: Path to .har or .mitm/.flow file append: If True, keep existing traffic. If False (default), clear first. scope: Comma-separated list of domains to filter by during import. Only flows matching these domains are imported.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
appendNo
scopeNo

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 provides useful behavioral context: it explains the append parameter's effect on existing data (clear if false) and that no proxy is needed. It could be more transparent about failure modes or async behavior, but adequately discloses key aspects.

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 concise with four sentences plus a formatted Args list. It front-loads the purpose, is well-structured, and contains no extraneous information.

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?

Given the three parameters and an output schema (present but not shown), the description covers inputs well and ties to other tools. It lacks mention of error handling or file size limits, but is generally complete for a straightforward import tool.

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?

Schema coverage is 0%, so the description compensates well by explaining file_path (supports .har, .mitm, .flow), append (keeps or clears existing traffic), and scope (comma-separated domain filter). This adds significant meaning beyond the schema's type-only definitions.

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 imports flows from HAR or mitmproxy files into the traffic database, with specific verb and resource. It distinguishes from siblings like clear_traffic and start_proxy by focusing on importing offline captured data.

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?

The description mentions no proxy needs to be running and that imported data works with other inspection tools, implying offline usage. However, it does not explicitly state when to use this tool versus alternatives like start_proxy for live capture, leaving usage context somewhat implied.

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/snapspecter/mitmproxy-mcp'

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