Skip to main content
Glama

Foil Separation

td_foil_separation

Create a foil-ready plate from a flat, high-contrast design with outline, foiling, dot, or patch modes; results are saved to disk with paths returned.

Instructions

Foil Separation: build the foil layer for the design. Modes outline, foiling (recommended), dot, patch; with or without a vector EPS. Best for: making a foil-ready plate from a flat, high-contrast print design, as clean outlines, distressed foiling line art, dots or accent patches. Result files are saved to disk and their paths returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoFoiling type: outline (Outline): Outline foiling type. foiling (Foiling, Recommended): Standard foiling type. dot (Dot): Dot foiling; optional Add outline or Add foil (one of them) and Dots intensity. patch (Patch): Patch foiling; optional Only patch, Add dots, Avoid negatives, the intensity and Outline thickness. Required: pass the mode the user named. If the user did not name one, omit it and the tool returns the modes to show them; never choose for the user.
waitNoWait for the job and save the outputs (default true). false returns the task_id right after submit.
imageYesSource image: a local file path or an http(s) URL. PNG, JPEG or WebP, up to 80 MB and 5000 px per side.
vectorizeNoVectorize: also produce a vector EPS. Default true.
only_patchNopatch mode: Only patch. Default false.
output_dirNoFolder to save results in. Default: the folder of the input image (or the current directory for URL inputs). Files are never overwritten.
dots_enabledNopatch mode: Add dots (not with Only patch). Default false.
dot_intensityNoDots intensity: low (Low): Fewer / lighter dots. medium (Medium, Recommended): Medium dot intensity. high (High): Denser dots. Required: pass the mode the user named. If the user did not name one, omit it and the tool returns the modes to show them; never choose for the user.
estimate_onlyNoOnly return the credit estimate; nothing is uploaded or charged.
avoid_negativesNopatch mode: avoid negatives. Default false.
foiling_enabledNodot mode, Add foil (not with Add outline). Default false.
outline_enabledNodot mode, Add outline (not with Add foil). Default false.
patch_intensityNoPatch / Outline intensity: low (Low): Lighter patches. medium (Medium, Recommended): Medium patch intensity. high (High): Heavier patches. Required: pass the mode the user named. If the user did not name one, omit it and the tool returns the modes to show them; never choose for the user.
review_settingsNoOmit it and the tool first asks whether to use the recommended settings or adjust them (unless the call already sets some). true: ask each setting one by one. false: run with the given or recommended settings without asking; pass it only after the user chose that.
timeout_secondsNoHow long to wait for the job before returning its task_id (default 240).
unlimited_bundleNoRequest the Unlimited bundle for this run (only has effect on Unlimited plans; the server decides).
outline_thicknessNopatch mode Outline thickness 8-15 px (only without Only patch and Add dots). Default 11.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare the safety profile (write op, non-destructive, non-idempotent, open-world), so the bar is lower. The description adds real value beyond them by disclosing that result files are written to disk and their paths returned, and that a vector EPS is optional.

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, then modes, then best-for, then output behavior. It is compact, though the leading 'Foil Separation:' label and the mode list partially restate the title and 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 complex 17-parameter tool with no output schema, the description covers purpose, modes, intended input, and the fact that file paths are returned. Interactive behaviors like review_settings and credit estimation are handled in the schema, so the description is adequate without being exhaustive.

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 description coverage is 100%, so the schema already documents all 17 parameters in detail, including mode semantics and the interactive review_settings behavior. The description only restates the mode names and the vector EPS option, adding no syntax or meaning beyond the schema, so the baseline 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?

States a specific verb and resource ('build the foil layer for the design') and enumerates the four operating modes, so an agent knows exactly what the tool produces. It does not, however, explicitly differentiate itself from sibling effects like td_embroidery_effect or td_vectorizer, leaving the distinction to be inferred from the resource name.

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?

The 'Best for' clause gives clear usage context and even input constraints ('a flat, high-contrast print design'), which is genuinely useful for selecting this tool. It stops short of naming alternatives or stating when not to use it, so it does not reach the 5 level.

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