Skip to main content
Glama

Prepare video upload

prepare_video_upload

Prepare a private MP4/MOV/WebM reference upload, at most 100 MiB and 30 seconds. PUT the exact bytes using the returned URL/headers, then complete_video_upload. Starts no depth processing or generation.

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": {
      "request": "<request>"
    },
    "name": "prepare_video_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYes

Output Schema

NameRequiredDescriptionDefault
methodNoPUT
headersYesUse these exact headers for byte transfer.
max_bytesYesSource byte limit.
upload_idYesSession to complete after transferring bytes; not usable as a video input yet.
expires_atYesUpload session expiry in UTC.
upload_urlYesSensitive short-lived upload URL. Transfer bytes without API/OAuth credentials.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish this is a non-read-only, non-destructive, open-world, non-idempotent call, and the description adds real behavior: the upload is private, there are size and duration ceilings, and the caller must PUT the exact bytes to a returned URL before the upload is usable. It does not state what happens to an abandoned upload (expiry/cleanup) or whether the returned URL is single-use, which are the remaining gaps for a non-idempotent mutation.

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?

Two tight sentences with the constraints front-loaded and the follow-up step at the end; nearly every clause carries information. Minor redundancy between 'at most 100 MiB and 30 seconds' and the later 'PUT the exact bytes' instruction is negligible.

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 to describe the returned URL and headers, so the description need not enumerate return values, and it correctly points at them. For a non-idempotent staged-upload tool it is nearly complete, missing only upload expiry/abandonment behavior and error expectations.

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 reported at 0%, so the description must carry the semantics, and it does convey the allowed media types and the 100 MiB / 30-second bounds. However these largely restate what the enum and maximum already encode, and it adds nothing about the 'request' wrapper object or the filename field's client-vs-server-path distinction, so it only partially compensates.

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 verb and resource ('Prepare a private MP4/MOV/WebM reference upload') plus hard constraints (100 MiB, 30 seconds), and names the follow-up tool complete_video_upload, so the agent can distinguish it from the completion step and from generation tools.

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 an explicit call sequence: prepare, PUT exact bytes to the returned URL/headers, then call complete_video_upload. It also rules out a common misread by saying it 'starts no depth processing or generation.' It does not explicitly gate against prepare_image_upload or say when to prefer generate_video instead, so it stops just short of full when/when-not guidance.

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