Skip to main content
Glama

Finish an upload and analyze the video

finish_upload
Idempotent

Call after the file was PUT to the address from upload_video. Checks the file arrived and starts the analysis: transcription, then clip detection. Returns the video id; follow it with get_video until status is completed (a few minutes, longer for long videos), then list_clips. Calling it again for the same upload returns the same video.

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": {
      "upload_id": "<upload_id>"
    },
    "name": "finish_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
upload_idYesThe upload_id returned by upload_video.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and idempotentHint=true, but the description adds real context: it verifies arrival, launches asynchronous work, and gives latency expectations (a few minutes, longer for long videos). It doesn't state what happens on failure (file missing, bad upload_id) or any auth requirement, which keeps it just short of a 5.

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?

Four short sentences, front-loaded with the trigger condition, then the effect, then the return value, then the polling path. No redundant restatement of the title and nothing that could be cut without losing information.

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?

There is no output schema, and the description compensates by stating the tool returns the video id and describing the exact sequence needed to reach clips. For a single-parameter async-workflow tool, an agent has everything needed to call it and proceed correctly.

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 100% and the schema already says upload_id is 'the upload_id returned by upload_video', so the description's mention of the upload address adds only marginal provenance context. With a single fully documented parameter, baseline 3 applies.

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?

States a specific action (finish an upload, check arrival, start analysis) and names the pipeline stages it kicks off (transcription, then clip detection). It clearly distinguishes itself from upload_video (which produces the PUT address) and from get_video/list_clips (which consume the result).

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?

Gives an explicit calling condition (after the file was PUT to the address from upload_video) and an explicit follow-up chain: get_video until status is completed, then list_clips. It also states when re-calling is acceptable because the same video is returned, leaving little to inference.

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