Skip to main content
Glama
Yoto Cards MCP
by haimrait

Add tracks to a card

add_tracks

Add one or more audio tracks to an existing Yoto card in order; uploads and transcodes audio, skips existing tracks, and reports failures.

Instructions

Add one or more tracks to an existing card, in the order given. Audio is downloaded or read, checked to really be audio, uploaded and transcoded by Yoto in the background, then all tracks are written to the card in one change (so concurrent adds cannot overwrite each other). Tracks that fail are reported and the rest are still added. Audio already on the card is skipped and reported, unless allow_duplicates is true. Use stream_url instead of url for live or changing audio that should stream each time.

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": {
      "card_id": "<card_id>",
      "tracks": "<tracks>"
    },
    "name": "add_tracks"
  }
}

Input Schema

NameRequiredDescriptionDefault
tracksYes
card_idYesThe card ID from list_cards (5 characters, e.g. "a1B2c").
confirmNoOnly when the tracks include YouTube links: set true after the parent confirmed in this conversation that the family has the right to use that audio.
positionNoInsert before this track number. Default: at the end.
wait_secondsNoSeconds to wait for the job before returning (default 25). Long uploads keep running after this; follow up with get_job.
allow_duplicatesNoAudio already on the card is normally skipped and reported. Set true only when the parent wants the same audio twice.
normalize_volumeNoAsk Yoto to even out loudness while transcoding.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Well beyond the annotations (readOnly=false, destructive=false, openWorld=true), it discloses the whole pipeline: download or read, audio validation, upload, background transcoding by Yoto, then an atomic single-change write so concurrent adds cannot overwrite each other. It also explains partial failure (failed tracks reported, the rest still added) and dedupe behavior, which an agent cannot infer from structured fields.

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?

Front-loads the action and scope in the first sentence, then layers pipeline behavior, failure handling, dedupe, and the streaming alternative in a tight sequence. Every sentence carries distinct information with no filler.

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 mutation tool with no output schema, it covers what the agent needs: async job behavior and the wait_seconds/get_job follow-up, atomicity, partial-failure semantics, and duplicate handling. Safety is already carried by annotations, so nothing critical is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 86%, so the schema already documents url, path, stream_url, title, confirm, position and wait_seconds in detail. The description reinforces stream_url versus url and allow_duplicates, but adds little syntax or constraint detail beyond the schema, fitting the baseline 3.

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 and resource with scope: "Add one or more tracks to an existing card, in the order given." An agent can distinguish this from remove_tracks or reorder_tracks, but the description never names a sibling alternative (e.g. add_new_episodes for podcast feeds), so it stops short of full differentiation.

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?

Gives conditional usage rules for several parameters: use stream_url instead of url for live/changing audio, allow_duplicates only when the parent wants the same audio twice, and confirm only for YouTube links after parental confirmation. It lacks explicit when-to-use guidance against alternatives like add_new_episodes.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.