Skip to main content
Glama
@pixelvault-dev/local-mcp

@pixelvault-dev/local-mcp

Build transform URL

transform_image

Build an on-the-fly PixelVault image URL to resize, crop, change format or quality, remove backgrounds with AI, apply filters, and add watermarks from an image ID or CDN URL.

Instructions

Build an on-the-fly transform URL for a PixelVault image (resize, crop, format/quality, AI background removal, blur/sharpen/rotate/flip, brightness/contrast/saturation, and same-project watermark tiling). Provide exactly one of url (a PixelVault CDN URL) or id (resolved via the API), plus one or more transform params. See https://pixelvault.dev/docs/transforms/.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "transform_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoPixelVault image id (e.g. img_abc123); its CDN URL is resolved via the API. Provide this OR url.
fitNoResize mode. scale-down (default) never enlarges; others may upscale. Only with width/height.
urlNoAbsolute PixelVault CDN URL (as returned by upload_image / get_image / list_images). Provide this OR id.
blurNoGaussian blur (0-250).
flipNoMirror horizontally (h), vertically (v), or both (hv).
sizeNoNamed size preset: s=256px, m=640px, l=1280px, social=1200x630 OG card. Wins over width/height.
tileNoFilename of another image in the SAME project to tile as a watermark.
zoomNoFace-crop tightness 0.0-1.0, only with gravity=face.
widthNoTarget width in px (1..4000).
formatNoOutput format. auto negotiates WebP/AVIF.
heightNoTarget height in px (1..4000).
rotateNoRotate clockwise; rounded to the nearest right angle.
gravityNoCrop anchor with fit=cover|crop: face, left, right, top, bottom, auto, or 'XxY'.
qualityNoOutput quality. auto lets Cloudflare choose.
segmentNoAI background removal: foreground keeps the subject, background becomes transparent (PNG output).
sharpenNoSharpen strength (0-10).
contrastNoContrast multiplier 0-2 (1=no change).
backgroundNoFill color behind a removed/padded background: hex, rgb(), or CSS name.
brightnessNoBrightness multiplier 0-2 (1=no change).
saturationNoSaturation multiplier 0-2 (1=no change, 0=grayscale).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.8.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / quality / enum
      Previous value: -[
      -  "auto",
      -  "60",
      -  "75",
      -  "85"
      -]New value: +[
      +  "60",
      +  "75",
      +  "85",
      +  "auto"
      +]
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; "on-the-fly transform URL" and "id (resolved via the API)" usefully clarify URL generation and API resolution rather than purely local string construction. It does not explicitly state that the source image remains unchanged or explain URL accessibility, expiry, authentication, or failure behavior.

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 description front-loads the tool's output, then provides the key invocation rules and a documentation link without unnecessary preamble. Its long parenthetical feature catalog makes the opening sentence dense and partly repeats the schema, but remains proportionate to a 20-parameter tool.

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?

The rich schema documents all parameters and their interactions, while the description supplies the output purpose and cross-field requirements needed for reliable basic invocation. With no output schema, it would be more complete if it clarified the returned value's shape, source preservation, and generated URL lifetime; sibling routing also remains absent.

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 description coverage is 100%, establishing a baseline of 3, but the description adds important cross-parameter semantics: exactly one source parameter and at least one transform parameter. The operation summary and same-project watermark constraint add further scope, although most individual parameter meanings remain entirely in the schema.

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 opening phrase clearly identifies the action, resource, and output: building an on-the-fly transform URL for a PixelVault image, with a useful overview of supported transformations. It does not distinguish this URL builder from siblings such as optimize_image or update_image_metadata, so it does not meet the top sibling-differentiation bar.

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?

"Provide exactly one of `url` ... or `id` ... plus one or more transform params" gives concrete invocation requirements and prevents ambiguous or empty calls. However, there is no explicit when-not guidance or named alternative for requests outside URL-based image transformation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.