Skip to main content
Glama

Social media studio

Check Media Compatibility

validate_post_media
Read-only

Pre-flight check for media that was generated, edited or picked outside the library. The result starts with summary: one plain sentence per definite problem (for example "X takes videos up to 20 minutes; this one is 52 minutes. Trim it or leave X out."); relay those to the user as they are. create_post, schedule_post, update_post and convert_draft run the same check at create time and refuse the same problems. Compares the same files against the media rules of every requested destination and returns, per destination, the status, the measured width/height/duration/codec/frame rate, the configured limits, and one issue per mismatch with a fix string naming the exact change required (for example the crop dimensions for an aspect-ratio failure). Library files are measured from their bytes, and the measurements are not saved; a not-yet-uploaded file is judged from the width, height and durationSeconds given in files, and every omitted property yields needs_review instead of a pass. Read-only: does not upload, publish or change files. Resolution, aspect ratio, codec and frame rate mismatches are the most common cause of a post failing at publish time. The limits are Social media studio configured limits, not a guarantee of platform acceptance.

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": {
      "targets": "<targets>"
    },
    "name": "validate_post_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoLocal file metadata for a check BEFORE uploading. Supply this OR fileIds, never both. Empty array checks a text post. Include the measured width, height, duration, codec and frame rate when known — every omitted property becomes a needs_review warning instead of a pass.
fileIdsNoOrdered media library file IDs from presign_media_upload or list_media. Upload the actual bytes with HTTP PUT first. Use a matching postType. On update, replaces all attachments; [] clears them.
targetsYes

Output Schema

NameRequiredDescriptionDefault
codeYes
resultsYes
sizeUnitNo
nextStepsYes
ruleSourceNo
limitationsYes
decisionRequiredYes
publicationAttemptedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the readOnly/destructive/openWorld annotations: nothing is uploaded, published or changed; measurements are not persisted; a not-yet-uploaded file is judged from supplied width/height/durationSeconds; every omitted property yields needs_review rather than a pass; and the configured limits are not a guarantee of platform acceptance. The instruction to relay the `summary` sentences verbatim is a concrete output-handling behavior.

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?

Front-loaded with the return-shape and relay instruction, then the comparison semantics and the read-only guarantee — a sensible order. It is dense but mostly earns its length; the needs_review rule and the "most common cause of failure" sentence repeat ideas also present elsewhere, costing some tightness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Although an output schema exists, the description still gives the one piece an agent needs that the schema cannot: treat `summary` as user-facing text and relay it verbatim. Combined with the read-only guarantee, the limits caveat and the needs_review behavior, nothing material is missing for a 3-parameter pre-flight check.

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?

With 67% schema coverage, the description still adds meaning: it clarifies how unuploaded files are evaluated versus library files measured from bytes, and that omission of a measured property degrades the verdict to needs_review. The files-versus-fileIds exclusivity is already in the schema, so the description is additive but partly redundant.

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+resource: a pre-flight compatibility check that compares supplied files against per-destination media rules and returns status, measurements, limits and fixes. It explicitly separates itself from create_post, schedule_post, update_post and convert_draft, which run the same check at create time, so an agent can pick the right tool without opening a schema.

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?

Scopes usage to media generated, edited or picked outside the library, and notes that the create-time siblings refuse the same problems — a clear signal to use this tool earlier. It does not explicitly say when not to use it (e.g., versus get_media_rules or list_media), so it falls short of full exclusion 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