Skip to main content
Glama

Finalize dossier media upload

finalize_dossier_media_upload

Step two: register the uploaded video in the dossier and return the Markdown. Reads the bytes and determines the type FROM THEM — a signed PUT address accepts whatever it is given, and a is read by content, not by Content-Type. An MP4 container that is really AVIF, or an HTML file, is rejected here and the object removed. Also records whether the file carries the avc1 brand: a positive indication of H.264 where present, and NOT used to reject, because the codec can sit in a moov atom at the end of the file and refusing a valid video would be the worse error.

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

Input Schema

NameRequiredDescriptionDefault
alt_textNo
filenameNo
upload_idYesExactly as returned by create_dossier_media_upload_url.
poster_image_idNoAn image of the same dossier as the still frame.
duration_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior5/5

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

Annotations only declare non-read-only, non-destructive, non-idempotent; the description goes far beyond by explaining that content is sniffed from bytes rather than Content-Type, that mismatched containers are rejected and the object removed, and that the avc1 brand is recorded but never used to reject. It even states the output (Markdown), which no output schema provides.

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?

Purpose is front-loaded in the opening clause, and the following sentences are dense with non-redundant rationale. The avc1 explanation is long but justifies a non-obvious design choice an agent could otherwise misread as a validation rule.

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?

Behavioral and return-value coverage is unusually good for a mutation tool with no output schema, but the definition leaves four optional parameters entirely unexplained on a 5-param tool with 40% schema coverage. An agent knows what the tool does to the file but not what to supply alongside it.

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

Parameters2/5

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

With five parameters and only 40% schema description coverage, the description should compensate but instead explains none of alt_text, filename, poster_image_id, or duration_seconds. The only parameter-adjacent detail (avc1 brand) is not a parameter, and upload_id's provenance lives in the schema, not the description.

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?

"Step two: register the uploaded video in the dossier and return the Markdown" gives a specific verb (register), resource (uploaded video), and output (Markdown). The "step two" framing plus the explicit "video" scope distinguishes it from finalize_dossier_image_upload without needing to name the sibling.

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?

"Step two" implies a prerequisite and the ordering relative to the URL-creation step, but the tool is never named in the description and no when-not-to-use guidance or alternatives are offered. Usage is inferable rather than stated.

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