Skip to main content
Glama

Social Media Image Resizer API - exact sizes for Instagram, Facebook, X, LinkedIn, YouTube, TikTok

social_image_resizer
Read-onlyIdempotent

Send one image and get it back in the exact pixel size each network wants: Instagram post, portrait and story, Facebook post and cover, X post and header, LinkedIn post and banner, YouTube thumbnail and banner, TikTok cover, Pinterest pin, link preview image, profile photo. Up to 8 sizes per call. Fill and crop from the centre, or keep the whole picture on a background colour. JPG, PNG or WebP out. Call it without a file to get the size table. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.003/call via x402 at https://radarbg.com/x402/social-image-resizer.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "presets": "instagram-post,youtube-thumbnail",
      "fileContent": "iVBORw0KGgoAAAANSUhEUgAAAEAAAAAgCAIAAAAt/+nTAAAAOUlEQVR42u3PAQkAMAgAMH0XkxnfEm8hCFuDZfXEZS+OExAQEBAQEBAQEBAQEBAQEBAQEBAQENj3AREOAbOcmaPYAAAAAElFTkSuQmCC"
    },
    "name": "social_image_resizer"
  }
}

Input Schema

NameRequiredDescriptionDefault
fitNocover = fill the size and crop the edges, contain = whole image on a backgroundcover
modeNosizes = only list every size, no image neededresize
formatNoOutput formatjpg
presetsNoOne or more sizes, comma separated, e.g. instagram-post,youtube-thumbnail. instagram-post, instagram-portrait, instagram-story, facebook-post, facebook-cover, x-post, x-header, linkedin-post, linkedin-banner, youtube-thumbnail, youtube-banner, tiktok-cover, pinterest-pin, og-image, profile-photo
backgroundNoBackground colour for fit=contain, hex, default #ffffff
fileContentNoThe image as base64 (JPG, PNG, WebP, HEIC...), max 20 MB

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld, and the description goes well beyond them: an 8-size cap per call, crop-from-centre vs background-fill behavior, accepted input codecs, a 5 calls/day per IP free limit, and both auth mechanisms (X-API-Key or x402 per-call payment). What it omits is how the returned images are delivered (base64 payload, URLs, or archive), which matters since there is no output schema.

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?

The capability and preset list are front-loaded in the first sentence, then constraints, then pricing/auth. It is dense but nearly every clause carries information; the embedded pricing URL and per-call dollar figure are the only elements leaning toward promotional padding.

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

Completeness4/5

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

For a 6-parameter tool with full schema coverage but no output schema, the description covers inputs, limits, auth and cost well. The remaining gap is the response shape for a multi-size resize result, which the agent must know to chain the output into image_convert or image_to_base64.

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 100%, so the parameter descriptions already carry fit/mode/format/background/presets semantics and the 20 MB base64 limit. The description still adds value beyond the schema by stating the 'up to 8 sizes per call' constraint and restating the crop-from-centre behavior that disambiguates fit=cover in practice.

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 resource ('send one image and get it back in the exact pixel size each network wants') and enumerates the specific presets covered (Instagram post/story, YouTube thumbnail, TikTok cover, og-image, profile-photo). This clearly separates it from the generic image_resize sibling, which has no network-preset framing.

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 explicit operational guidance: call without a file to get the size table, choose fit=cover to crop or fit=contain to letterbox, and notes free tier limits plus two paid auth paths. It does not explicitly say when to prefer the generic image_resize/image_crop siblings instead, which is the one missing routing signal.

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