Skip to main content
Glama

Add a file from a link

add_media_from_url
Destructive

Puts a file from a public https link on a link the person made: a picture or short video as the wallpaper, a song, or a voiceover. For a file at a public https link; a file only on the person's device needs the one-time page instead. LFG fetches the file, checks it like any upload, replaces what that slot had, and adds it to the person's uploads. A link that cannot be fetched, or a file that is not an accepted type, returns an error. What each takes. Wallpaper: a square (1:1) picture, about 1080 x 1080 pixels, as JPEG, PNG, WebP or GIF up to 50MB; a picture that is not square is cropped to a square. Or a square MP4 or MOV video, or a GIF that loops, up to 30 seconds and 50MB; a video needs a paid plan, a GIF does not. Song or voiceover: MP3, M4A, OGG, WAV or FLAC up to 5 minutes and 20MB.

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": {
      "id": "<id>",
      "use": "<use>",
      "url": "<url>"
    },
    "name": "add_media_from_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe link's id.
urlYesA public https link straight to the file.
useYeswallpaper, song, or voiceover.
nameNoWhat to call the file in the person's library, "Soccer team anthem". When absent, the file's own title or name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"The alarm's id."New value: +"The link's id."
    • removedInput schema / properties / id / format
      Removed value: -"uuid"
    • changedInput schema / properties / id / pattern
      Previous value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"New value: +"^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it explains that LFG fetches and validates the file, adds it to the person's uploads, and replaces what the slot previously held (consistent with destructiveHint=true), plus concrete failure modes (unfetchable link, rejected type). It also discloses eligibility rules such as video requiring a paid plan and per-type size/duration limits.

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 purpose and then a well-organized 'What each takes' breakdown that is dense but useful. The opening is slightly garbled and partly restates itself ('from a public https link' appears twice in the first two sentences), which costs a point.

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?

Covers purpose, alternative routing, side effects, failure behavior, and per-type format constraints for a destructive, open-world mutation tool with no output schema. Nothing an agent needs to call it correctly 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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning by giving each enum value of `use` its own accepted formats, dimensions, and limits. The `name` parameter is not discussed, leaving that one to the schema.

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 ('Puts a file from a public https link') plus the target slots (wallpaper, song, voiceover), and explicitly carves out the device-file case that goes to the one-time page instead. An agent can distinguish it from an upload-from-device sibling 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clearly routes URL-available files here and device-only files to 'the one-time page', which is an explicit alternative. It stops short of naming the sibling tool, so the routing requires the agent to match 'one-time page' to add_media_file/get_upload_link.

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.