Skip to main content
Glama

Convert an image to SVG

luw_vectorize_image

Convert photos or drawings into clean SVG vectors, with an optional higher-detail engine for fine lines. Produces scalable graphics ready for editing and design workflows.

Instructions

Luw.ai Vector AI: convert a photo or drawing into a clean SVG vector. Costs 1 credit (aria, the default) or 2 (symphony, which keeps finer lines and small details).

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": "luw_vectorize_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageYesPhoto or drawing to vectorize (public https:// link or data: URI; the local npx server also accepts a file path).
engineNoLuw.ai model: aria (the default, 1 credit) or symphony (2 credits; a larger line drawing and a finer vectorizer, for facades and other detailed subjects). Use symphony when the user chose it in this conversation or asks for more detail.aria

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.22
    • addedInput schema / properties / engine
      Added value: +{
      +  "default": "aria",
      +  "description": "Luw.ai model: aria (the default, 1 credit) or symphony (2 credits; a larger line drawing and a finer vectorizer, for facades and other detailed subjects). Use symphony when the user chose it in this conversation or asks for more detail.",
      +  "enum": [
      +    "aria",
      +    "symphony"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.3.18
    • changedInput schema / properties / image / description
      Previous value: -"Photo or drawing to vectorize (https:// URL, local file path, or data: URI)."New value: +"Photo or drawing to vectorize (public https:// link or data: URI; the local npx server also accepts a file path)."
  3. Addedv0.3.2

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare openWorldHint=true and destructiveHint=false, and the description usefully adds the credit cost of 1 vs 2 per call, which annotations do not convey. However, it says nothing about how the result comes back — several siblings (luw_get_result) suggest these are asynchronous jobs, and the description never tells the agent whether a job handle must be polled.

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

Conciseness5/5

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

Two tight sentences: the action and output artifact lead, followed by the cost/model tradeoff. No filler, no redundancy beyond a minor overlap of the credit costs with the schema.

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?

For a two-parameter tool with full schema coverage and no output schema, the definition covers purpose, input expectations, and the cost/quality decision adequately. The one real gap is result retrieval, which the agent may need to infer from sibling tools.

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 the schema already spells out both the image input formats and the engine enum with its cost and quality tradeoffs. The description largely restates the engine costs rather than adding new meaning, so the baseline of 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?

The description names a specific verb and a concrete output artifact: convert a photo or drawing into a clean SVG vector. That output format implicitly separates it from raster-manipulation siblings such as luw_upscale_image or luw_edit_image, though no sibling is named explicitly.

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?

There is solid guidance for choosing between the two engines (aria for cost, symphony when the user selected it or asks for finer detail), but nothing about when to reach for this tool versus the other image tools in the catalog, and no stated preconditions beyond a valid image input.

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