Skip to main content
Glama
MIRAI Intelligence & Research MCP

MIRAI Intelligence & Research MCP

by Tarant336

HTTP traffic analysis

pcap_http_analyze
Read-onlyIdempotent

Reconstruct HTTP/1.x request lines and headers from unencrypted TCP payloads, compute method, path, User-Agent, connection and flood metrics, and flag TLS-encrypted traffic as uninspectable.

Instructions

Reconstruct HTTP/1.x request lines and headers from unencrypted TCP payloads (best effort): methods, Host headers, paths, User-Agents and response status codes. Computes method distribution, path cardinality, User-Agent diversity, requests-per-connection and flags flood-like patterns. TLS-encrypted HTTP cannot be inspected and is explicitly noted. Read-only.

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": {
      "pcapPath": "<pcapPath>"
    },
    "name": "pcap_http_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNNo
pcapPathYesPath to the artifact, relative to the authorized workspace root.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world, non-destructive behavior, and the description reinforces 'Read-only.' Beyond that it discloses substantive traits: the extraction is best-effort, TLS traffic is skipped and explicitly reported, and results include derived metrics plus flood-pattern flagging. It does not describe output shape or how 'flood-like' is thresholded, which keeps it below a 5.

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?

Three tight sentences, front-loaded with what is reconstructed, then computed metrics, then the TLS caveat and safety note. No filler, though the metric enumeration is list-like and could be trimmed slightly.

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?

With no output schema, the description carries the burden of telling the agent what comes back, and it does so by enumerating the extracted fields and computed metrics. Its main hole is the unexplained topN parameter, which matters for a tool that returns distributions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%: pcapPath is documented in the schema (relative to the authorized workspace root), but topN is undocumented in both schema and description. The description's mention of 'method distribution' and 'User-Agent diversity' hints at ranked lists but never ties that to topN's bounds or default, so it adds little meaning beyond the schema.

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?

States a specific verb and resource ('Reconstruct HTTP/1.x request lines and headers from unencrypted TCP payloads') plus the exact artifacts extracted (methods, Host, paths, User-Agents, status codes). It clearly delineates the HTTP layer from the DNS/TLS/flow siblings without needing to name them.

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 gives an explicit exclusion — TLS-encrypted HTTP cannot be inspected — which is real scoping guidance. However, it never states when to pick this over the sibling pcap analyzers (e.g., pcap_analyze, pcap_tls_metadata_analyze) or what prerequisite state the capture must be in.

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