Skip to main content
Glama

vectorizar_imagen

Convert logos, icons, illustrations, or drawings into SVG, PDF, EPS, or DXF files. It keeps transparency, flattens colors, and traces edges for vinyl cutting or laser work.

Instructions

Vectorizes: turns a logo, icon, illustration or drawing into SVG, PDF, EPS or DXF, and saves it as a NEW file (next to the original, or in salida). It detects the kind of image, measures the preview with SSIMULACRA 2 and, with nota_objetivo, searches for the lightest drawing that gets there. Transparency stays transparent. To cut vinyl or laser, estilo trazar_bordes and, in DXF, nivel_dxf. With photos it gives a poster of flat colors. Examples: {"ruta": "/logo.png"} · {"ruta": "/logo.png", "salida": "/logo.pdf", "colores": 3} · {"ruta": "/icon.png", "formato": "dxf", "estilo": "trazar_bordes", "nivel_dxf": "arcos"}

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": {
      "ruta": "<ruta>"
    },
    "name": "vectorizar_imagen"
  }
}

Input Schema

NameRequiredDescriptionDefault
rutaYesAbsolute path of the image (~ is accepted).
tipoNoauto (by default: detects pixel art, photo or illustration), logotipo (logo), ilustracion (illustration), byn (black and white), pixel_art or foto (photo).
estiloNorellenar (fill, by default), trazar_formas (each shape's outline) or trazar_bordes (each edge once, to cut vinyl or laser).
grosorNoStroke width in pixels (1), in the stroke styles.
paletaNoFixed palette in #rrggbb: each pixel goes to the closest color (no gradients).
salidaNoWhere to put it: a folder, or a .svg, .pdf, .eps or .dxf file. By default, next to the original. Nothing is ever overwritten.
coloresNoColors at most, 2 to 256, all flat (no gradients).
detalleNoDetail from 0 to 100 (75): more is more faithful and heavier. With nota_objetivo, the minimum.
formatoNosvg (by default), pdf, eps or dxf. If salida is a file, the one of its extension.
nivel_dxfNoFor DXF: rectas (lines only), arcos (lines and arcs) or splines (by default: also free curves and ellipses). Some cutting programs don't read splines.
degradadosNofalse: flat colors only (by default, gradients where the color changes smoothly).
color_trazoNoStroke color in #rrggbb (by default, each shape's; in trazar_bordes, black).
nota_objetivoNoSearch for the lightest drawing that gives this SSIMULACRA 2 score (up to 9 trials). Many drawings don't go beyond 75–85.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations declare destructiveHint=false and idempotentHint=false; the description reinforces this by stating the result is always a NEW file and "Nothing is ever overwritten", and adds real behavioral detail: automatic image-type detection, SSIMULACRA 2 measurement with up to 9 search trials, and preserved transparency. It stops short of describing cost, failure modes, or the response payload.

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 core action and output formats, then progressively narrower guidance, ending with compact examples. It is dense for a single paragraph, and a couple of clauses (e.g. the SSIMULACRA mention) could be split out, but no sentence is filler.

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 13-parameter tool with full schema coverage and no output schema, the description covers outcomes (new file location, format resolution, transparency, DXF spline caveat) well. The remaining gap is that it never says what the call returns, such as the created file path or the achieved quality score, which matters when nota_objetivo is used.

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 coverage is 100%, so the baseline is 3, but the description adds meaning the schema alone does not: nota_objetivo drives an iterative search for the lightest drawing meeting a score, and estilo/nivel_dxf are tied to the vinyl/laser cutting use case. Three concrete invocation examples further clarify parameter combinations.

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?

"Vectorizes: turns a logo, icon, illustration or drawing into SVG, PDF, EPS or DXF, and saves it as a NEW file" gives a specific verb, resource, output set and side effect. It is clearly distinguishable from siblings like analizar_imagen or optimizar_imagen because the conversion to vector formats 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete scenario guidance: use estilo trazar_bordes plus nivel_dxf for vinyl cutting or laser, and expect a flat-color poster for photos. However, it never states when to prefer this tool over sibling tools such as analizar_imagen or comparar_formatos, so selection guidance against alternatives is absent.

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