Skip to main content
Glama

get_upload_link

Get a one-use link to upload ONE photo of the user (jpeg, png, heic or webp, 10 MB at most). Use it whenever the user has a photo that is not a public https link, for example one attached to this chat. With a shell (Claude Code, Cowork): run the returned curl command with the photo path. Without a shell (Claude on the web or the phone): give the user the returned upload_page link; they open it, choose the photo and tell you when it is uploaded. Then pass the returned photo_url as image_url (generate_video) or reference_image_url (generate_image). The link works once and expires in 15 minutes. Free; it spends no coins.

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

Input Schema

NameRequiredDescriptionDefault
content_typeNoType of the photo to upload. Default image/jpeg.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (which only say it is not read-only, not destructive, not open-world), the description discloses the critical behaviors: single-use link, 15-minute expiry, 10 MB cap, accepted formats, and that it costs no coins. It does not describe error behavior if the upload fails or is never completed, which is the only remaining gap.

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?

Purpose is front-loaded and the shell/no-shell split is organized clearly, but the description is dense and long for a one-parameter tool, with a few clauses (coin cost, format restatement) that could be tightened.

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?

With no output schema available, the description fully compensates by naming each returned artifact (curl command, upload_page link, photo_url) and telling the agent exactly where to pass the final URL in the downstream tools.

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% with a single enum parameter, so the baseline is 3; the description additionally supplies the 10 MB size limit that the schema does not encode, adding real meaning beyond the structured field.

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 first sentence gives a specific verb and resource (get a one-use link to upload one photo) plus format and size limits, and it is clearly distinguishable from generate_image/generate_video siblings that consume the resulting URL.

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?

It states exactly when to use it ('whenever the user has a photo that is not a public https link, for example one attached to this chat') and branches into two explicit conditional procedures for shell vs. no-shell environments, including what to do afterward in each case.

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.