Skip to main content
Glama

Add a photo

add_photo

Adds one photo to the user's My photos in Luala, free, so it can be edited: an old print to restore, clothes to try on, a photo to change. The answer is the saved photo with its photo_id and edit prices: when the user asked for an edit of it, tell them that edit's price, and once they agree make it by calling the Luala tool its price is keyed by in photo.prices (remove_background, replace_background, edit…) with this photo_id, which saves the result to their Luala photos. Pass the file the user attached as photo. If you can't, but the file is in your sandbox, call with its content_type (image/jpeg, image/png or image/webp: convert a HEIC to JPEG first) and size in bytes, PUT the file to the answer's upload url with its headers, then call again with the answer's key. Called with none of these, it answers with the luala.app page where the user adds it. The user accepted the upload rules when connecting Luala.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNo
sizeNo
photoNoThe file the user attached.
spaceNoThe space, by its id or name from list_spaces; left out, the personal one, but a shoot names one when the user is in several. When they haven't said which, ask.
content_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / space
      Added value: +{
      +  "description": "The space, by its id or name from list_spaces; left out, the personal one, but a shoot names one when the user is in several. When they haven't said which, ask.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare it is a non-destructive, non-idempotent, open-world write; the description adds substantial behavior beyond that: the call is free, the user has already accepted upload rules, the response carries photo_id and edit prices, and there is a multi-step upload-url/key handshake. Return shape is described, which matters since there is no output schema. It stops short of stating failure modes or retry/conversion caveats beyond HEIC.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and every sentence carries real information, but the prose is one sprawling run-on with awkward phrasing ("make it by calling the Luala tool its price is keyed by in photo.prices") that forces re-reading. It would benefit from breaking the upload flow into discrete steps.

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 five-parameter write tool with a nested object, no output schema and a multi-step upload protocol, the description covers the return values (photo_id, prices, upload url, key), the conversion requirement and the no-argument fallback. Only the space parameter and error handling are left undocumented.

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?

With only 40% schema coverage, the description compensates well: it explains photo (the attached file), content_type values (image/jpeg, png, webp, with HEIC converted to JPEG first), size in bytes, and key (from the answer). The space parameter is not mentioned here at all, leaving it to its schema description, which is the main shortfall.

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 (adds one photo to the user's My photos), plus what it is for (editing: restore, try on, change). It is clear what the tool does, though it never names a sibling it is distinct from (e.g. add_selfie), so differentiation is only implicit.

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 concrete routing for several situations: pass the attached file as photo, fall back to content_type + size + PUT to the returned upload url then re-call with key, and call with none of these to get the luala.app page. It also says to quote the edit price and then call the tool named in photo.prices once the user agrees. The only gap is explicit when-not guidance versus alternatives like add_selfie.

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