Skip to main content
Glama

ScorpTech x402 Tools

Image Resize

image_resize
Read-onlyIdempotent

Resize / convert an image (GD): width/height up to 4096, fit contain|cover|fill|inside, output png|jpeg|webp|gif, quality, EXIF auto-orient, metadata stripped. Body: { "image": "", "width": 256 }. Max ~190KB input image (the service caps POST bodies at 256KB, base64 included). Returns JSON with: image, mime, width, height, bytes, fit, source. Price: $0.01 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/image-resize

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": {
      "image": "<image>"
    },
    "name": "image_resize"
  }
}

Input Schema

NameRequiredDescriptionDefault
fitNocontain (default) | cover | fill | inside
imageYesBase64 / data URI image (max ~190KB decoded due to the 256KB POST body limit; max 40 MP source)
widthNo1-4096 (width or height required)
formatNosame (default) | png | jpeg | webp | gif
heightNo1-4096
qualityNo1-100, default 85
backgroundNoHex colour used when flattening alpha to JPEG
auto_orientNoApply EXIF orientation (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, and the description still adds real behavioral context: metadata is stripped, EXIF auto-orientation applies, output is JSON with named fields, and each successful call costs $0.01 USDC via x402 on Base or Solana. That payment requirement is the kind of non-obvious side effect an agent must know before invoking; it stops short of 5 only because it does not cover failure/refund behavior or rate limits.

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 the operation and its limits, then limits, then return shape, then price and transport — a sensible priority order with no filler prose. It loses a point for re-listing enum values and dimension bounds that the schema already carries, which is redundant in a telegraphic single block.

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, and the description compensates by naming the return fields (image, mime, width, height, bytes, fit, source) along with payment model, input size ceiling, and an alternate HTTPS endpoint. For an 8-parameter paid transform tool, an agent has everything needed to call it correctly on the first attempt.

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% and every parameter is already documented in the schema, so the description's enum recitals (fit modes, formats, 4096 cap, quality, auto-orient) largely duplicate structured data. It adds a worked body example showing required-vs-optional shape, but omits 'background' and the 'same' format default, so the net gain over the schema is marginal — baseline 3.

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 pair (resize/convert) and resource (image), plus the engine (GD) and the exact operation envelope (width/height up to 4096, fit modes, output formats). An agent can tell instantly that this transforms image bytes rather than inspecting them, which separates it from the sibling image_info.

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?

Gives concrete invocation context — a literal body example, the ~190KB decoded input cap derived from the 256KB POST limit, and the per-call price — but never states when to prefer this over an alternative or when not to call it. Usage is implied by the constraints rather than explicitly routed.

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