Skip to main content
Glama

Put a library item or upload on a link

set_media
DestructiveIdempotent

Puts something already in LFG on a link the person made, by its id: a library sound, a drawn or live look or a theme picture, or one of the person's own uploads. For something already in LFG with an id; a new file goes on by link, as a file, or through the one-time page, and a KLIPY GIF by its address. use says where it goes: the wallpaper, the song, or the voiceover (the person's own sounds only). It replaces what that slot had. An id that matches nothing returns an error.

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>",
      "media_id": "<media_id>"
    },
    "name": "set_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe link's id.
useYeswallpaper, song, or voiceover.
media_idYesA library sound's id; for a song, shuffle:lfg_picks or shuffle:music/anime (any shelf) to ring a different library song from it each time, on a clock alarm; a SoundCloud song's id (soundcloud:track:N, from find_soundcloud_song) or its link, a drawn or live look's id, a theme picture's address, or an upload's id.

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. Changed1 schema field changed
    • changedInput schema / properties / media_id / description
      Previous value: -"A library sound's id, a SoundCloud song's id (soundcloud:track:N, from find_soundcloud_song) or its link, a drawn or live look's id, a theme picture's address, or an upload's id."New value: +"A library sound's id; for a song, shuffle:lfg_picks or shuffle:music/anime (any shelf) to ring a different library song from it each time, on a clock alarm; a SoundCloud song's id (soundcloud:track:N, from find_soundcloud_song) or its link, a drawn or live look's id, a theme picture's address, or an upload's id."
  3. Changed1 schema field changed
    • changedInput schema / properties / media_id / description
      Previous value: -"A library sound's id, a drawn or live look's id, a theme picture's address, or an upload's id."New value: +"A library sound's id, a SoundCloud song's id (soundcloud:track:N, from find_soundcloud_song) or its link, a drawn or live look's id, a theme picture's address, or an upload's id."
  4. Changed1 schema field changed
    • changedInput schema / properties / media_id / description
      Previous value: -"A library sound's id, a drawn look's id, or an upload's id."New value: +"A library sound's id, a drawn or live look's id, a theme picture's address, or an upload's id."
  5. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered. The description adds genuinely new behavior: that the operation replaces whatever occupied that slot, that voiceover accepts only the person's own sounds, and that a non-matching id returns an error.

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?

The core action and its scope are front-loaded, and each sentence carries routing or behavioral information. It loses a little to redundancy — 'already in LFG ... by its id' is restated at the start of the second sentence — and the third sentence is dense with stacked alternatives.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter mutation with no output schema, the definition covers the action, the routing rules, replacement semantics, and the error case, which is close to what an agent needs to call it correctly. It does not say whether replacing a slot can be undone or what a successful response contains, but the destructive annotation already signals the risk.

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 and the schema already documents all three fields in detail. The description still adds meaning beyond it by explaining that 'use' selects a destination slot and by attaching the 'person's own sounds only' restriction to voiceover, a constraint absent from the enum description.

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?

The opening states a specific verb and resource ('Puts something already in LFG on a link... by its id') and then enumerates the acceptable item kinds: library sound, drawn or live look, theme picture, own upload. An agent can distinguish this from add_media_file, add_media_from_url, and set_gif without opening any 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?

It draws an explicit boundary: this tool is for items already in LFG with an id, whereas a new file goes on 'by link, as a file, or through the one-time page' and a KLIPY GIF 'by its address'. That is clear when-to-use/when-not guidance, but it describes the alternatives by behavior rather than naming the sibling tools, so the agent must still map descriptions to names.

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.