Skip to main content
Glama

Finish an upload

upload_finish

Completes a previously prepared storage upload and registers its media in the explicit project. A completed main-video upload starts media analysis, including transcript, shot and silence indexing.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_id": "<project_id>",
      "storage_key": "<storage_key>"
    },
    "name": "upload_finish"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNo
roleNoOptional and valid only with kind='clip'. Marks a reference-only Shorts style clip.
partsNoMultipart uploads only: [{part_number, etag}] in order
filenameNo
upload_idNoMultipart uploads only
duration_sNoOptional locally probed media duration in seconds.
project_idYesExplicit project identifier for this request. The connection's navigation pointer does not select the target.
storage_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / project_id / description
      Added value: +"Explicit project identifier for this request. The connection's navigation pointer does not select the target."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare this is a non-read-only, non-destructive, non-idempotent mutation, so the safety profile is covered. The description adds real value by disclosing the downstream side effect (main-video uploads trigger transcript, shot and silence indexing), but it omits the consequence of the non-idempotent hint — e.g., that repeating a finish with the same storage_key may fail or duplicate — and says nothing about orphaned/incomplete uploads.

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 sentences, front-loaded with the action and followed by the downstream effect; nothing is redundant or padded.

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?

For an 8-parameter mutation with no output schema, the description covers what happens after success only in terms of analysis being kicked off. It does not say what identifier is returned, whether analysis is asynchronous, or what the caller should do next (poll index_status / wait_for_job), leaving a meaningful gap for an agent chaining calls.

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 coverage is 63%, so the schema already documents role, parts, upload_id and duration_s. The description only reinforces that project_id is an explicit target rather than the navigation pointer, which the schema text already says; it adds no meaning for kind, multipart parts/upload_id, or how filename and duration_s interact with probing.

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 pair (completes / registers) and the resource (a previously prepared storage upload), and scopes the result to the explicit project. The phrase 'previously prepared' signals it is the second half of a two-step flow, though it never names the upload_start sibling outright.

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?

Usage is only implied: the agent must infer that this runs after an upload has been prepared (presumably via upload_start) and never gets explicit when-not guidance, such as what to do for multipart versus single-part uploads or how it relates to insert_media for already-hosted assets.

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.