Skip to main content
Glama

Pitchlane

Add media by uploading a file

create_media_upload

Add a file to Pitchlane by uploading its bytes: a pitch video, an outro, a page video or a page image. pitch_video: the recorded pitch (video with audio). outro_video: a clip played after the pitch. page_video: a clip shown as a page. page_image: a picture shown as a page. Use this when you can send an HTTP request with the file as its body; if the file is at a public https URL, create_media_from_url is simpler. The answer has upload: send ONE PUT to upload.url with every header in upload.headers exactly as given and the file as the body, of exactly size_bytes bytes. The URL works once and expires at upload.expires_at (60 minutes). The file is then checked: poll get_media until ready or failed. The media's id can be used in create_campaign or update_campaign straight away.

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": {
      "type": "<type>",
      "content_type": "<content_type>",
      "size_bytes": "<size_bytes>"
    },
    "name": "create_media_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesWhat the file is for. It cannot be changed later.
filenameNoA name for the file, for the user's reference.
size_bytesYesThe exact size of the file in bytes. The upload must be exactly this long.
content_typeYesThe file's MIME type, e.g. `video/mp4`, `video/webm` or `image/png`.

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 safety profile (not read-only, not idempotent, not destructive). The description discloses the substantive traits: the upload is a single PUT to upload.url with headers passed verbatim, the URL is single-use and expires in 60 minutes, the body must be exactly size_bytes long, and the file is then validated asynchronously.

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?

Purpose, type enumeration, alternative routing, then the upload protocol — a sensible front-loaded order with no filler sentences. The per-type glosses are slightly repetitive in form, but each carries distinct information.

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?

There is no output schema, and the description compensates by describing the response shape (upload.url, upload.headers, size_bytes, expires_at) and the follow-up polling step. It also notes the returned media id is immediately usable in create_campaign or update_campaign, leaving nothing critical to guess.

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 explaining what each enum value of `type` represents (recorded pitch with audio, post-pitch clip, page clip, page image) rather than only 'What the file is for'. It does not add anything beyond the schema for filename or content_type.

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 opens with a specific verb and resource ('Add a file to Pitchlane by uploading its bytes') and enumerates the four supported media kinds. It explicitly contrasts itself with the sibling create_media_from_url, so an agent can distinguish the two without opening a 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?

It gives an explicit inclusion rule ('use this when you can send an HTTP request with the file as its body') and names the alternative plus the condition that selects it ('if the file is at a public https URL, create_media_from_url is simpler'). It also routes the agent to get_media afterward.

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