Skip to main content
Glama

Relight a photo

relight_photo

Change the lighting of a photo, for example to golden hour, studio light or neon night. OAuth uses site credits (from 30 credits per image with the default model). API keys use a separate USD wallet. Omit approval to get a quote, then confirm max_credits for OAuth or currency USD and decimal max_usd for API keys.

Input Schema

NameRequiredDescriptionDefault
imageNoChatGPT only: the photo the user attached. Use image_url everywhere else.
promptYesThe new lighting in plain words, for example: warm golden-hour sun from the left, soft studio light, neon night.
max_usdNoAPI key only: maximum approved USD as a decimal string with up to 9 fractional digits. Set currency to USD. Only set after the user confirms the quoted cost_usd. Never convert max_credits.
currencyNoBilling unit: USD for API keys; credits for OAuth (optional for existing OAuth clients).
image_urlNoThe photo to relight (https or popnow:// link).
max_creditsNoOAuth only: the most site credits the user agreed to spend on this. Only set it after the user confirmed a quoted price.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-idempotent, open-world operation; the description adds the crucial behavioral context that isn't in structured fields: the credit cost floor (30 credits/image default model), the separate USD wallet for API keys, and the quote-before-charge confirmation protocol. It does not describe what happens on failure or whether a partially-spent quote expires.

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?

Three sentences, front-loaded with the purpose before the billing mechanics. The dense billing sentence carries a lot at once (credits vs USD wallet, quote then confirm) but every clause is actionable and there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter, cost-incurring, non-idempotent tool with no output schema, the description covers cost and approval well but says nothing about the return value — an agent can't tell whether it gets a finished image or a job handle to poll with get_job. The image vs image_url split is left entirely to schema descriptions.

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 the relational semantics the schema only implies: omitting the approval fields triggers quote mode, and max_credits vs currency/max_usd are mutually exclusive per auth type. It reinforces rather than duplicates the per-parameter docs.

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 ("Change the lighting of a photo") plus three concrete examples of the transformation. An agent can distinguish relighting from sibling tools like apply_effect or edit_image by intent, though the description never names those alternatives explicitly.

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?

Gives a clear procedural rule: omit approval to get a quote, then confirm max_credits (OAuth) or currency + max_usd (API keys). It also tells the agent which billing path applies to which auth method. It stops short of saying when to pick this tool over edit_image or apply_effect for lighting-like effects.

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.