Skip to main content
Glama

Design Extension

td_design_extension

Extend a textile design outward by a gap on each side, growing swatches or motifs to full fabric width or edge while preserving style, colour, and texture. Saves result files to disk.

Instructions

Design Extension: extend the design outward by a gap on each side (0-10; not all four 0). Best for: growing a small swatch or centre motif outward in the same style, colour palette and texture, e.g. a swatch photo to full fabric width or a motif out to the fabric edge. Result files are saved to disk and their paths returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dpiNoOutput resolution in ppi (72-500). Omit to keep the image's own resolution.
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.
top_gapNoTop Gap 0-10; 0 leaves the edge untouched. Not all four gaps may be 0. Default 5.
left_gapNoLeft Gap 0-10. Default 5.
right_gapNoRight Gap 0-10. Default 5.
bottom_gapNoBottom Gap 0-10. Default 5.
creativityNoCreativity, shown to users as 60-100%; send it as a decimal, 0.6-1.0. How freely the AI may invent new content in the extended areas. Recommended 100%.
output_dirNoFolder to save results in. Default: the folder of the input image (or the current directory for URL inputs). Files are never overwritten.
estimate_onlyNoOnly return the credit estimate; nothing is uploaded or charged.
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).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare non-destructive, non-idempotent, open-world mutation, so the safety profile is covered. The description adds genuinely new behavior: 'Result files are saved to disk and their paths returned,' which tells the agent it must handle file paths rather than inline data. It omits credit/charging behavior and the interactive settings-confirmation flow, keeping it below 5.

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?

Three tight sentences with the core action front-loaded, followed by usage context and the side-effect disclosure. No filler or 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?

For a 13-parameter mutation tool with no output schema, the description covers what the tool does, when to use it, and what it returns (file paths), with the schema supplying all parameter detail. It reasonably withholds return-value internals since no output schema exists, but says nothing about cost/credit implications or failure modes.

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 all 13 parameters are already documented in the schema, including gaps, dpi, output_dir and review_settings. The description only restates the gap range and the 'not all four 0' rule already present in the schema, adding no semantics beyond it. Baseline 3 applies.

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?

States a specific verb and resource ('extend the design outward by a gap on each side') with the 0-10 range and the 'not all four 0' constraint, then adds a 'Best for' clause that distinguishes it from siblings like td_repeat_set or td_border_outline. An agent can identify the operation without opening the schema.

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' sentence gives concrete usage context (growing a small swatch or centre motif outward while preserving style, palette and texture), with two worked examples. It does not explicitly name an alternative tool or a when-not-to-use condition, so it falls short of 5.

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