Skip to main content
Glama
heizaheiza

Charles MCP Server

get_traffic_entry_detail

Retrieve detailed network traffic data for inspection by providing an entry ID from Charles Proxy summaries, enabling drill-down analysis of specific HTTP requests and responses.

Instructions

Load one traffic entry detail view for drill-down inspection. Requires entry_id from a prior summary/query call. For history entries, pass recording_path from the summary. For live entries, pass capture_id from the summary. Keep include_full_body=false unless you specifically need the raw body text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYes
entry_idYes
capture_idNo
recording_pathNo
include_full_bodyNo
max_body_charsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
detailYes
sourceYes
entry_idYes
warningsNo

Implementation Reference

  • The tool 'get_traffic_entry_detail' is defined as an async function decorated with '@mcp.tool()'. It uses 'traffic_query_service' from the dependencies to fetch the details of a traffic entry based on the provided parameters.
    async def get_traffic_entry_detail(
        ctx: ToolContext,
        source: str,
        entry_id: str,
        capture_id: Optional[str] = None,
        recording_path: Optional[str] = None,
        include_full_body: bool = False,
        max_body_chars: int = 2048,
    ) -> TrafficDetailResult:
        """Load one traffic entry detail view for drill-down inspection.
        Requires entry_id from a prior summary/query call.
        For history entries, pass recording_path from the summary.
        For live entries, pass capture_id from the summary.
        Keep include_full_body=false unless you specifically need the raw body text."""
        deps = get_tool_dependencies(ctx)
        return await deps.traffic_query_service.get_detail(
            source=source,
            entry_id=entry_id,
            capture_id=capture_id,
            recording_path=recording_path,
            include_full_body=include_full_body,
            max_body_chars=max_body_chars,
        )
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It provides useful workflow context (dependency on prior calls) and a performance warning about include_full_body implying large payloads. However, it lacks disclosure on safety profile (read-only vs. destructive), rate limits, or what occurs if both capture_id and recording_path are provided.

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 efficiently structured with five sentences: purpose first, prerequisites second, conditional parameter logic next, and performance warning last. Every sentence earns its place with zero redundancy or filler text. Information is appropriately front-loaded.

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

Completeness3/5

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

Given the tool has 6 parameters with conditional logic and an output schema (which excuses return value explanation), the description is incomplete. The gaps in 'source' and 'max_body_chars' documentation with 0% schema coverage, combined with no safety annotations, leave the agent without sufficient context to fully understand required inputs and side effects.

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 0%, so the description must compensate. It successfully adds semantic context for entry_id, recording_path, capture_id, and include_full_body (explaining relationships and when to use them). However, it completely omits explanation for the required 'source' parameter and 'max_body_chars', leaving 2 of 6 parameters undocumented.

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?

The description clearly states the tool 'Load[s] one traffic entry detail view for drill-down inspection,' specifying the singular resource and action. However, it does not explicitly differentiate from similar siblings like read_live_capture or get_recording_snapshot, requiring the agent to infer the distinction from 'detail view' versus other operations.

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

Usage Guidelines5/5

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

Excellent explicit guidance: it states the prerequisite ('Requires entry_id from a prior summary/query call'), provides conditional logic for mutually exclusive parameters ('For history entries... For live entries...'), and gives a clear when-not recommendation ('Keep include_full_body=false unless...'). This directly addresses the workflow sequence and parameter selection.

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/heizaheiza/Charles-mcp'

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