Skip to main content
Glama

reeflip

Add an uploaded photo

app_finish_photo_upload

Called by Reeflip's app in the chat, never by you. Step 3 of an upload in the app: adds the photo sent to app_start_photo_upload's link to the business, and with product_id to that product too, after its last photo, when the plan has room for one more on it (otherwise plan_limit). photo_not_uploaded until the file has arrived. Its type is read from the file itself: anything but a JPEG, PNG, WebP, AVIF or HEIC photo is deleted and refused with photo_type_not_allowed.

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": {
      "photo_id": "<photo_id>"
    },
    "name": "app_finish_photo_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameNoThe file's name on your computer, to recognise it by.
photo_idYesFrom Start uploading a photo.
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.6/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, idempotent=false, closed-world) it discloses the three failure modes with their error codes: `plan_limit` when the plan is full, `photo_not_uploaded` before the file lands, and `photo_type_not_allowed` when the detected type is outside JPEG/PNG/WebP/AVIF/HEIC. It also reveals that server-side type sniffing occurs and that rejected files are deleted, plus the ordering rule (inserted after the last existing photo) — none of which the annotations carry. The deletion applies only to the just-rejected upload, so it does not conflict with destructiveHint=false on persisted business data.

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?

The critical constraint ("never by you") is front-loaded and each subsequent clause adds real information — sequence step, target, ordering, plan gate, type gate. It is dense and clause-heavy but nearly every clause earns its place; only the backtick error-code styling slightly fragments the reading flow.

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

Completeness5/5

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

An output schema exists, so return shape need not be described, and the definition still covers the workflow position, the alternate target (business vs product), the capacity constraint, and every documented refusal reason. Nothing an agent or the calling app would need in order to trigger this correctly is missing.

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 the schema already documents all three parameters; the description still adds the meaningful default that omitting `product_id` attaches the photo only to the business, and that the photo's position is after the product's last photo. It does not add anything for `filename`, but the schema's own text is adequate there.

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?

The description opens with a specific verb and resource ("adds the photo ... to the business") and pins down exactly which photo instance — the one sent to `app_start_photo_upload`'s link — rather than the generic upload siblings like add_photo or upload_photos. The first sentence ("Called by Reeflip's app in the chat, never by you") immediately separates it from every agent-invoked sibling.

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 states the exact position in the workflow ("Step 3 of an upload in the app") and names the prerequisite tool that produced the `photo_id`, plus an explicit when-not ("never by you"). It does not explicitly name or contrast the agent-facing upload alternative (add_photo/upload_photos), but the routing is unambiguous for an agent.

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