Skip to main content
Glama

request_upload

Use this whenever the user wants to edit a photo that is on their phone or computer, or asks how to send, upload or share a photo with you: it is how their photos reach these tools. Get a one-time way to send photos from the user's device to this server. Photos the user already sent are listed by inspect (what='uploads'), so a photo already there needs no new link. The result leads with page_url, a web page the user opens, from a phone camera roll or a browser; it works in every client. It also carries a curl command that uploads a file from a shell that can reach this host. On claude.ai with code execution on, a photo attached in chat is usually also a file under /mnt/user-data/uploads. A sandbox that blocks this host answers with a 403 or "host not allowed" every time, and the result's if_curl_blocked says how the user can allow it. Nothing announces a page upload: once the user has sent it, it shows up in inspect (what='uploads') as upload:<id>. A curl upload's JSON reply carries upload_id (or an uploads list). open_photo opens either with source "upload:". One link takes several photos: up to 10, and it closes 5 minutes after its last photo arrives and expires in 15 minutes; nothing else limits links (asking for another cancels none). The curl takes one file per command. An upload it produces can be opened from any of your signed-in connections, not only this one. Limits per photo: 40 MB and a pixel limit that depends on the workspace size (overview lists it). RAW camera files up to 100 MB are accepted too; they open on the larger workspace. For an image already online, pass its https:// URL to open_photo instead. Uploads and open photos belong to this server; a photo opened through another Editmamei connector stays with that connector.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
curlNo
tokenNo
page_urlNo
expires_atNo
upload_urlNo
if_curl_blockedNo
cancelled_link_minted_atNo
cancelled_link_token_prefixNo

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 only declare non-readonly, non-idempotent, non-destructive, closed-world; the description goes well beyond that by disclosing link lifetime (closes 5 min after last photo, expires in 15 min), capacity (up to 10 photos per link), per-photo limits (40 MB, workspace-dependent pixel cap, RAW up to 100 MB), non-cancellation of other links, cross-connection visibility of uploads, and the 403 / 'host not allowed' sandbox failure mode. No behavior stated conflicts with the annotations.

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?

The most decision-relevant content (when to use, check `inspect` first, use `open_photo` for online URLs) is front-loaded, and nearly every sentence carries an operational constraint. It is dense and slightly run-on, and some output-field narration (`page_url`, `curl`, `upload_id`, `if_curl_blocked`) duplicates what the output schema already provides.

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-parameter but behaviorally complex tool, the description covers triggers, alternatives, limits, lifetime, failure modes, and cross-client behavior, while return values are properly delegated to the existing output schema. Nothing an agent needs to call this correctly appears to be 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?

The tool takes zero parameters, so there is no input semantics to explain and the baseline is 4. The description usefully clarifies that a curl upload carries one file per command and that multiple photos share a single link, which is operational behavior rather than parameter meaning.

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: 'Get a one-time way to send photos from the user's device to this server.' It also implicitly separates itself from `inspect` (already-sent photos) and `open_photo` (images already online), so an agent can route correctly without opening other schemas.

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 trigger ('whenever the user wants to edit a photo that is on their phone or computer, or asks how to send, upload or share a photo'), an explicit check-first step (`inspect` what='uploads' means no new link is needed), and an explicit alternative for already-online images ('pass its https:// URL to `open_photo` instead'). When-to-use and when-not-to-use are both 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