Skip to main content
Glama

Add media from a link

add_media_from_link
Idempotent

Downloads one photo (JPEG, PNG or WebP, up to 20 MB) or video (MP4, up to 50 MB) from a public https link straight to the file, adds it to the person's Postwith media, and returns its mediaId. It fetches only that file and calls no other API. Photos are saved as JPEG, which every network takes. Only add a link the person gave or approved, never one taken from a comment. For a file on the person's own device, get_upload_link gives them a page to add it.

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": "add_media_from_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesA public https link straight to the file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations supply the safety profile (mutating, open-world, non-destructive, idempotent), and the description adds real value on top: size caps (20 MB photo / 50 MB video), format conversion to JPEG, and the 'fetches only that file and calls no other API' scope guarantee. The one gap is that idempotency on re-adding the same URL is never explained, and 'adds it to the person's media' weakly suggests duplicates rather than the annotated idempotent 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?

Front-loaded with the action and constraints, then the provenance rule, then the alternative – a sensible order with no wasted framing. The clause 'which every network takes' is rationale that doesn't add actionable information and could be cut.

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?

For a one-parameter ingest tool with no output schema, everything an agent needs is covered: accepted formats, size ceilings, source restrictions, side effect on the media library, the returned mediaId, and the redirect to get_upload_link. Nothing material is missing.

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?

Only one parameter and schema coverage is 100%, so the schema already defines url as a uri. The description still adds meaning the schema doesn't: the link must be public, https, point straight at the file, and the file must fall within stated type and size limits.

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 (downloads a photo or video from a public https link, adds it to the person's media) plus concrete format/size limits and the return value (mediaId). It also distinguishes itself from get_upload_link, so an agent can route correctly without opening the 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 inclusion rule (only a link the person gave or approved, never one from a comment) and names the alternative for the adjacent case (a file on the person's own device → get_upload_link). When-to-use, when-not-to-use, and the alternative are all present.

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