Skip to main content
Glama

Get a link to add a file

get_upload_link

Makes a one-time lfg.gm page link for putting a file from the person's own device on a link they made: a picture or short video as the wallpaper, a song, or a voiceover. For a file only on the person's own device; a file at a public link, or one this AI app has in hand, can go on directly. On the page the person picks the file, or for a voiceover records their voice; it lands on the link when they finish. The link works once, for an hour. Returns the page link and a direct address a file can be sent to. 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>"
    },
    "name": "get_upload_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe link's id.
useYeswallpaper (picture or short video), song, or voiceover (a voice message).

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.2/5.0
Behavior5/5

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

Annotations declare a non-read-only, non-idempotent, non-destructive operation but say nothing about mechanics; the description supplies them: the link is single-use, expires in an hour, and returns both a page link and a direct upload address. It also discloses per-type size, format and duration limits and a plan-gating rule (video needs a paid plan, GIF does not), which is behavior an agent could not infer from annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core constraint is front-loaded, and the format specs earn their space, but the wording is convoluted and repeats itself ("one-time link" then "The link works once, for an hour"), and the fragment "What each takes." is a weak structural hinge. It is longer than needed for two parameters.

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 compensates by describing both return values. Format, size, duration and plan constraints are all covered, and the single-use/one-hour lifetime is stated, so an agent has everything needed to call this correctly and set user expectations.

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% and the enum already names wallpaper/song/voiceover, but the description adds real meaning per value: wallpaper accepts a square image or short looping video, song and voiceover accept audio up to 5 minutes/20MB, and voiceover can be recorded in-browser. That is more than the terse schema descriptions provide, though it never explains the required id format beyond what the pattern gives.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ("Makes a one-time lfg.gm page link for putting a file... on a link they made") and scopes it to files on the person's own device. It implicitly distinguishes itself from upload-by-URL paths ("a file at a public link, or one this AI app has in hand, can go on directly") without naming the sibling tools, so differentiation is inferable but not explicit.

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?

It gives a clear selection rule: use this when the file lives only on the person's own device, otherwise the file can go on directly via another path. It also explains the two consumption modes (pick a file on the page, or record a voiceover). It stops short of naming the alternative tools such as add_media_from_url.

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.