Skip to main content
Glama

Complete chunked media upload

complete_multipart_upload

Assemble uploaded chunks into a final media file once all parts are PUT and ETags collected. Verifies object, size, quota, and magic bytes, then records media; failed assembly aborts automatically.

Instructions

Complete a chunked upload: the server assembles the uploaded parts, verifies the stored object (existence, size, magic bytes, storage quota) and records the media file — same verification and response shape as finalize_media_upload. A failed assembly automatically aborts the upload. Use this when all parts of a chunked upload are PUT and their ETags collected.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
partsYesEvery uploaded part with its ETag.
r2KeyYesThe r2Key returned by create_multipart_upload.
widthNoPixel width (images/video).
heightNoPixel height (images/video).
durationNoDuration in seconds (video).
fileNameYesOriginal file name.
mimeTypeYesFile MIME type.
uploadIdYesThe uploadId returned by create_multipart_upload.
sizeBytesYesFile size in bytes.
Install Server

TDQS

A4.4/5.0
Behavior5/5

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

The description discloses substantial behavior beyond the sparse annotations: server-side assembly, verification of existence, size, magic bytes and storage quota, recording the media file, and automatic abort on failed assembly. This gives the agent a realistic picture of side effects and failure modes.

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 two sentences long, front-loads the action, and each clause adds meaningful information: process, verification, response similarity, failure behavior, and invocation condition. There is no filler.

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?

For a complex 9-parameter operation with no output schema, the description covers the workflow, verification, and side effects. The only mild gap is that 'same verification and response shape as finalize_media_upload' defers detail to another tool's definition, but the behavior described is otherwise self-sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all parameters and their meanings. The description adds little beyond the schema, except implicitly reinforcing that parts carry ETags collected from PUT requests.

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 states a specific verb and resource: 'Complete a chunked upload' and explains the assembly, verification, and media-file recording process. It also references finalize_media_upload, which helps position this tool relative to a closely related sibling.

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?

It explicitly says 'Use this when all parts of a chunked upload are PUT and their ETags collected,' giving a clear condition for invocation. It does not explicitly state when not to use it or name a non-chunked alternative, but the guidance is sufficient for typical routing.

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

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/azeemkafridi/bulkpublish-api'

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