Skip to main content
Glama

Complete video upload

complete_video_upload
Idempotent

Validate uploaded video size, format, duration and dimensions, then return a reusable file_id and measured metadata. No depth processing or generation starts. Use the file in input.reference_video.source, or reuse an owned video asset instead.

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": "complete_video_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
upload_idYes

Output Schema

NameRequiredDescriptionDefault
widthYesDisplayed source width in pixels.
heightYesDisplayed source height in pixels.
objectNofile
sha256YesSHA-256 of the stored source bytes.
file_idYesCompleted video file ID for input.reference_video.source, type=file.
byte_sizeYesValidated source bytes.
mime_typeYesValidated video media type.
duration_secondsYesMeasured source duration; the selected range must fit it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=true, but the description adds genuinely useful behavior: the operation validates and measures rather than generating, and it explicitly says no depth processing or generation is triggered, which resolves the ambiguity of a non-readOnly hint. It doesn't mention failure behavior when validation fails (e.g., whether the upload is consumed or can be retried).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with what is validated and returned, then the negative constraint, then how to use the result. Every sentence carries information, though the trailing 'or reuse an owned video asset instead' is slightly compressed and takes a moment to parse as an alternative path.

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?

An output schema exists, so omitting return-value detail is fine, and annotations cover idempotency and safety. The description supplies the validation scope, the no-generation guarantee, and the downstream handoff of file_id, which is enough for an agent to invoke it correctly. Only the upload_id's origin (prepare step) and validation-failure behavior are left implicit.

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?

The single upload_id parameter has no schema description (0% coverage) and the description never explains it beyond the phrase 'uploaded video'. The bulk of the description's detail concerns the returned file_id and its downstream use, not the input. With one self-evidently named parameter this is acceptable, but the description does not compensate for the coverage gap.

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 — validate the uploaded video's size, format, duration and dimensions — and names the concrete outputs (file_id plus measured metadata). It also rules out generation/depth processing, which separates it from the generate_video family. It doesn't explicitly name prepare_video_upload as the required predecessor, so sibling differentiation is partial rather than complete.

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?

Gives clear usage context: call it to finalize an uploaded video and obtain a reusable file_id, and tells the caller where that file_id goes (input.reference_video.source) with a fallback of reusing an owned asset. It also states what will NOT happen ('No depth processing or generation starts'). Missing an explicit statement that prepare_video_upload must run first, so the preconditions are implied rather than spelled out.

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