Skip to main content
Glama

Start a large file upload

chirpie_create_media_upload

Start a direct upload, for a file too large to send to chirpie_upload_media as base64 data. Returns an upload_id, an upload_url, a method and headers. Send the file's bytes as the request body to upload_url with exactly that method and those headers, for example: curl -X PUT --data-binary @video.mp4 -H "" "<upload_url>". Then call chirpie_upload_media with the upload_id, which checks the file and returns its media id. The target closes after an hour. Direct uploads take up to 20 MB for an image and 512 MB for a video.

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": {
      "content_type": "<content_type>",
      "size": "<size>"
    },
    "name": "chirpie_create_media_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeYesThe file's exact size in bytes. The upload may carry no more than this.
filenameNoA name to show in the dashboard. Never used to decide the file type.
content_typeYesThe file's type: image/jpeg, image/png, image/webp, image/gif, video/mp4 or video/quicktime.
idempotency_keyNoA key of your own making. The same key with the same request hands back the same upload target for 24 hours.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only mark this as a non-read-only, non-destructive, non-open-world operation; the description adds the genuinely useful behavior: the return payload (upload_id, upload_url, method, headers), the exact byte-push convention with a curl example, the one-hour expiry of the upload target, and the size ceilings. It stops short of stating auth requirements or what happens on a failed or expired upload, which keeps it from a 5.

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-loads the purpose and the differentiator before the mechanics, and the curl example earns its space by disambiguating 'send bytes with exactly that method and headers'. Minor drag from the placeholder-style header snippet, but no sentence is 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?

With no output schema, the description fully compensates by enumerating the returned fields and describing the two-step handoff that consumes them, plus expiry and size constraints. Nothing an agent needs in order to complete the upload flow is missing.

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 coverage is 100% and every parameter (size, filename, content_type, idempotency_key) is already documented in the schema, so the description is not obligated to restate them. It reinforces the size concept via the 20 MB / 512 MB caps but adds no new meaning for content_type, filename, or the idempotency key's 24-hour semantics beyond what the schema says.

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 ('Start a direct upload') and immediately distinguishes it from the sibling chirpie_upload_media by explaining when base64 is not viable. An agent can route between the two tools without opening either 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?

Gives an explicit selection condition ('a file too large to send to chirpie_upload_media as base64 data'), names the alternative, and adds concrete thresholds (20 MB image / 512 MB video). It also spells out the required follow-up call to chirpie_upload_media with the upload_id, so the whole sequence is unambiguous.

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.