Skip to main content
Glama
saucelabs

Sauce Labs MCP Server

Official
by saucelabs

get_log_json_file

Retrieves the complete test log in structured JSON format for Sauce Labs VDC jobs, including commands, timing, and screenshots.

Instructions

    Shows the complete log of a Sauce Labs test, in structured json format.

    IMPORTANT: This method only works with Virtual Device Cloud (VDC) jobs. For Real Device
    Cloud (RDC) jobs, use get_specific_real_device_job_asset with asset_type='appiumLogs'
    or 'deviceLogs' instead.

    If this method fails with "asset not found", the job is likely an RDC job - try
    get_specific_real_device_job_asset instead.

    :param job_id: The Sauce Labs Job ID (VDC jobs only).
    :return: Structured JSON log data with test commands, timing, and screenshots.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Describes behavior: returns structured JSON log, only for VDC jobs, and explains failure scenario. No annotations exist, so description carries full burden. It could add that operation is read-only but covers key points.

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?

Well-structured with clear sections (IMPORTANT, param, return). The 'If this method fails' sentence adds value but slightly increases length. Generally efficient.

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

Completeness5/5

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

Given the single parameter and presence of output schema, the description provides sufficient context. It explains return format and key constraints, making the tool fully understandable.

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 has 0% description coverage, but description adds meaning: job_id is Sauce Labs Job ID, constrained to VDC jobs. Adds value beyond the schema definition.

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?

Clearly states the tool shows the complete log of a Sauce Labs test in structured JSON format, specifying it works only with VDC jobs. This distinct purpose differentiates it from siblings like get_specific_real_device_job_asset.

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?

Explicitly states when to use (VDC jobs) and when not (RDC jobs), providing an alternative tool (get_specific_real_device_job_asset) and a troubleshooting hint for failure cases.

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