Skip to main content
Glama

Check a file against platform specs

check_platform_spec
Read-only

Grades a local video against platform upload specs for Instagram, TikTok, YouTube, X, and LinkedIn, then reports failures with concrete fixes.

Instructions

Grade a video against one or more platforms' upload guidelines (Instagram Reels/feed, TikTok, YouTube Shorts/long-form, X, LinkedIn). Checks container, codec, pixel format, HDR, aspect ratio, resolution, frame rate, duration, size, bitrate, audio, fast start and GPS metadata, and gives a fix for anything that fails.

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": {
      "path": "<path>"
    },
    "name": "check_platform_spec"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path to a local media file. ~ is expanded.
platformsNoPlatforms to check: instagram_reels, instagram_feed, tiktok, youtube_shorts, youtube, x, linkedin
custom_specNoOverride parts of the platform spec, e.g. { max_duration_seconds: 900 } if your account allows longer uploads.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

readOnlyHint=true is consistent with a grading/checking operation, so there is no contradiction. The description adds real value by enumerating the exact checks performed (container, codec, pixel format, HDR, aspect ratio, resolution, frame rate, duration, size, bitrate, audio, fast start, GPS metadata) and stating that a fix is supplied for failures, but it says nothing about result format, severity levels, or whether anything is written to disk.

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 sentences, front-loaded with the purpose and followed by the concrete check list; the long comma sequence of checks earns its place as scope disclosure. Slightly dense, but there is no filler or repetition.

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?

There is no output schema, so the description bears the burden of explaining the return value; 'gives a fix for anything that fails' only partially does that (no mention of per-platform grouping or pass/fail structure). For a read-only, 3-parameter tool with a rich nested custom_spec, this is adequate but leaves the response shape underspecified.

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 100% and the custom_spec override already carries an inline example, so the schema does the heavy lifting. The description only echoes that multiple platforms can be checked and does not explain precedence between custom_spec and platform specs, which is the one genuinely ambiguous interaction.

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?

A specific verb ('Grade') plus a specific resource ('a video against one or more platforms' upload guidelines'), with the platform list enumerated so scope is unambiguous. It does not name a sibling such as conform_for_platform or probe_media to separate itself, so it stays at 4 rather than 5.

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?

The purpose implies usage (validate a file before uploading to a platform), and the platform enumeration hints at when it applies, but there is no explicit when-to-use/when-not guidance. Nothing tells the agent to prefer conform_for_platform when it actually needs a fixed file, or probe_media when it only wants raw stream data.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.