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. Charged in USD to your PopNow balance. Call it without max_usd for a quote, then again with max_usd after the user approves.

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": {
      "prompt": "<prompt>"
    },
    "name": "relight_photo"
  }
}

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_usdNoApproved maximum in USD as a decimal string with up to 9 fractional digits, copied from the quoted cost_usd. Set it only after the user approves; leave it out to get a quote. Nothing is charged without it.
currencyNoOptional. Always USD for this endpoint.
image_urlNoThe photo to relight (https or popnow:// link).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false), the description discloses the critical non-obvious behavior: the call is billed in USD against a PopNow balance, and nothing is charged unless max_usd is supplied. This two-step quote/approve gating is exactly the behavioral context an agent needs to avoid unauthorized spend.

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 short sentences: purpose and examples first, then billing disclosure, then the call sequence. Every sentence carries distinct, load-bearing information with no filler.

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 paid, open-world generation tool with no output schema, the description covers the essential billing safety and invocation sequence. It stops short of describing what the quote returns or what a successful result looks like, though the max_usd schema field indirectly references the quoted cost_usd.

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 every parameter including the nested image object and the enum-constrained currency is already documented. The description merely restates the quote/approve role of max_usd and echoes the style examples already present in the prompt schema, adding little meaning beyond structured data.

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?

The description states a specific verb and resource ("Change the lighting of a photo") and grounds it with concrete target styles (golden hour, studio light, neon night). It is clearly distinguishable from siblings like edit_image or apply_effect by naming the lighting transformation specifically, though it never explicitly contrasts itself with those alternatives.

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?

It gives explicit procedural guidance: call once without max_usd to obtain a quote, then call again with max_usd only after the user approves. That is a precise when-to-use instruction for both invocation modes. It lacks any when-not guidance or comparison to neighboring edit tools.

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.