Skip to main content
Glama
saucelabs

Sauce Labs MCP Server

Official
by saucelabs

upload_file_to_storage

Upload app files or executables to Sauce Storage for mobile testing, supporting APK, AAB, IPA, ZIP, and other formats up to 4GB, and receive a unique file ID.

Instructions

    Uploads an app file to Sauce Storage for the purpose of mobile app testing or generic files to be used as Pre-Run
    Executables and returns a unique file ID assigned to the uploaded file.Sauce Storage supports mobile app packages
    in *.apk, *.aab, *.ipa, or *.zip format as well as any other file format.The maximum size of a single file is limited to 4GB.

    :param payload: The path to the file you want to upload.
    :param name: The portion of the payload value that is the actual file name (including the type extension).
    :param description: A description to distinguish your app.
    :param tags: An optional list of comma-separated tag names assigned to the uploaded file. Each tag name length
        must be between 1 and 16 characters. Tag names must only consist of uppercase (A-Z), lowercase (a-z),
        digits (0-9), underscore ("_"), hyphen ("-"), and dot (".") characters. Tag names are case-sensitive. It is
        allowed to assign up to 10 tags to a single file.
    :param project_name: An optional name for the project you want the file (group) to be assigned to. If the
        project doesn't exist, it will be created. Project names can only consist of alphanumeric (uppercase and
        lowercase) characters, along with underscores ("_"), hyphens ("-"), periods ("."), and spaces (" "). Project
        names are case-sensitive and can be max 64 characters long.
    :return: 201	Created.
             400	Bad Request.
             404	Not found.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
nameYes
descriptionYes
tagsYes
project_nameYes
Behavior4/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 effectively describes key behavioral traits: the tool performs a write operation (upload), returns a unique file ID, has a 4GB file size limit, supports specific file formats, and includes HTTP response codes (201, 400, 404) for success and error cases. It doesn't mention authentication requirements, rate limits, or idempotency, but covers essential operational details.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose and key constraints (file formats, size limit), but becomes verbose with parameter documentation that repeats schema-like details. The HTTP return codes section is somewhat redundant for a tool description. While informative, it could be more streamlined by focusing on high-level semantics rather than replicating parameter validation rules.

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 the complexity (5 required parameters, no annotations, no output schema), the description provides substantial context: purpose, usage scenarios, file constraints, parameter semantics, and response codes. It adequately covers what the tool does and how to use it, though it could benefit from more explicit error handling guidance or examples of typical workflows.

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?

The schema description coverage is 0%, so the description must compensate. It provides detailed semantic information for all 5 parameters: 'payload' (path to file), 'name' (file name with extension), 'description' (to distinguish app), 'tags' (optional, comma-separated, with character and length constraints), and 'project_name' (optional, with creation behavior and naming rules). This adds significant value beyond the bare schema, though some parameter details like 'payload' vs 'file_path' naming mismatch could cause confusion.

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's purpose: 'Uploads an app file to Sauce Storage for the purpose of mobile app testing or generic files to be used as Pre-Run Executables and returns a unique file ID assigned to the uploaded file.' It specifies the verb (uploads), resource (app file to Sauce Storage), and distinguishes it from sibling tools like get_storage_files (which retrieves files) by focusing on upload functionality. However, it doesn't explicitly differentiate from other potential upload tools if they existed.

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

Usage Guidelines3/5

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

The description provides some implied usage context by mentioning the purpose (mobile app testing, Pre-Run Executables) and supported file formats (APK, AAB, IPA, ZIP, or any other format). However, it lacks explicit guidance on when to use this tool versus alternatives (e.g., no comparison to other upload methods or sibling tools), and doesn't specify prerequisites or exclusions beyond file size limits.

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