Skip to main content
Glama

Make the final file for a platform

deliver

Compresses and crops a finished image to platform-specific dimensions, strips metadata, enforces size limits, and checks for empty bands.

Instructions

One step from a finished image to the file a platform wants: exact size (cropped to fill), JPEG at the lowest quality that still looks identical (SSIM), metadata stripped, under the platform's file-size limit, then checked for an empty band. Platforms: linkedin-feed (1080x1350, LinkedIn feed post, portrait 4:5 (takes the most room in a phone feed)); linkedin-square (1080x1080, LinkedIn feed post, square); linkedin-link (1200x627, LinkedIn link preview card, not a feed post); instagram-feed (1080x1350, Instagram feed post, portrait 4:5); instagram-story (1080x1920, Story or reel cover, 9:16; keep text out of the top 14% and bottom 20%); x-post (1600x900, X post image, 16:9); facebook-feed (1080x1350, Facebook feed post, portrait 4:5); youtube-thumbnail (1280x720, YouTube thumbnail, 2 MB limit); github-social (1280x640, GitHub repository social preview, 1 MB limit); og (1200x630, Open Graph link preview).

Input Schema

NameRequiredDescriptionDefault
platformYes
overwriteNo
input_pathYes
output_pathNoDefault: <input folder>/<name>-<platform>.jpg

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.1

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the load well: it discloses cropping behavior ('cropped to fill'), the quality strategy (lowest JPEG quality that passes SSIM), metadata stripping, enforcement of per-platform size limits, and a post-hoc empty-band validation. Gaps remain around overwrite behavior when the target exists and what the tool actually returns, but the mutation semantics are mostly spelled out.

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 and pipeline are front-loaded in the first clause, before the reference-style platform table, which is the right ordering. The platform enumeration makes the single sentence very long and comma-heavy, but each entry carries distinct resolution/intent/size information rather than 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?

For a four-parameter tool with no annotations and no output schema, the description covers the processing contract, per-platform target semantics, and size ceilings — enough for an agent to call it correctly on the first try. Only overwrite semantics and return-value expectations are unaddressed, which are minor against the overall coverage.

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 only 25% (only output_path is documented), so the description must compensate — and it does heavily for the most important parameter, giving every platform enum value a resolution, use case, and in some cases a byte limit (2 MB YouTube, 1 MB GitHub). input_path and overwrite are not explained anywhere, and overwrite's default-false implication is left implicit, so it is not fully compensating.

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 concrete verb and outcome: turn a finished image into the exact file a platform expects, and enumerates the processing steps (crop-to-fill, JPEG/SSIM, metadata strip, size cap, empty-band check). The platform list with dimensions and intent makes the scope unmistakable and lets an agent tell it apart from neighbors like social_sizes or media_optimize even without naming them.

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?

'One step from a finished image to the file a platform wants' establishes when to reach for it, and several enum entries carry real disambiguation guidance (linkedin-link is a 'link preview card, not a feed post'; instagram-story needs text kept out of the top 14%/bottom 20%). It stops short of naming sibling alternatives (compose, media_optimize, social_sizes) or stating preconditions such as source image requirements.

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