Skip to main content
Glama

relight_image

Destructive

Change the lighting of an image (a VerseIn media URL) with a lighting preset or a text description. Spends the user's coins; calls above the confirmation threshold return needs_confirmation with a confirmation_token; ask the user, then call again with it. Returns a task id; follow it with get_tasks. Generating through an AI assistant is charged in VerseIn coins. Unlimited-plan allowances do not apply here.

Input Schema

NameRequiredDescriptionDefault
modeNostyle (a lighting preset) or text (describe the lighting in prompt). Default: text when prompt is set, else style
speedNoquality tier; slower tiers cost more
presetNolighting preset key (style mode); an invalid key is answered with the valid ones
promptNothe lighting to apply (text mode)
image_urlYesthe image to relight — a VerseIn media URL
intensityNoeffect strength, 0 to 100
request_idNoyour id for this call; retrying with the same id never charges twice. Use a new id to intentionally repeat identical settings
max_total_coinsNothe most this edit may charge: send the exact most the user agreed to (the max_coins of estimate_cost, or total_cost_coins when equal). If the job could now cost more, nothing is submitted and needs_confirmation returns the new price
confirmation_tokenNothe confirmation_token a needs_confirmation answer returned, passed back once the user agreed to that price

Output Schema

NameRequiredDescriptionDefault
errorNopresent only when the call failed
tasksNo
failedNo
balanceNobalance after submitting
declinedNotrue when the user declined the confirmation form; nothing was submitted or charged
next_actionNo
total_cost_coinsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past annotations by disclosing coin spend, the confirmation threshold and needs_confirmation response shape, that unlimited-plan allowances are excluded, and the task-id/polling model. The annotations only flag non-read-only/destructive; the description supplies the cost and consent semantics an agent needs.

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?

Four tight sentences front-load the action, then cost, then confirmation mechanics, then output handoff. Dense but no filler; the only overlap is restating the confirmation token, which the schema also covers.

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 9-parameter, coin-charging mutation with an output schema, the definition covers the critical unknowns: pricing, consent threshold, retry safety, and task polling. Gaps are minor — it doesn't say where to obtain valid preset keys or how speed tiers affect cost beyond 'slower costs more'.

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% and each parameter (mode, preset, prompt, max_total_coins, confirmation_token) already carries a detailed description. The description restates the preset/text duality and the confirmation token round-trip but adds no syntax or format detail beyond the schema — 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 ('Change the lighting of an image') and enumerates both input modes (preset or text description), plus the image must be a VerseIn media URL. This cleanly distinguishes it from siblings like relight_video, generate_image, and upscale_image.

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?

Explains the confirmation flow explicitly (ask the user, retry with confirmation_token) and directs follow-up to get_tasks. It does not name alternatives such as relight_video for video assets or estimate_cost for pre-pricing, so the when-not guidance is implied rather than stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources