Skip to main content
Glama

Create Upload Session

create_upload_session

Create a browser upload link for media files. ALWAYS use this when the user shares an image or video in chat — their file is local and cannot be passed directly to publish_content.

WORKFLOW:

  1. Call this tool to get an uploadUrl

  2. Give the user the link to open in their browser and upload their file

  3. After upload, call get_upload_session to get the public media URL(s)

  4. Use the returned URL with publish_content or schedule_content

Supports up to 20 files per session. Expires in 15 minutes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mediaTypeNoOptional hint for expected media type

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesNo
statusNo
isErrorNo
successNo
mediaUrlNo
expiresAtNo
mediaTypeNo
mediaUrlsNo
sessionIdNo
uploadUrlNo
mediaItemsNo
errorMessageNo
followUpSuggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "errorMessage": {
      +      "type": "string"
      +    },
      +    "expiresAt": {
      +      "type": "string"
      +    },
      +    "files": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "followUpSuggestions": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "isError": {
      +      "type": "boolean"
      +    },
      +    "mediaItems": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "mediaType": {
      +      "type": "string"
      +    },
      +    "mediaUrl": {
      +      "type": "string"
      +    },
      +    "mediaUrls": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "sessionId": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "type": "string"
      +    },
      +    "success": {
      +      "type": "boolean"
      +    },
      +    "uploadUrl": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With all annotations false, the description carries the full burden. It discloses key behavioral traits: creates a browser link, user must open it to upload, supports up to 20 files, expires in 15 minutes, and the file is local. This goes well beyond the minimal annotation info and sets clear expectations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear opening, a numbered workflow, and key constraints (file limit, expiration). Every line adds value; the workflow steps are necessary and concise, making it easy to follow without unnecessary fluff.

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?

Despite having only one optional parameter and an output schema, the description is self-sufficient: it covers the tool's purpose, exact usage scenario, step-by-step workflow, and operational limits. There's no missing information an agent would need to invoke it correctly.

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?

The input schema has 100% coverage for the single optional parameter mediaType, including an enum and description. The description doesn't add new parameter-level semantics beyond what the schema already provides, so the baseline of 3 is appropriate.

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 description states a specific verb and resource: 'Create a browser upload link for media files.' It clearly distinguishes itself from siblings like upload_media and get_upload_session by focusing on generating a user-facing upload URL, and it explicitly mentions the context of chat-shared images/videos.

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?

Provides explicit when-to-use guidance: 'ALWAYS use this when the user shares an image or video in chat.' It also explains why (local file cannot be passed directly to publish_content), and maps out a full workflow including next steps (get_upload_session, publish_content/schedule_content), effectively differentiating from alternatives.

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.