Skip to main content
Glama
heizaheiza

Charles MCP Server

by heizaheiza

get_capture_analysis_stats

Analyze network traffic from live captures or saved recordings to provide coarse traffic class counts, helping identify patterns and issues in API calls, HTTP requests, or errors.

Instructions

Return coarse traffic class counts for a live capture or saved recording.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYes
capture_idNo
recording_pathNo
presetNoapi_focus
scan_limitNo

Implementation Reference

  • The handler for the `get_capture_analysis_stats` tool, which delegates to the `traffic_query_service`.
    async def get_capture_analysis_stats(
        ctx: ToolContext,
        source: str,
        capture_id: Optional[str] = None,
        recording_path: Optional[str] = None,
        preset: TrafficPreset = "api_focus",
        scan_limit: int = 500,
    ) -> CaptureAnalysisStatsResult:
        """Return coarse traffic class counts for a live capture or saved recording."""
        deps = get_tool_dependencies(ctx)
        return await deps.traffic_query_service.get_stats(
            source=source,
            capture_id=capture_id,
            recording_path=recording_path,
            preset=preset,
            scan_limit=scan_limit,
        )

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