Skip to main content
Glama

get_dataset_upload_urls

Obtain signed upload URLs for dataset files too large or local for direct fetching, then PUT file bytes to the provided URL.

Instructions

Get signed upload URLs for dataset files the server cannot fetch.

Backs ``POST /prod/v1/trainers/datasets/{dataset_id}/get-upload-endpoint``.
Use this for local files and for anything over 150 MB: the caller
PUTs each file's bytes to the returned ``upload_url`` using the
returned ``method`` and ``headers``.

Args:
    dataset_id: Target dataset.
    filename_to_byte_size: Map of filename → exact size in bytes,
        e.g. ``{"img_0001.jpg": 2000000, "img_0001.txt": 12000}``.
        The signature is derived from the size, so a wrong value is
        rejected by storage at PUT time.

Signed URLs are short-lived; call this again for a fresh one if it
expires. After every PUT succeeds, poll ``get_dataset_status`` until
the dataset is ``READY``.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataset_idYes
filename_to_byte_sizeYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.1.0

TDQS

A5/5.0
Behavior5/5

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

The description goes well beyond the annotations: it discloses that signed URLs are short-lived, that a stale URL should be re-fetched, that the signature is derived from the byte size so incorrect values fail at PUT time, and that the caller should poll get_dataset_status until READY. This gives agents a realistic model of the operation's lifecycle.

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 front-loaded with the core purpose and each subsequent sentence adds necessary usage or behavioral information. The Args section is compact, and the workflow guidance about short-lived URLs and polling earns its place.

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?

For a two-parameter tool with no output schema, the description gives everything an agent needs: what to pass, what comes back (upload_url, method, headers), how to use those values, and what to do after uploads succeed. The full lifecycle from request to READY is covered.

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 is the sole source of parameter meaning. It defines dataset_id as the target dataset and gives a concrete example for filename_to_byte_size, including the critical detail that exact byte sizes are required because the signature is derived from them.

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 first sentence states a specific verb and resource: it gets signed upload URLs for dataset files the server cannot fetch. This clearly separates it from siblings like upload_dataset_file_from_url and upload_dataset_text_file by emphasizing local files and server-unfetchable content.

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 explicitly says to use this tool for local files and for anything over 150 MB. It also communicates the alternative scenario ('server cannot fetch'), implying when a different upload path should be used, and explains the PUT workflow that follows.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/runcomfy-com/runcomfy-mcp'

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