Skip to main content
Glama

Create a presigned upload

create_upload

Upload a local PNG or JPEG (up to 10 MB) to a remote server: pass media_type, bytes and sha256, then within 15 minutes curl -X PUT -H 'content-type: <media_type>' --data-binary @<file> '<put_url>' and call get_upload (upload_not_finished…

Instructions

Upload a local PNG or JPEG (up to 10 MB) to a remote server: pass media_type, bytes and sha256, then within 15 minutes curl -X PUT -H 'content-type: <media_type>' --data-binary @<file> '<put_url>' and call get_upload (upload_not_finished before the PUT). Use the upload_id within 24 hours. Free; 200 uploads per day.

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": {
      "media_type": "<media_type>",
      "bytes": "<bytes>",
      "sha256": "<sha256>"
    },
    "name": "create_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
bytesYes
sha256Yes
filenameNo
media_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.45.0
    • removedInput schema / properties / bytes / description
      Removed value: -"Exact file size in bytes"
    • removedInput schema / properties / sha256 / description
      Removed value: -"Lowercase hex SHA-256 of the file"
  2. Changed1 schema field changedv0.39.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  3. Addedv0.33.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare a non-read-only, non-destructive write (readOnlyHint=false), and the description adds real value beyond them: the 15-minute PUT window, 24-hour upload_id validity, free tier with 200 uploads/day, and the upload_not_finished error condition. It does not state what the response contains (put_url/upload_id fields) or what happens to an expired upload, so with annotations covering the safety profile a 3 is right.

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?

A single dense paragraph that is front-loaded with the action and prerequisites, followed by the curl recipe and limits; every clause carries operational information, though the embedded shell command makes the sentence heavy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description implicitly supplies the key return artifacts (put_url, upload_id) through the curl example and the 24-hour usage rule, and covers timing and quota constraints. It stops short of describing the response shape or error cases other than upload_not_finished.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the burden; it names media_type, bytes and sha256 but adds little meaning beyond the names — it never clarifies that 'bytes' is the file size rather than the payload, and it omits the optional filename parameter entirely. Partial compensation for four undocumented parameters.

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 ('Upload a local PNG or JPEG ... to a remote server') with hard constraints (10 MB, PNG/JPEG only) and names the companion call (get_upload) so the agent knows this is the initiation step of a two-part flow.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear operational sequence — call this first, PUT within 15 minutes, then get_upload, expecting upload_not_finished before the PUT — plus the 24-hour upload_id lifetime and the 200/day quota. It does not say when to prefer this over other upload-ish siblings such as upload_image, but the in-flow guidance is explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.