Skip to main content
Glama

mechacut

image_rightsize

Deterministic PNG resize in pure stdlib: exact area-average box (integer weights), centre-aligned bilinear/nearest — no float ever touches a sample, same bytes forever. fit/cover/stretch geometry via Fraction scale factors. Palette/16-bit/alpha all stay honest; Adam7 and corrupt CRC refused by name. JPEG/WebP deliberately out of contract. Free under 32 KB payload, x402 above.

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": {
      "data_b64": "<data_b64>"
    },
    "name": "image_rightsize"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
widthNo
heightNo
data_b64Yessource PNG, base64
resampleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and mostly does: it discloses determinism guarantees ('no float ever touches a sample, same bytes forever'), supported PNG variants (palette/16-bit/alpha), explicit rejection cases, and a pricing boundary that affects invocation. It omits what the tool actually returns (presumably base64 PNG bytes plus dimensions?) and whether 'refused' surfaces as an error or a structured result.

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

Conciseness3/5

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

The purpose is front-loaded and nearly every clause contains information, but the delivery is a single dense run-on of em-dash fragments with sloganeering ('stay honest', 'refused by name', 'no float ever touches a sample') that costs parse time. The pricing clause is relevant yet tacked on the end rather than grouped with the other invocation constraints.

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

Completeness3/5

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

For a 5-parameter tool with no annotations, no output schema, and only 20% schema coverage, the description covers input modes and rejection behavior but not the return value, the width/height contract, or how the x402 payment path is exercised. An agent could call it, but might guess wrong on partial-dimension input or on how to consume the result.

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 only 20% (data_b64 only), so the description must compensate. It adds real meaning for 'mode' (fit/cover/stretch via Fraction scale factors) and for 'resample' (exact area-average box with integer weights, centre-aligned bilinear/nearest), but says nothing about width/height: whether both are required, what happens with one omitted, or expected units/constraints.

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?

The description opens with a specific verb and resource -- 'Deterministic PNG resize' -- and immediately scopes the format ('pure stdlib', 'JPEG/WebP deliberately out of contract'), so an agent knows this is a PNG-only image geometry tool. The surrounding jargon ('Fraction scale factors', 'Adam7') makes the core purpose slower to extract than it needs to be, but it is unambiguous.

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?

It gives clear negative guidance (JPEG/WebP out of contract, Adam7 and corrupt CRC refused) and a cost threshold ('Free under 32 KB payload, x402 above'), which tells the agent what inputs will fail and when payment kicks in. It never explains when to pick fit vs cover vs stretch, or when box vs bilinear vs nearest is appropriate, leaving the mode choice entirely to the schema enums.

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.