Skip to main content
Glama

upload_files

Upload multiple local files to Mediagraph in one operation. Automatically uses multipart for large files, and supports appending to sessions or contributions.

Instructions

Upload multiple files from the local filesystem in one operation.

Session behavior:

  • Default: creates one fresh session, uploads all files into it, finalizes it.

  • upload_guid: appends to an existing session; does NOT finalize (caller's job).

  • contribution_id: routes the new session through a contribution.

Files >16 MiB use S3 multipart automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathsYesArray of absolute paths to files on the local filesystem
upload_guidNoAppend to an existing upload session (from create_upload_session). Caller is responsible for finalizing with set_upload_done.
contribution_idNoOptional: ID of a contribution (upload link). Mutually exclusive with upload_guid.
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so excellently. It discloses the default session lifecycle (create, upload, finalize), the non-finalizing append behavior, the contribution routing side-effect, and automatic S3 multipart for large files. These are meaningful behavioral traits not apparent from the schema alone.

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 compact and well-structured: a one-sentence main purpose, then a bulleted list for session behaviors, and a final sentence for large-file handling. Every sentence adds distinct information with no redundancy, and the key use case is front-loaded.

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 tool with session management complexity and multiple mode variants, the description covers the default behavior, parameter-driven modifications, the caller's finalization responsibility, and large-file handling. The lack of an output schema is acceptable because the tool's primary effect is side-effectual (uploading files), and the description sufficiently sets expectations.

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 100%, so baseline is 3. The description adds value by grouping parameters into session behavior scenarios (fresh session, append, contribution), giving the parameters contextual meaning beyond their individual schema descriptions. It also clarifies the caller's responsibility for finalization, which enriches the parameter semantics.

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 opens with 'Upload multiple files from the local filesystem in one operation,' which clearly specifies the verb (upload), resource (files), and scope (multiple, from local filesystem). It also differentiates from sibling tools like upload_file (singular) and create_upload_session by framing the operation as a batched, session-managed action.

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 for when to use each parameter: default for fresh session, upload_guid for appending, contribution_id for contribution routing. It does not explicitly name alternatives (e.g., upload_file for single files) or state when not to use the tool, but the parameter-specific behavior serves as strong usage guidance.

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/mediagraph-io/mediagraph-mcp'

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