Skip to main content
Glama

Finish video upload

finish_video_upload

Confirm a video upload once every byte is stored. Distinctful verifies the stored file and attaches it to the draft. Read durationMs, width, and height from the file, for example with ffprobe.

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": {
      "contentCardId": "<contentCardId>",
      "mediaId": "<mediaId>",
      "durationMs": "<durationMs>",
      "width": "<width>",
      "height": "<height>"
    },
    "name": "finish_video_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
widthYesVideo width in pixels.
heightYesVideo height in pixels.
altTextNo
mediaIdYesThe mediaId start_video_upload returned.
durationMsYesVideo duration in milliseconds, as from ffprobe.
contentCardIdYesThe draft’s content card id, from create_draft or get_calendar.

Output Schema

NameRequiredDescriptionDefault
idNoId of the created or changed record, when there is one.
urlYesWhere the user can see the result in Distinctful.
doneYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this is a mutating, non-idempotent, non-destructive, closed-world operation. The description adds real value beyond that: the server verifies the stored file bytes before attaching, and it surfaces an operational prerequisite (extract durationMs/width/height from the file, e.g. with ffprobe) that no annotation conveys.

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 short sentences, front-loaded with the confirm/verify/attach sequence, with the ffprobe hint last as implementation detail. No filler, though 'Distinctful verifies the stored file' is slightly redundant with the preceding 'once every byte is stored'.

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 return values need not be explained, and five of six parameters are well covered by the schema plus the extraction hint. The only gap is failure behavior if verification finds a corrupt or truncated file, which the agent may need to know to recover.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 83%, so the schema already documents most parameters and the baseline is 3. The description adds sourcing guidance for the three numeric fields, telling the agent these must be read from the actual stored file rather than guessed, which the schema only partially states for durationMs.

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?

The description names a specific verb and resource ('Complete the video upload') plus the post-condition ('attaches the media to the draft'), so the agent knows exactly what state transition occurs. It implicitly distinguishes itself from start_video_upload ('once every byte is stored') but never names that sibling or cancel_video_upload explicitly.

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?

It gives a clear calling condition: only after every byte is stored, and the upload is verified before attachment. It does not state what to do on verification failure or when cancel_video_upload would be the better call, but the sequencing context 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