Skip to main content
Glama
Hermoso

Hermoso

Official

Resize a static ad for other placements

resize_ad

Recompose one finished static ad for other placements without cropping, keeping text, logo and style intact across selected aspect ratios.

Instructions

Re-lay out ONE finished static ad for other placements: the same ad, product, copy (word for word), logo and style, recomposed natively for each canvas rather than cropped. Pass image and optionally aspectRatios from 1:1, 4:5, 9:16, 16:9, 3:4, 4:3 (default 1:1, 4:5 and 9:16; the ad's own ratio is skipped). Reads the ad's text first (3 credits) so every line survives, then one image edit per canvas. When the saved brand has a product photo and the ad shows that product, the photo rides with the edit and the product's label is read and checked against it: re-printed from the photo only when it came out wrong (the check alone is charged when it is right; one small extra charge finds the product first). fixLabel:false turns that off. Priced before it runs. Several sizes AND versions (headlines, languages, offers) at once: repurpose_image. For VIDEO use reframe_video.

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

Input Schema

NameRequiredDescriptionDefault
imageYesthe finished static ad: URL, Library item URL, upload_file URL or local path
fixLabelNofalse = leave the product label exactly as rendered: no product lookup, no label check, no re-print (default on when the ad shows the brand’s saved product)
get_costNotrue: return the price only; nothing runs or bills
aspectRatiosNotarget canvases (default 1:1, 4:5, 9:16)
idempotency_keyNochosen once, resent unchanged on retries: the same key never buys twice
expected_creditsNothe get_cost price; refused unbilled if the live price differs

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.532
    • addedInput schema / properties / expected_credits
      Added value: +{
      +  "description": "the get_cost price; refused unbilled if the live price differs",
      +  "type": "number"
      +}
    • addedInput schema / properties / get_cost
      Added value: +{
      +  "description": "true: return the price only; nothing runs or bills",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "chosen once, resent unchanged on retries: the same key never buys twice",
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.1.366
    • addedInput schema / properties / fixLabel
      Added value: +{
      +  "description": "false = leave the product label exactly as rendered: no product lookup, no label check, no re-print (default on when the ad shows the brand’s saved product)",
      +  "type": "boolean"
      +}
  3. Addedv0.1.272

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description goes far beyond that by disclosing the credit model (3 credits for the text read, one image edit per canvas, label check billed even when correct, extra charge to find the product) and the fact that pricing happens before the run. It falls short only on not stating what the caller receives back, though annotations already carry the safety profile so the bar is lower.

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 the key distinction from cropping, and every sentence carries information. The parenthetical-heavy run-on phrasing (costs, label logic) makes it dense to parse, so it is efficient but not as scannable as it could be.

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 6-parameter mutation tool with no output schema, the description covers mechanism, cost model, defaults, opt-outs and alternatives. The remaining gap is the return shape — what image references the caller gets back per canvas — which matters for chaining into the next step.

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 baseline is 3, but the description adds real meaning: the ad's own ratio is skipped, the default set is 1:1/4:5/9:16, and fixLabel:false suppresses both the product lookup and the re-print, not just validation. idempotency_key and expected_credits are left entirely to the schema.

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 precise verb and resource — re-lay out ONE finished static ad for other placements — and immediately defines the mechanism (native recomposition, not cropping). It also distinguishes scope (ONE ad) and routes to the right siblings, repurpose_image for multi-version work and reframe_video for video.

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?

Explicitly names the alternatives and the condition that selects them: several sizes AND versions (headlines, languages, offers) go to repurpose_image, and video goes to reframe_video. It also documents when to disable the label check via fixLabel:false and when to use get_cost for a price-only call.

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

Deploy Server

Other Tools