Skip to main content
Glama

Recortar / poner texto de marca sobre una imagen existente

componer_imagen

Crops an existing image and overlays real brand-font text locally, without calling OpenAI. Use it to adjust thumbnail text or fix images after a post-processing error, using the original files.

Instructions

Aplica crop_to y/o overlay_text (fuentes reales de marca) sobre una imagen que ya existe — URL, ruta local o base64 — sin llamar a OpenAI (costo cero). Úsalo para ajustar el texto de un thumbnail sin regenerar, o para recomponer cuando generar_imagen/generar_variacion devolvió tipo_error 'postproceso' (usa imagenes_originales).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesImagen de origen: ruta local, URL (incluidas URLs firmadas de Pipefy), data URL o base64.
crop_toNoRecorta/redimensiona el resultado a estas dimensiones exactas (ej. 1280x720 para thumbnail de YouTube).
overlay_textNoTexto compuesto con las fuentes reales de marca (no generado por la IA). Se aplica DESPUÉS de crop_to, así que las coordenadas son sobre la imagen final.
output_formatNoDefault: el formato de la imagen de origen.
incluir_base64NoDefault false. Si true, agrega file_name + file_base64 (compatible con upload_file_base64 de Pipefy). Ojo: una imagen en base64 pesa millones de caracteres y puede truncarse o llenar el contexto; lo recomendado es upload_file_path con el file_path devuelto.
nombre_archivoNoPrefijo para el nombre del archivo (ej. 'tema-123-linkedin'). Default: primeras palabras del prompt.
incluir_previewNoDefault true. Devuelve una miniatura (512px) para revisar el resultado visualmente.
output_compressionNoCalidad 0-100 para jpeg/webp.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations indicate a mutating operation (readOnlyHint=false), and the description confirms this by stating it applies crop and overlay. It adds valuable context beyond annotations: it explicitly notes no OpenAI call (zero cost), warns about base64 payload size/truncation, and clarifies that overlay is applied after crop. The warning about base64 and the error-handling scenario enrich behavioral understanding.

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?

The description is two sentences, front-loaded with the core action and input sources, then providing use cases. Zero filler, and the cost/no-OpenAI note is efficient. It covers purpose, usage, and key constraints without redundancy.

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?

Given 8 parameters (including nested objects) and no output schema, the description is fairly complete: it explains input types, use cases, and the special error scenario. It does not explicitly describe the return format, but parameter names like incluir_base64 and incluir_preview hint at output options. The lack of an output schema is not a gap because the description guides invocation sufficiently.

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% — every parameter has a descriptive set in the input schema. The tool description does not add parameter-level information that isn't already present in the schema (e.g., the order of overlay after crop is noted in the schema's overlay_text description). Per calibration, a baseline of 3 is appropriate when the schema handles parameter documentation fully.

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?

The description states a specific action: 'Aplica crop_to y/o overlay_text' on an existing image, and lists input sources (URL, local path, base64). It clearly distinguishes itself from siblings by emphasizing it works on existing images and does not call OpenAI, setting it apart from image generation tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicit usage scenarios are given: 'Úsalo para ajustar el texto de un thumbnail sin regenerar, o para recomponer cuando generar_imagen/generar_variacion devolvió tipo_error postproceso'. It also mentions the cost benefit ('costo cero') and references sibling tools by name, providing clear when-to-use and when-not-to-use context.

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