Skip to main content
Glama
saucelabs

Sauce Labs MCP Server

Official
by saucelabs

filter_har_data

Filters HAR data from Sauce Labs test jobs by category, domain, resource type, or status code with in-memory caching for instant subsequent queries.

Instructions

    Filters HAR data with in-memory caching for efficient multiple queries.

    **Key difference from get_network_har_file**: This method caches the full HAR
    data in memory after the first call, making subsequent filtering operations
    instant without re-downloading from Sauce Labs.

    First call for a job_id downloads and caches the full HAR data.
    Subsequent calls filter the cached data instantly.

    :param job_id: The Sauce Labs Job ID
    :param filter_category: Predefined categories ("analytics", "social", "api", etc.)
    :param custom_domains: Domain patterns to include
    :param resource_types: Resource types to include (Script, XHR, Image, etc.)
    :param status_codes: HTTP status codes to include
    :return: Filtered HAR data with cache metadata

    Examples:
    - filter_har_data(job_id, filter_category="analytics") # First call: downloads + caches
    - filter_har_data(job_id, filter_category="social")    # Subsequent: instant filtering
    - filter_har_data(job_id, custom_domains=["facebook"]) # Also instant
    

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 disclosing key behavioral traits: caching mechanism ('caches the full HAR data in memory after the first call'), performance characteristics ('subsequent filtering operations instant'), and the two-phase operation (first call downloads+caches, subsequent calls filter cached data). It doesn't mention error handling, rate limits, or authentication needs, but covers core behavior thoroughly.

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 well-structured and appropriately sized. It starts with a clear purpose statement, then highlights key differentiation, explains the caching behavior, documents parameters with examples, and provides concrete usage scenarios. Every sentence adds value with no redundancy or fluff.

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 5 parameters with 0% schema coverage and no output schema, the description does a good job explaining the tool's purpose, behavior, and basic parameter usage. However, it doesn't fully document all parameter semantics or describe the return value format ('Filtered HAR data with cache metadata' is vague). For a filtering tool with multiple parameters, more detail on expected outputs would be helpful.

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 description coverage is 0%, so the description must compensate. It provides param documentation with examples showing usage patterns for job_id, filter_category, and custom_domains. It explains filter_category accepts predefined categories like 'analytics', 'social', 'api', etc., and gives concrete examples. However, it doesn't fully document all 5 parameters' semantics (e.g., exact format for resource_types, status_codes).

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: 'Filters HAR data with in-memory caching for efficient multiple queries.' It specifies the verb ('filters'), resource ('HAR data'), and distinguishes it from sibling 'get_network_har_file' by highlighting caching behavior. This is specific and differentiates from alternatives.

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?

The description provides explicit guidance on when to use this tool versus alternatives: 'Key difference from get_network_har_file: This method caches the full HAR data in memory... making subsequent filtering operations instant without re-downloading.' It explains the caching benefit for multiple queries and distinguishes from the sibling tool that presumably downloads fresh data each time.

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