Skip to main content
Glama

Embed a video or song

add_embed

Embed a YouTube video, a Spotify track, album, playlist, podcast or artist, an Instagram post or reel, or a TikTok video, so it plays on the page. TikTok needs the full tiktok.com/@name/video/… link, not a short vm.tiktok.com one.

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_embed"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesA YouTube, Spotify, Instagram or TikTok link.
endsAtNoWhen it stops showing, ISO 8601 with a time zone, e.g. 2026-12-01T18:00:00-08:00. Ask the user's time zone if unsure. null clears it.
positionNoWhere to add it: "top" (default) or "bottom".top
startsAtNoWhen it starts showing, ISO 8601 with a time zone, e.g. 2026-12-01T18:00:00-08:00. Ask the user's time zone if unsure. null clears it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / endsAt
      Added value: +{
      +  "description": "When it stops showing, ISO 8601 with a time zone, e.g. 2026-12-01T18:00:00-08:00. Ask the user's time zone if unsure. null clears it.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / startsAt
      Added value: +{
      +  "description": "When it starts showing, ISO 8601 with a time zone, e.g. 2026-12-01T18:00:00-08:00. Ask the user's time zone if unsure. null clears it.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedInput schema / properties / url / description
      Previous value: -"A YouTube or Spotify link."New value: +"A YouTube, Spotify, Instagram or TikTok link."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false), so the bar is lower, and the description still adds real value: it discloses a platform-specific input constraint (TikTok requires a full tiktok.com/@name/video/… URL, not a vm.tiktok.com short link) that would otherwise cause silent failures. It stops short of stating what happens on an unsupported URL or whether adding the same embed twice creates duplicates.

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?

Two tight sentences: the capability and supported providers come first, the failure-prone TikTok requirement second. Every clause carries information; nothing is padding.

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 four-parameter add tool with full schema coverage, no output schema, and annotations covering the safety profile, the description supplies the one non-obvious IO rule an agent needs. Gaps are minor — no mention of the return value (e.g. a block identifier) or of error behavior for unsupported links.

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, and the description earns a bump by adding format meaning beyond the generic schema text "A YouTube, Spotify, Instagram or TikTok link" — namely the required TikTok URL shape. It still leaves the accepts/rejects boundary for other provider URL variants unstated.

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?

States a specific verb ("Embed") and enumerates the exact resources supported — YouTube videos, Spotify tracks/albums/playlists/podcasts/artists, Instagram posts/reels, TikTok videos — plus the outcome ("plays on the page"). It does not, however, distinguish itself from overlapping siblings such as add_music or add_social, which an agent could reasonably confuse with Spotify and Instagram/TikTok embedding.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied: the provider list tells the agent this is the tool for adding playable media to a page, but there is no explicit when-to-use/when-not statement and no named alternative for the ambiguous cases (music vs. social embeds). The TikTok link rule is the only actionable constraint given.

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