Skip to main content
Glama

reeflip

Add a photo from a web address

add_photo_from_url

Adds a photo to the business from a public web address (url), or, in ChatGPT, from an image the owner attached to the chat (file): send one of them. JPEG, PNG, WebP, AVIF or HEIC, up to 25 MB. With product_id, the photo also joins that product after its last photo, when the plan has room for one more on it (otherwise plan_limit). Its id can go in a product's media with upsert_products at once; its sizes are made in the background. An address off the public internet gets photo_url_refused, and one that doesn't answer with a photo photo_url_unreachable, photo_type_not_allowed or photo_too_large.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "add_photo_from_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoA public http or https address of the photo.
fileNoA file the owner attached in ChatGPT, as ChatGPT passes it to a tool. Its `download_url` is a temporary address that acts as a password to the file.
product_idNoA product the photo joins, after its last photo.

Output Schema

NameRequiredDescriptionDefault
idYes
urlYesWhere its sizes are, once ready: add `/{width}.webp` for a width in `webp_widths`, or `/{width}.avif` for one in `avif_widths`.
widthYesOnce ready: its width, turned upright.
heightYesOnce ready: its height, turned upright.
statusYesuploaded until its sizes are made; ready after; failed when they could not be.
filenameYes
created_atYes
jpeg_widthYesOnce ready: the width of its JPEG copy, under {media}/{business_id}/{id}/{width}.jpg, for drawing pages as pictures; null before, and for photos made before copies were.
size_bytesYes
avif_widthsYesThe widths made in AVIF, under {media}/{business_id}/{id}/{width}.avif.
placeholderYesOnce ready: a tiny WebP as a data: URI, to show blurred while the photo loads; empty before.
webp_widthsYesThe widths made in WebP, under {media}/{business_id}/{id}/{width}.webp.
content_typeYesRead from the file itself.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations it discloses the accepted formats and 25 MB ceiling, that derivative sizes are rendered in the background, that a plan cap surfaces as `plan_limit`, and four distinct failure codes with their triggering conditions. This is substantive operational context that the readOnly/destructive/openWorld hints do not convey; only the non-idempotent duplicate-creation risk goes unstated.

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?

It is dense but front-loaded: the primary action and the mutually exclusive inputs come first, then limits, then the product interaction, then error codes. Every clause carries information, though the final error-code sentence is packed tightly enough to slow reading.

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, the return value need not be described, and the tool's complexity is well covered by the format limits, async note, and error taxonomy. The one gap is what happens if neither `url` nor `file` is supplied, since the schema marks zero required parameters.

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%, yet the description still adds real meaning: the one-of relationship between `url` and `file` (not expressible in the flat schema), the positional semantics of `product_id`, and the fact that the returned id can be fed straight into `upsert_products` media. Nested `file` fields are left entirely to 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?

The description names a specific verb and resource ('Adds a photo to the business') and clearly enumerates the two source modes, public URL versus a ChatGPT-attached file. It is precise enough to act on, but it never distinguishes itself from the sibling `add_photo` or the upload-flow tools, so the agent cannot tell from this text which one applies.

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 a concrete selection rule for its own parameters ('send one of them') and explains the consequence of adding `product_id` (the photo joins that product after its last photo, subject to plan room). What is missing is when to prefer this tool over the sibling photo-upload tools, so the context is clear but no alternatives are named.

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