Skip to main content
Glama

Coinage

Add listing photo

add_listing_photo

Attach one JPEG, PNG, WebP, or HEIC photo to the seller's draft or active listing. Requires scope listings:write. Pass the photo the person attached as the photo file parameter when your platform supports file inputs. Only send dataBase64 for a small file you can encode exactly; never type out a large photo. If you cannot pass the file, call create_photo_upload_link instead and give the person the link. Buyers see exactly the uploaded bytes, so do not resize, recompress, crop, or screenshot. Photos must be at least 1000 pixels on the long side and 600 on the short side; smaller ones are refused with photo_too_small, and then ask the person for the original photo. Maximum 8 MB and 5 photos. After the first photo, offer to publish with update_listing.

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": {
      "listingId": "<listingId>"
    },
    "name": "add_listing_photo"
  }
}

Input Schema

NameRequiredDescriptionDefault
photoNoThe image file the person attached in this conversation. Preferred over dataBase64.
listingIdYes
dataBase64NoStandard base64 of the image bytes. Only for small files; prefer photo or create_photo_upload_link.
contentTypeNoWith dataBase64: image/jpeg, image/png, image/webp, image/heic, or image/heif.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say it is a non-read-only, non-destructive open-world write; the description adds far more: the listings:write scope requirement, hard limits (1000x600 px minimum, 8 MB, 5 photos), the photo_too_small rejection and recovery step, and the instruction not to resize or recompress because buyers see the exact bytes. That is exactly the behavioral context annotations cannot convey.

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?

Front-loads purpose and scope, then layers fallback path, validation limits, and next action. Every sentence carries operational content, though the density of constraints makes it slightly long for a single tool call.

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 4-parameter write tool with a nested photo object and no output schema, the description covers inputs, constraints, failure mode, and follow-up. It does not say what the call returns on success, which an agent may need for later reference.

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 75%, and the description adds real meaning on top: photo is preferred over dataBase64, and dataBase64 is restricted to small files that can be encoded exactly. contentType and listingId semantics are left entirely to the schema.

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?

States a specific verb and resource ("Attach one ... photo") plus scope ("seller's draft or active listing") and the accepted formats. It is clearly distinguishable from create_photo_upload_link, which it names as the fallback path.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing: pass the attached file as the photo parameter when supported, use dataBase64 only for small files you can encode exactly, and call create_photo_upload_link if you cannot pass a file. It also says to offer update_listing after the first photo, so the follow-on action is not left to inference.

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