Skip to main content
Glama

Create upload URLs

create_upload_urls

Prepare uploads of local files (photos, PDFs, audio, video) to Draftt, for clients that can run shell commands. Returns, per file, an upload_url and the url the file will have. A file goes up with: curl -X PUT -H "Content-Type: <content_type>" --data-binary @ "<upload_url>". The content type and the exact byte size must match what was declared, and the upload URLs expire after 10 minutes. The returned url works wherever an image or file goes: image_url and image elements in create_deck and edit_deck, or the url of an add_block op in edit_board. Works for boards and presentations; up to 50 files and 25MB each. A file already online needs no upload: its public URL works directly.

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": {
      "board_id": "<board_id>",
      "files": "<files>"
    },
    "name": "create_upload_urls"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYes
board_idYesBoard or presentation that will own the files

Output Schema

NameRequiredDescriptionDefault
dataYes
resourceYes

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 mutation/non-destructive/non-idempotent profile; the description adds the operationally critical behavior the agent cannot infer — 10-minute URL expiry, the requirement that content_type and byte size match the declaration, and the 50-file / 25MB caps. It also supplies the exact curl invocation, which is the difference between a successful and failed upload.

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 what it does, then the mechanics, then the limits — a logical order with almost no filler. It runs as one dense paragraph, so the curl template and the expiry/limit rules are slightly harder to scan than if broken into lines, but no sentence is redundant.

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?

Complete for a two-parameter tool with an output schema: the description covers the prepare step, the follow-up PUT mechanics, constraints, expiry, and limits, so an agent never needs to guess. Return values are also summarized even though the output schema already carries them, which is a bonus rather than a gap.

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 description coverage is 50%, but the nested files fields (filename, content_type, size_bytes) are already documented in the schema, and board_id is described there too. The description adds the binding constraint that size and content type must match at PUT time and clarifies how <path> and <content_type> map into the curl template, going beyond the schema's static field docs.

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 — preparing uploads of local files to Draftt — and immediately names the concrete artifacts returned (an upload_url and the resulting url per file). It also scopes applicability to clients that can run shell commands, which separates it from the server-side upload path implied by siblings like upload_board_asset.

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 explicit when-to-use and when-not-to guidance: use it for local files from a shell-capable client, and skip it entirely if the file is already online because its public URL works directly. It further routes the agent by naming where the returned url is consumed (image_url/file elements in create_deck and edit_deck, add_block url in edit_board).

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