Skip to main content
Glama
saucelabs

Sauce Labs MCP Server

Official
by saucelabs

get_network_har_file

Retrieve and filter HAR file data from Sauce Labs test jobs to analyze network requests by category, domain, resource type, or status code.

Instructions

    Retrieves and filters HAR file data from a Sauce Labs test job.

    The tool can intelligently filter requests to reduce data size and focus analysis.
    Use filter categories for common patterns, or specify custom filters for detailed control.

    :param job_id: The Sauce Labs Job ID (works for VDC jobs with network capture enabled)
    :param filter_category: Predefined filter categories:
        - "analytics" - Google Analytics, Facebook Pixel, Adobe Analytics, Comscore, etc.
        - "api" - Internal API calls (same domain as main site, JSON responses)
        - "fonts" - Font loading requests (woff, woff2, ttf, etc.)
        - "images" - Image resources (jpg, png, webp, svg, etc.)
        - "scripts" - JavaScript files and external scripts
        - "errors" - Failed requests (4xx, 5xx status codes)
        - "slow" - Requests taking longer than 1 second
        - "third-party" - All external domain requests
    :param custom_domains: List of domain patterns to include (e.g., ["google", "facebook", "api.company.com"])
    :param resource_types: List of resource types to include (e.g., ["Script", "XHR", "Image"])
    :param status_codes: List of HTTP status codes to include (e.g., [200, 404, 500])
    :return: Filtered HAR data structure with only matching requests

    Examples:
    - get_network_har_file(job_id, filter_category="analytics")
    - get_network_har_file(job_id, filter_category="api")
    - get_network_har_file(job_id, custom_domains=["retailmenot.com"], resource_types=["XHR"])
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYes
filter_categoryNo
custom_domainsNo
resource_typesNo
status_codesNo
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by explaining the tool's filtering behavior, data reduction capabilities, and return format ('Filtered HAR data structure with only matching requests'). It also mentions prerequisites ('works for VDC jobs with network capture enabled'). The main gap is lack of information about rate limits, authentication needs, or error handling.

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?

The description is well-structured with purpose statement, usage guidance, parameter documentation, and examples. While comprehensive, some sections could be more concise (e.g., the filter_category list is quite detailed). Overall, most sentences earn their place by providing essential 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?

For a tool with 5 parameters, 0% schema coverage, no annotations, and no output schema, the description does an excellent job covering purpose, parameters, and usage. The main gap is the lack of output format details beyond 'Filtered HAR data structure' - more specifics about the return structure would be helpful given the complexity.

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

Parameters5/5

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

With 0% schema description coverage, the description fully compensates by providing detailed parameter explanations. Each parameter gets clear documentation: 'job_id' is explained with context, 'filter_category' includes comprehensive enum values with examples, and other parameters have usage examples. The description adds significant value beyond the bare 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?

The description clearly states the tool's purpose with specific verbs ('retrieves and filters') and resources ('HAR file data from a Sauce Labs test job'). It distinguishes itself from sibling tools by focusing on network HAR file data, unlike tools like 'get_job_details' or 'get_log_json_file' which handle different job-related data.

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

Usage Guidelines4/5

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

The description provides clear context on when to use this tool ('for network capture enabled jobs') and offers guidance on filter usage ('intelligently filter requests to reduce data size and focus analysis'). However, it doesn't explicitly state when NOT to use it or mention specific alternatives among sibling tools like 'filter_har_data'.

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/saucelabs/sauce-api-mcp'

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