Skip to main content
Glama

Check a photo or video

check_media
Read-onlyIdempotent

Check one public photo or video link against each platform's limits before posting or sending it: format, file size, dimensions, aspect ratio and video length. targets: instagram, instagram_story, linkedin, facebook, facebook_reel, tiktok, whatsapp, instagram_dm, messenger, linkedin_dm. For each target the answer says ok, will_be_changed (Spaces fits photos it sends itself: compressed, converted to JPEG or padded, never cropped) or refused, with the error code (media_too_large, bad_aspect_ratio, unsupported_format, video_too_long, video_too_short, image_too_small), the limit and the actual value. Videos are never changed. Posts nothing and counts nothing.

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

Input Schema

NameRequiredDescriptionDefault
urlYes
targetsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world behavior, so the safety profile is covered. The description still adds real value: it explains what 'will_be_changed' means (compression, JPEG conversion, padding, never cropped), that videos are never altered, and that nothing is posted or counted. Return-shape detail is described, but there is no mention of rate limits, auth requirements, or how private or inaccessible URLs are handled. A modest 3.

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 purpose and dense with useful detail; the target list and error-code list are long but directly actionable. Slightly crowded into one block, but nothing is filler.

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?

No output schema exists, yet the description fully explains the return semantics: ok / will_be_changed / refused, the specific error codes, and that limit plus actual value are reported. For a two-parameter read-only pre-flight check, that is complete.

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 coverage is 0%, so the description must carry parameter meaning: it clarifies that the url is a single public link, and that targets are per-platform limit checks returning a verdict each. It does not explain target-specific nuances or constraints such as the 10-item maximum or URL length limits.

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 ('Check one public photo or video link against each platform's limits') plus the moment of use ('before posting or sending it'), and enumerates the ten targets. This clearly separates it from siblings like get_post_media, which retrieves media rather than validating it.

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 clear usage context ('before posting or sending it') and makes the non-effects explicit ('Posts nothing and counts nothing'). It does not name an alternative or state when not to use it, so it stops 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