Skip to main content
Glama

reeflip

Start uploading a photo

start_photo_upload

For agents that can send a file themselves, such as Claude Code, Codex or Cursor with a shell: a signed link that uploads one photo from disk straight to storage, for 15 minutes. JPEG, PNG, WebP, AVIF or HEIC, up to 25 MB; the type and exact size in bytes are part of the signature. Send the file's bytes with method to url with headers (curl -X PUT -H "Content-Type: …" --data-binary @photo.jpg ""), then call add_photo with photo_id. In a chat, where you can't send files, use upload_photos or add_photo_from_url instead.

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": {
      "content_type": "<content_type>",
      "size": "<size>"
    },
    "name": "start_photo_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeYesThe file's exact size in bytes; up to 25 MB.
content_typeYesThe type the file will be sent as: image/jpeg, image/png, image/webp, image/avif or image/heic.

Output Schema

NameRequiredDescriptionDefault
urlYes
methodYes
headersYesSend these exactly. The browser sets Content-Length from the file.
photo_idYesThe photo's id, for addPhoto.
expires_atYes

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?

Beyond the annotations (which only say this is a non-read-only, non-idempotent, non-destructive operation), the description discloses the 15-minute link lifetime, the accepted formats and 25 MB cap, and the crucial constraint that content type and exact byte size are baked into the signature. It spells out the PUT mechanics with method, url and headers plus a concrete curl example, which 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-loaded with the audience qualifier and the core action, then the constraints, then the alternative path; nothing is padding. The curl invocation is long but earns its place by removing ambiguity about how to send the bytes; the paragraph is dense rather than bloated.

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 two-parameter tool with an output schema covering the returned link, the description supplies everything an agent needs: eligibility, constraints, transport mechanics, and the follow-up step. No open question remains about how to complete the upload flow.

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% and both parameters are already documented, so the baseline would be 3. The description still adds real meaning by explaining that size and content_type are not merely hints but are part of the signature — a mismatch will fail the upload — which changes how carefully an agent must supply them.

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: it issues a signed link that uploads exactly one photo from disk straight to storage. It immediately scopes itself to agents that can send files, and contrasts with upload_photos and add_photo_from_url, so an agent can distinguish it from siblings without opening any 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 an explicit when-to-use condition ("For agents that can send a file themselves, such as Claude Code, Codex or Cursor with a shell") and an explicit when-not ("In a chat, where you can't send files, use upload_photos or add_photo_from_url instead"). It also names the required follow-up call, add_photo with photo_id, completing the routing decision.

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