Skip to main content
Glama

Upload photo

upload_photo

Puts a photo you made into the store's Files, for a section's photo setting: a cut-out a section asks for, or a view you drew. Two steps. First send filename, mime_type and file_size: you get post_to and form_fields. POST a multipart form there with every form field, then the file last in a field named file (the curl example shows it). The file goes straight to Shopify. Then call again with upload_id: you get photo, a shopify://shop_images/ value for the photo setting. In ChatGPT, send an image from the chat as file instead. PNG, WebP or JPEG, up to 10 MB. Cut-outs need PNG or WebP with a transparent background.

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

Input Schema

NameRequiredDescriptionDefault
altNoWhat the photo shows, for shoppers who can't see it. At most 200 characters.
fileNoChatGPT only: an image from the chat, in place of steps 1 and 2.
filenameNoStep 1: a name for the file, like linen-shirt-side.png.
file_sizeNoStep 1: the file's size in bytes, at most 10485760.
mime_typeNoStep 1: the file's type.
upload_idNoStep 2: upload_id from step 1, after you posted the file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

The annotations only declare the safety profile (readOnly=false, destructive=false, idempotent=false), so the description carries the behavioral load and does it well: a two-step presigned upload, the required multipart ordering ('the file last in a field named file'), a direct-to-Shopify transfer, and format/size limits (PNG/WebP/JPEG, 10 MB, transparency for cut-outs). It stops short of saying what happens on a failed or abandoned step-1 upload and never reconciles the outbound Shopify POST with openWorldHint=false.

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 front-loaded with the outcome, then the two-step protocol, then constraints, which matches the order an agent needs them. It is dense but nearly every clause carries operational information; only minor tightening (the run-on 'First send...' sentence) would improve it.

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 multi-step, nested-object upload with no output schema, the description supplies the full call sequence, the return values of each step (post_to/form_fields, then photo as a shopify://shop_images/ value), the client-specific workaround, and the accepted formats and size cap. An agent has enough to execute both calls correctly without guessing.

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 baseline is 3, but the description genuinely adds meaning the schema does not: it groups parameters by step ('First send filename, mime_type and file_size' vs 'call again with upload_id') and explains that step 1 returns post_to and form_fields that must be echoed in the multipart POST. The alt parameter's shopper-facing purpose is 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?

The description names a specific verb and resource ('Puts a photo you made into the store's Files') and scopes it to a concrete use ('for a section's photo setting: a cut-out a section asks for, or a view you drew'). That is far more specific than the title 'Upload photo' and lets an agent tell this apart from section/store tooling without opening the schema.

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 when to use it (attaching a photo to a section's photo setting) and offers an explicit route switch for ChatGPT clients ('send an image from the chat as file instead'). It does not name a sibling tool or state when not to use this tool, so it falls short of a full when/when-not/alternatives treatment.

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