Skip to main content
Glama

Resize an image to social media dimensions

resize_social_image
Read-onlyIdempotent

Crop and resize an image to an exact social media preset: instagram-post (1080x1080), instagram-portrait (1080x1350), instagram-story (1080x1920), youtube-thumbnail (1280x720), x-post (1200x675), x-header (1500x500), linkedin-post (1200x627), or facebook-post (1200x630). The cover crop keeps the center subject. Send base64 or a public URL. Private addresses are refused and the decoded file is capped at 10 MB. Returns the image as base64 PNG.

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": {
      "file": "<file>",
      "preset": "<preset>"
    },
    "name": "resize_social_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesThe image. Provide url or data.
presetYesSocial platform preset with exact pixel dimensions.

Output Schema

NameRequiredDescriptionDefault
dataYesResized image as base64 PNG.
bytesYes
widthYes
heightYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld/idempotent annotations: it discloses the cover-crop strategy ('keeps the center subject'), SSRF protection (private addresses refused), a 10 MB decoded-file cap, and the return format (base64 PNG). These are behavioral facts an agent cannot infer from annotations or schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the action, then the preset catalog, then constraints and return type. No filler sentences; every clause (crop strategy, size cap, URL policy, output type) carries operational weight.

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?

Output schema exists so return values need not be explained, yet the description still names base64 PNG. Input modes, size cap, URL policy, and crop behavior are all covered, leaving nothing an agent needs missing for this 2-parameter tool.

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 baseline is 3, and the description adds value by attaching pixel dimensions to each preset name and restating the two accepted input modes ('base64 or a public URL'). That materially helps preset selection beyond the bare enum.

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 ('Crop and resize an image') and pins the scope to exact social media presets, enumerating all eight. This distinguishes it from the generic resize_image sibling without needing to name 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?

Clear context: this tool is for fixed social platform dimensions, with the preset list making the applicable cases concrete. It stops short of exclusions or naming alternatives (e.g. use resize_image for arbitrary dimensions), so it lands at 4 rather than 5.

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.