Skip to main content
Glama

Get links to send files

start_file_upload

Get short-lived links to upload files, so the bytes never pass through you. A photo or short video that is already in this chat (one you made, or one the person attached) does not need this: pass it as files to publish_post or schedule_post directly. Do NOT try to pass a file to a tool — it would go through the context window as base64. For a POST (the default): pass count = how many files (1 for a photo or reel, 2-10 for a carousel, in swipe order), PUT each file to its link (curl -T works), then give the upload_id to publish_post (now) or schedule_post (later). If you cannot send HTTP requests yourself (a chat app whose sandbox cannot reach other servers), give the person page_url instead: they open it and pick the file, and when they say it is sent, call publish_post with the upload_id. A file you made (an image you generated): they save it first, then pick it there. JPEG photos and MP4/MOV videos (the page turns PNG/WebP photos into JPEG), up to 1GB each, all photos or all videos; they are deleted once posted. A reel's own cover image is an upload of its own: count 1, PUT the one JPEG or PNG, then pass that upload_id as cover_upload_id (not upload_id) to publish_post, publish_video, schedule_post, schedule_video or reschedule_post. For a sequence's lead-magnet PDF: purpose "pdf" gives one link whose response carries the public url for set_sequence_download. Links last an hour.

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

Input Schema

NameRequiredDescriptionDefault
countNoFor a post: how many files. Default 1.
clientNoClient website slug (or id). Required for platform-scoped keys.
purposeNoDefault "post". "pdf" for a sequence's lead magnet.

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 the generic mutating profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false), so the description carries the real burden and does: links last an hour, files are deleted once posted, 1GB ceiling, JPEG/MP4/MOV with PNG/WebP conversion, all-photos-or-all-videos constraint, and the base64 context-window hazard. That is unusually rich operational context beyond anything in the structured fields, and nothing contradicts 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?

Information-dense and front-loaded with the core purpose and the default POST workflow before edge cases. However, it is one long semicolon-chained paragraph that mixes workflow, format constraints, cover-image handling, and PDF handling together; the cover-image and PDF branches would scan better separated.

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?

This is a multi-step orchestration tool with no output schema, and the description covers the full lifecycle: allocate (count, purpose), transfer (PUT/curl or page_url fallback), and hand off (upload_id to publish_post/schedule_post, cover_upload_id for reel covers). Practically everything an agent needs to execute correctly is present, including the one-hour link expiry.

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 adds real meaning: count means 1 for a photo or reel and 2-10 for a carousel in swipe order, and purpose "pdf" yields a link whose response carries the public url for set_sequence_download. The client parameter is never addressed, which keeps it off a 5.

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?

Uses a specific verb+resource ("Get short-lived links to upload files") and immediately distinguishes itself from siblings publish_post, schedule_post, and reschedule_post by naming what it is not. An agent can tell this is the upload-plumbing step rather than the publishing step 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?

Explicitly states when NOT to use it ("A photo or short video that is already in this chat ... does not need this: pass it as files to publish_post") and names the alternatives. It also supplies a conditional branch for agents with no HTTP egress: use page_url and have the person pick the file. Both when-to-use and when-to-avoid are spelled out.

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