Skip to main content
Glama

Finish Media Upload

media_upload_finish

Verify uploaded bytes and save a reusable workspace asset after presigned PUT. Returns contentHashSha256, fileSizeBytes and mimeType.

Input Schema

NameRequiredDescriptionDefault
fileNameYesName of the uploaded file
projectIdNoOptional project ID to associate the upload with. UUID string.
storageKeyYesStorage key for the uploaded file
contentTypeYesMIME type of the file
workspaceIdNoOptional workspace ID when projectId is not provided. Defaults to the user's default workspace. UUID string.
fileSizeBytesYesSize of the uploaded file in bytes
autoTranscribeNoRequest transcription for video uploads.
autoSuggestShortsNo
contentHashSha256NoOptional expected SHA-256; mismatching bytes are rejected before deduplication. 64-character hex string.
autoProcessEnabledNoEnable media analysis after upload.
autoDescribeAfterTranscribeNo

Output Schema

NameRequiredDescriptionDefault
mediaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / autoDescribeAfterTranscribe
      Added value: +{
      +  "default": false,
      +  "type": "boolean"
      +}
    • addedInput schema / properties / autoProcessEnabled
      Added value: +{
      +  "default": true,
      +  "description": "Enable media analysis after upload.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / autoSuggestShorts
      Added value: +{
      +  "default": true,
      +  "type": "boolean"
      +}
    • addedInput schema / properties / autoTranscribe
      Added value: +{
      +  "default": true,
      +  "description": "Request transcription for video uploads.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / contentHashSha256 / description
      Previous value: -"Optional SHA-256 hex hash of file bytes for dedupe optimization. 64-character hex string."New value: +"Optional expected SHA-256; mismatching bytes are rejected before deduplication. 64-character hex string."
  2. Changed1 schema field changed
    • changedInput schema / properties / storageKey / description
      Previous value: -"Storage key returned from media_upload_start"New value: +"Storage key for the uploaded file"
  3. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare non-readOnly, non-idempotent, non-destructive, so the safety profile is covered. The description adds that it verifies bytes and persists a reusable asset, but does not disclose what happens on retry (annotations say not idempotent, so duplicates are plausible) or hash-mismatch behavior beyond what the schema already states.

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?

Two tightly written sentences with the action and flow position front-loaded, and no filler. Every clause earns its place.

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

Completeness3/5

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

An output schema exists, so enumerating return fields ('contentHashSha256, fileSizeBytes, mimeType') is redundant. For an 11-parameter, non-idempotent mutation that ties into workspace/project association and several auto-processing flags, the description says nothing about those side effects, leaving real gaps.

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 82%, so the schema already documents nearly all 11 parameters. The description only echoes contentHashSha256 verification, which is already described in the schema, adding no new parameter meaning. Baseline 3 applies.

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?

States a specific verb and resource ('verify uploaded bytes and save a reusable workspace asset') and places the call in the upload flow ('after presigned PUT'), so an agent can distinguish it from media_upload_start and media_upload_file. It stops short of naming any sibling explicitly, so it is clear but not fully differentiated.

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 phrase 'after presigned PUT' gives clear sequential context that tells the agent when this finalization step applies. It gives no exclusions or retry/abort conditions, but the trigger condition is unambiguous.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources