Skip to main content
Glama

Upload media from a URL

upload_media

Copies a public image (JPEG, PNG, WebP, GIF; 10 MB max) or video (MP4, MOV, WebM; 100 MB max) into Broadcast and returns its key. Give an image its alt text here: posts using the key send it. Call it before schedule_post or update_post whenever the post has media, then pass the key in media; a plain URL is not accepted there. Required for Instagram and TikTok, which refuse text-only posts.

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": {
      "url": "<url>"
    },
    "name": "upload_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
altNoAlternative text describing the image for people who cannot see it. Kept with the file: every post using this key without its own `alt` sends it (bluesky, mastodon, x, linkedin, threads, facebook, instagram).
urlYesPublic URL of an image (JPEG, PNG, WebP, GIF, 10 MB max) or video (MP4, MOV, WebM, 100 MB max) to copy into Broadcast.
sourceUrlNoOptional https address of the conversation or session making this call (for instance a Claude Code session link), shown as a link in the user's activity log. Omit it when unknown; never invent one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / alt / description
      Previous value: -"Alternative text for an image, read by screen readers on the networks that support it."New value: +"Alternative text describing the image for people who cannot see it. Kept with the file: every post using this key without its own `alt` sends it (bluesky, mastodon, x, linkedin, threads, facebook, instagram)."
  2. Changed1 schema field changed
    • addedInput schema / properties / sourceUrl
      Added value: +{
      +  "description": "Optional https address of the conversation or session making this call (for instance a Claude Code session link), shown as a link in the user's activity log. Omit it when unknown; never invent one.",
      +  "format": "uri",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-idempotent, open-world behavior, and the description is consistent with that by describing a copy into Broadcast that yields a new key. It adds genuinely non-schema context: the alt text persists and is sent by posts using the key, and the key must flow into `media`. It does not cover failure modes (e.g., what happens on oversized or unsupported files beyond the stated limits).

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?

Three sentences, front-loaded with the core action and return value, then usage sequencing, then the platform requirement. No filler and no repetition of the schema's format list beyond what's needed for the purpose statement.

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 correctly discloses the return value (the key). Given three parameters, an open-world fetch, and a downstream dependency on schedule_post/update_post, it covers ordering, key passing, alt handling, and platform-specific necessity.

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 description coverage is 100%, so the baseline is 3. The description adds cross-tool meaning by tying the returned key to the `media` parameter of schedule_post/update_post and by explaining that `alt` is stored with the file and reused by posts. That propagation rule is partially duplicated in the schema's `alt` description, which caps it below 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?

States a specific verb and resource ('Copies a public image ... into Broadcast') plus the return value (the `key`). Supported formats and size ceilings make it immediately distinguishable from siblings like schedule_post or validate_post.

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 ordering guidance ('Call it before schedule_post or update_post whenever the post has media') and an explicit constraint ('a plain URL is not accepted there'). It also names a hard requirement case (Instagram and TikTok refuse text-only posts), 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.

Resources