Skip to main content
Glama

NightMarquee Studio

Add a product photo from an image address

add_photo_from_url

Adds the scene's product photo from a public https address of an image the user already has online. The photo is checked, cleaned of its metadata and screened as an upload is, then used by the scene's next take. A JPEG, PNG, WebP or HEIC of at most 15 MB, at least 512 pixels on its shorter side. Only scenes whose subject is a product take a photo.

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": {
      "scene": "<scene>",
      "url": "<url>"
    },
    "name": "add_photo_from_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe image's public https address.
sceneYesThe scene's id, from create_scene.
rightsNoTrue only once the user has confirmed the photo is of their own product, or one they have the right to use, and that anyone shown in it agreed to be in it. Needed before the account's first photo.

Output Schema

NameRequiredDescriptionDefault
photoYes
sceneYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only cover read/write, openness and destructiveness; the description adds the real behavior: the image is checked, EXIF-stripped, screened like an upload, and not used until the scene's next take. The 15 MB / 512 px / format limits are concrete and useful. It stops short of saying whether processing is asynchronous (relevant given a get_job sibling) or what a rejection looks like.

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 tight sentences: purpose, acceptance criteria, eligibility. Nothing is wasted. The phrase "screened as an upload is" leans on knowledge of another flow, which slightly blunts an otherwise crisp construction.

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?

With an output schema present and full schema coverage, return values and the rights gate need not be restated, and the description correctly avoids them. What an agent still lacks is failure behavior and whether image processing is immediate or job-based; for a mutation tool with mild annotations that is a modest gap.

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%, so the schema already documents all three parameters including the rights attestation. The description reinforces the url parameter's nature (public, https, already online) but adds no format or validation detail beyond the schema.

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 ("Adds the scene's product photo") plus the source ("from a public https address of an image the user already has online"), and closes with a scope restriction ("Only scenes whose subject is a product take a photo"). That implicitly separates it from start_photo_upload, but the sibling is never named, so differentiation requires inference.

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 precondition — the user already has the image online at a public https address — and a clear exclusion for non-product scenes. It stops short of naming start_photo_upload as the alternative for local files, so the negative case 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