Skip to main content
Glama

Circle Crop Image API - round avatar & rounded-corners transparent PNG/WebP

circle_crop_image
Read-onlyIdempotent

Crop an image into a circle, oval or rounded-corners shape with transparent corners for avatars, logos and profile pictures. Supports zoom, horizontal/vertical offset, corner radius and target pixel size. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.002/call via x402 at https://radarbg.com/x402/circle-crop-image.

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": {
      "size": "256",
      "shape": "circle",
      "format": "png",
      "fileName": "sample.png",
      "fileContent": "iVBORw0KGgoAAAANSUhEUgAAAHgAAABQCAIAAABd+SbeAAAA6klEQVR4nO3cQQ2DABAAwdKgg1cFVQIykIOEyqiIisFDKdsQZv6XXDb3vmFa3jeOd//3AlchdEToiNARoSNCR4SOCB0ROiJ0ROiI0BGhI0JHhI4IHRE6InRE6Mi4Z/jznH+0xmk8Xut3gy46InRE6IjQEaEjQkeEjggdEToidEToiNARoSNCR4SOCB0ROiJ0ROiI0BGhI0JHhI4IHRE6InRE6IjQEaEjQkeEjggdEToidEToiNARoSNCR4SOCB0ZPIFtuOiI0BGhI0JHhI4IHRE6InRE6IjQEaEjQkeEjggdEToidEToiNCRDexBBl0OjJSaAAAAAElFTkSuQmCC"
    },
    "name": "circle_crop_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoOutput size: orig, 1024, 512, 256, 128 or 64orig
zoomNoZoom % (for shape=circle, default 100)
filesNoOr several files: [{fileName, fileContent (base64)}] (up to 60 files, 20 MB total)
shapeNocircle, ellipse or roundedcircle
formatNoOutput format: png or webppng
radiusNoCorner roundness % (0-50, for shape=rounded)
offsetXNoHorizontal pan % (-100 to 100, for shape=circle)
offsetYNoVertical pan % (-100 to 100, for shape=circle)
fileNameNoFile name with extension, e.g. report.pdf
fileContentNoThe file as base64 (a data: URI is fine; 20 MB total decoded limit per call)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / fileContent / description
      Previous value: -"The file as base64 (a data: URI is fine)"New value: +"The file as base64 (a data: URI is fine; 20 MB total decoded limit per call)"
    • changedInput schema / properties / files / description
      Previous value: -"Or several files: [{fileName, fileContent (base64)}]"New value: +"Or several files: [{fileName, fileContent (base64)}] (up to 60 files, 20 MB total)"
    • addedInput schema / properties / files / maxItems
      Added value: +60
  2. Added

TDQS

A3.9/5.0
Behavior5/5

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

Goes well past the annotations by disclosing data-handling ('files are deleted right after the call, nothing stored'), rate limits (5 calls/day per IP), and both auth paths (X-API-Key for the paid tier, x402 per-call). Those are exactly the operational facts an agent needs before invoking a paid, remote image processor.

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-loads the purpose, then capabilities, then privacy, then access/pricing in a logical progression with no filler sentences. The pricing sentence is dense (URLs, currency, header name) but each clause carries decision-relevant information, so it earns its place.

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?

With 10 all-optional parameters, no output schema, and batch input, the description supplies enough context to call it correctly: what it produces, cost/auth models, and deletion guarantees. It omits that a batch of up to 60 files is accepted and says nothing about the return payload, though the schema covers the batch detail.

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 100%, so every parameter is already documented in the input schema. The description only lists capability names (zoom, offset, corner radius, target pixel size) without adding format, range, or interaction details beyond what the schema states, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Crop an image') with the exact output shape ('circle, oval or rounded-corners with transparent corners') and names concrete use cases (avatars, logos, profile pictures). This clearly separates it from rectangular siblings like image_crop or image_resize, though it never names an alternative outright.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The avatar/logo/profile-picture framing implies when the tool is appropriate, but there is no explicit when-not guidance or named alternative (e.g. 'for rectangular crops use image_crop'). Usage must be inferred from the shape vocabulary rather than from direct routing.

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