Skip to main content
Glama

Re-vectorize with other settings

revectorize

Re-vectorizes a stored result (result_id and token from vectorize) with other settings, free for 24 hours after the first vectorization. Used by the Shapesoda window.

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": {
      "result_id": "<result_id>",
      "token": "<token>"
    },
    "name": "revectorize"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesResult token (the token parameter of the result links).
colorsNoNumber of colors: 'auto', 'unlimited', or an integer 2–32 (max_colors goes up to 256). Default auto.
cornersNoKeep corners sharp or round them.
paletteNoFixed colors #rrggbb (2–256), as a list or a comma-separated string. Not combined with colors or max_colors.
qualityNoInput quality: low for blurry/noisy/JPEG-heavy images. Default auto.
min_areaNoSmallest shape kept, in px²; smaller specks are dropped. Overrides the preset.
result_idYesresult_id from vectorize or revectorize.
image_typeNoKind of image: artwork with smooth (anti-aliased) edges, artwork with hard pixel edges, or photo. Default auto.
smoothnessNoContour smoothing 1–10 (higher: smoother, fewer nodes).
transparencyNoTransparent areas: keep (stay transparent), white, or a background color #rrggbb.

Output Schema

NameRequiredDescriptionDefault
modeNo
filesYesDownload link per format.
widthYes
heightYes
result_idNo
svg_bytesNo
expires_atNo
download_urlNoLink to the first requested format.
credits_chargedNo
credits_remainingYes
free_remaining_todayNoFree MCP vectorizations left this calendar month, UTC (used before credits). The name is kept for compatibility.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / free_remaining_today / description
      Previous value: -"Free MCP vectorizations left today (used before credits)."New value: +"Free MCP vectorizations left this calendar month, UTC (used before credits). The name is kept for compatibility."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already cover the safety profile (not read-only, not destructive, not idempotent, closed-world), so the description's value-add is the 24-hour free-billing window tied to the first vectorization, which is genuinely useful cost context. However, it never says whether a re-vectorization produces a new result_id or replaces the existing one — the single most important behavioral fact here given idempotentHint=false.

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?

Two short sentences, front-loaded with what the tool does and the constraint that matters, with no wasted qualifying text. The trailing 'Used by the Shapesoda window' is low-value filler but negligible in size.

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 an output schema present, 10 parameters at full schema coverage, and annotations covering safety, the description needs only to establish purpose, input provenance, and cost semantics — which it does. The remaining gap is output lifetime (new result vs. overwrite), which is real but partially mitigated by structured fields.

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% with rich per-parameter descriptions and enums, so the schema carries the semantics and baseline 3 applies. The description only adds provenance for token ('the token parameter of the result links'), which is a marginal contribution over the schema's own wording.

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 plus resource ('re-vectorizes a stored result') and names the source tool that produces its inputs ('result_id and token from vectorize'), which distinguishes it from the sibling 'vectorize'. It stops short of explicitly contrasting the two operations, but the provenance phrase makes the relationship inferable.

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?

Implies the when: this is the follow-up call for an already-vectorized result, usable free within 24 hours of the first vectorization. It gives no explicit 'use vectorize instead when...' exclusion and doesn't say what happens after the free window (paid? rejected?).

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