Skip to main content
Glama

Upload the user's image

upload_image

Use this when the user wants to use an image of their own: a product to hold or add, a garment to try on, a reference for a scene, or photos of themselves for a clone. Pass files the user attached as images, or image links as urls, and it returns an upload_id for each at once. With neither, it shows an upload box in the chat where the user picks the photo (count says how many, up to 4); the chat then gets a message with the upload_id. Free. Use the upload_id as the image in edit_photo or generate_photos' reference_images. Images the user already made here don't need uploading: pass their photo_id instead.

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

Input Schema

NameRequiredDescriptionDefault
urlsNohttps:// links to images.
countNoWithout images or urls: how many photos the upload box takes. Ask for all the photos a task needs in one box, such as 4 for a clone.
labelNoWithout images or urls: what to upload, shown on the box, for example "the product" or "your outfit".
imagesNoFiles the user attached in the chat.
content_typeNoOnly when you can run shell commands and have the file on disk: its type, to get put_urls to send it to with curl.

Output Schema

NameRequiredDescriptionDefault
okNoPresent only on a refusal: the summary says why, and what the user can do.
labelNo
statusNo
summaryYes
uploadsNoImages taken in now.
put_urlsNo
error_codeNoPresent only on a refusal.
upload_idsNoIDs the upload box fills in once the user uploads.
upload_page_urlNoA page on theinfluencer.ai that fills the same upload_ids, if the box doesn't show.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare readOnlyHint=false and openWorldHint=true, so the write/open-world profile is already known; the description adds genuinely new behavior: the call is free, it returns an upload_id for each file at once, and the no-parameter mode opens an in-chat upload box whose result arrives later as a chat message. That deferred/UI-mediated outcome is exactly the kind of side effect an agent cannot infer from annotations and would otherwise get wrong.

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 the selection condition, then modes, then the return value and downstream use — a logical order with no filler sentences. It is dense and reads as a single run-on block, so a little structural separation would improve scanability, but every sentence carries information.

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?

For a zero-required-parameter tool with five optional inputs and several modes, the description covers all invocation paths plus what comes back (upload_id) and where it goes next. An output schema exists, so it need not detail the response envelope, and nothing an agent needs to call 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 baseline is 3; the description earns above that by explaining the conditional relationship between parameters (files or urls, otherwise count/label drive an upload box) and by capping the batch at 4. It does not add much for content_type or the nested file fields, which remain purely schema-documented.

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?

Opens with a concrete selection condition and verb ('Use this when the user wants to use an image of their own') and enumerates the resources it accepts: product photos, garments, scene references, selfies for a clone. It also draws the key boundary against a sibling concept, stating that already-generated images should be passed by photo_id rather than uploaded, which lets an agent route correctly without reading another schema.

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 when-to-use, three mutually exclusive input modes (attached files as images, https links as urls, or neither to trigger the chat upload box), and names downstream consumers ('Use the upload_id as the image in edit_photo or generate_photos' reference_images'). It also states the exclusion for existing media via photo_id, so both the positive and negative cases are covered.

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