Skip to main content
Glama

Create Upload

create_upload

Ingest a LOCAL file — bytes you hold, when there is no public URL to hand import_media (prefer import_media whenever the bytes already sit at an https URL). TWO steps: (1) this tool reserves a media item and returns { id, uploadUrl, expiresAt } — a short-lived PUT URL. PUT the raw file bytes to uploadUrl over HTTPS with your declared Content-Type (≤ ~5 GB per PUT). (2) call finalize_upload({ mediaItemId: id }) to start processing. Body: filename, contentType (allowed enum), size (bytes). Thereafter it is async exactly like import_media: poll list_media for processingStatus, or register a webhook (create_webhook on media.completed). Use the returned id with get_media_context, suggest_briefs, or as a composition source.

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": {
      "body": "<body>"
    },
    "name": "create_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesPOST /media upload initiation body.
commandIdNoRetry identity. A call repeated with the same commandId returns the first result instead of acting twice.

Output Schema

NameRequiredDescriptionDefault
idNo
expiresAtNo
uploadUrlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $defs / __schema1 / enum
      Previous value: -[
      -  "video/mp4",
      -  "video/quicktime",
      -  "video/x-matroska",
      -  "video/webm",
      -  "audio/mpeg",
      -  "audio/wav",
      -  "audio/x-wav",
      -  "audio/mp4",
      -  "audio/aac",
      -  "image/png",
      -  "image/jpeg",
      -  "image/webp",
      -  "image/gif",
      -  "image/svg+xml",
      -  "application/json",
      -  "font/ttf",
      -  "font/otf",
      -  "font/woff",
      -  "font/woff2"
      -]New value: +[
      +  "video/mp4",
      +  "video/quicktime",
      +  "video/x-matroska",
      +  "video/webm",
      +  "audio/mpeg",
      +  "audio/wav",
      +  "audio/x-wav",
      +  "audio/mp4",
      +  "audio/aac",
      +  "image/png",
      +  "image/jpeg",
      +  "image/webp",
      +  "image/gif",
      +  "image/svg+xml",
      +  "image/vnd.radiance",
      +  "model/gltf-binary",
      +  "application/json",
      +  "font/ttf",
      +  "font/otf",
      +  "font/woff",
      +  "font/woff2",
      +  "application/x-cube"
      +]
  2. Changed19 schema fields changed
    • addedInput schema / $defs
      Added value: +{
      +  "__schema0": {
      +    "maxLength": 500,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "__schema1": {
      +    "enum": [
      +      "video/mp4",
      +      "video/quicktime",
      +      "video/x-matroska",
      +      "video/webm",
      +      "audio/mpeg",
      +      "audio/wav",
      +      "audio/x-wav",
      +      "audio/mp4",
      +      "audio/aac",
      +      "image/png",
      +      "image/jpeg",
      +      "image/webp",
      +      "image/gif",
      +      "image/svg+xml",
      +      "application/json",
      +      "font/ttf",
      +      "font/otf",
      +      "font/woff",
      +      "font/woff2"
      +    ],
      +    "type": "string"
      +  },
      +  "__schema2": {
      +    "exclusiveMinimum": 0,
      +    "maximum": 5368709120,
      +    "type": "integer"
      +  },
      +  "__schema3": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "__schema4": {
      +    "maxLength": 128,
      +    "minLength": 1,
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / body / properties / contentType / $ref
      Added value: +"#/$defs/__schema1"
    • removedInput schema / properties / body / properties / contentType / enum
      Removed value: -[
      -  "video/mp4",
      -  "video/quicktime",
      -  "video/x-matroska",
      -  "video/webm",
      -  "audio/mpeg",
      -  "audio/wav",
      -  "audio/x-wav",
      -  "audio/mp4",
      -  "audio/aac",
      -  "image/png",
      -  "image/jpeg",
      -  "image/webp",
      -  "image/gif",
      -  "image/svg+xml",
      -  "application/json",
      -  "font/ttf",
      -  "font/otf",
      -  "font/woff",
      -  "font/woff2"
      -]
    • removedInput schema / properties / body / properties / contentType / type
      Removed value: -"string"
    • addedInput schema / properties / body / properties / filename / $ref
      Added value: +"#/$defs/__schema0"
    • removedInput schema / properties / body / properties / filename / maxLength
      Removed value: -500
    • removedInput schema / properties / body / properties / filename / minLength
      Removed value: -1
    • removedInput schema / properties / body / properties / filename / type
      Removed value: -"string"
    • addedInput schema / properties / body / properties / projectId / $ref
      Added value: +"#/$defs/__schema3"
    • removedInput schema / properties / body / properties / projectId / minLength
      Removed value: -1
    • removedInput schema / properties / body / properties / projectId / type
      Removed value: -"string"
    • addedInput schema / properties / body / properties / size / $ref
      Added value: +"#/$defs/__schema2"
    • removedInput schema / properties / body / properties / size / exclusiveMinimum
      Removed value: -0
    • removedInput schema / properties / body / properties / size / maximum
      Removed value: -5368709120
    • removedInput schema / properties / body / properties / size / type
      Removed value: -"integer"
    • addedInput schema / properties / commandId / $ref
      Added value: +"#/$defs/__schema4"
    • removedInput schema / properties / commandId / maxLength
      Removed value: -128
    • removedInput schema / properties / commandId / minLength
      Removed value: -1
    • removedInput schema / properties / commandId / type
      Removed value: -"string"
  3. Changed1 schema field changed
    • addedInput schema / properties / commandId
      Added value: +{
      +  "description": "Retry identity. A call repeated with the same commandId returns the first result instead of acting twice.",
      +  "maxLength": 128,
      +  "minLength": 1,
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / body / properties / size / maximum
      Previous value: -10737418240New value: +5368709120
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations (which only say it is a non-read-only, non-destructive, non-idempotent, closed-world write): it discloses that the tool returns a short-lived PUT URL with an expiry, the ~5 GB per-PUT ceiling, the required Content-Type declaration, and that processing is asynchronous afterwards. It also names the exact follow-up call (finalize_upload with mediaItemId) needed to actually trigger processing — critical, non-obvious behavior.

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?

Dense but front-loaded and ordered as a procedure: routing rule, then step 1, step 2, then async follow-up. The 'Body: filename, contentType, size' sentence partially restates the schema and is the only borderline filler.

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?

An output schema exists, yet the description still names the key returned fields ({ id, uploadUrl, expiresAt }), covers the out-of-band HTTPS PUT that no schema can express, and points to downstream consumers (get_media_context, suggest_briefs, composition source). Everything an agent needs to complete the workflow is present.

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; the description adds real meaning by stating that contentType is an allowed enum, that size is in bytes and bound by the ~5 GB PUT limit (matching the schema maximum), and that filename identifies the object. The optional projectId is never explained, which keeps this from 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?

Opens with a specific verb+resource ('Ingest a LOCAL file') and immediately scopes it against the sibling import_media, so an agent knows exactly what this does and what it is not. The two-step reserve/PUT+finalize flow is stated up front rather than buried.

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?

Explicit selection rule: use this only when the bytes are local and there is no public URL; 'prefer import_media whenever the bytes already sit at an https URL'. It also tells the agent what to do after (finalize_upload, then poll list_media or create_webhook on media.completed), leaving nothing to inference.

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.