Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Tools for the user's Yoto MYO playlists and interactive cards.

  • Name cards by their title, the way the user sees them in the Yoto app. Never show card ids to the user; they can't see them anywhere.

  • Every change is plan-then-apply: call yoto_card_plan, show the user the diff and warnings, and only call yoto_card_apply after they agree. Apply takes a backup and verifies the write.

  • Cards owned by another family account are read-only from this account. Copy their media with yoto_media_import before reusing it on this account's cards.

  • To draw an icon, write a 16×16 character grid with a palette (yoto_icon_render) or start from yoto_icon_glyph; look at the preview it returns before offering the icon.

  • For interactive cards, write a story graph (yoto://schema/story-graph) and use yoto_story_compile; it simulates the card and returns a plan. The templates (yoto_template_book_selector, yoto_template_title_tracks) do the Hilo patterns in one call.

  • yoto_icon_select is for the icon chooser page only; don't call it yourself.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
yoto_whoamiA

List the linked Yoto accounts (by the short names the user gave them) and the default one.

yoto_account_linkA

Start a browser login that links a Yoto account under a short name such as "Family".

Returns the login URL (opened in the browser by default). Call yoto_whoami after the user finishes logging in to confirm the account is linked.

yoto_cards_listB

List cards in My Playlists and the family library, by title.

owned: false cards belong to another family account and are read-only from this one.

yoto_card_getA

Fetch one card by title. view is summary, outline (chapter list) or full (whole document).

Media in every view is given as yoto:# refs, which are safe to reuse in plans on the same account.

yoto_card_playableA

Short-lived signed URLs for listening to or spot-checking a card's tracks. Don't store them.

yoto_card_planA

Plan an edit to a card without writing anything. Returns a plan_id, a readable diff and warnings.

card is the card's title, or "new" (with title) to plan a new card. Show the user the diff before applying. Plans expire after 30 minutes.

Ops (address chapters by key, or by exact chapter title):

  • insert_chapter {key, title, audio: , icon?, before|after: chapter, or position: start|end|N} or {key, title, tracks: [{key?, title, audio, icon?}], ...}

  • remove_chapter {chapter}

  • move_chapter {chapter, before|after|position}

  • retitle {title} (the card) or {chapter, track?, title}

  • set_track_audio {chapter, track?, audio}

  • set_icon {chapter, track?, icon: "yoto:#…"} (no track: the chapter and all its tracks)

  • set_events {chapter, track?, events: {onEnd|onLhb|onRhb: {cmd: goto|stop, params?} | null}}

  • set_config {config: {resumeTimeout, autoadvance, disableTrackNav, …: value | null}, playbackType?}

  • set_cover {url}

  • set_metadata {metadata: {description, author, …}}

  • replace_refs {map: {"yoto:#old": "yoto:#new" | media}} (after yoto_media_import)

  • renumber_labels {} (runs automatically after structural ops)

yoto_card_applyA

Apply a plan the user has seen: checks the card hasn't changed, backs it up, writes, re-reads, verifies.

Applying the same plan twice does nothing the second time.

yoto_card_backupsA

List the local backups of a card, newest first (taken before every apply; the last 20 are kept).

yoto_card_restoreA

Plan restoring a card from a backup (the newest by default). Apply the returned plan to restore.

yoto_media_upload_beginA

Start an audio upload. exists: true means Yoto already has these bytes (no PUT needed).

Otherwise PUT the file to upload_url (bin/yoto-upload does this), then call yoto_media_upload_wait.

yoto_media_upload_waitB

Wait for Yoto to transcode an upload. Returns the yoto:# ref plus duration, fileSize, channels, format.

yoto_media_upload_fileA

Upload a local audio file in one step and wait for transcoding. The bytes never pass through Claude.

yoto_media_importA

Copy a card's audio and icons from one linked account into another (media refs are per account).

Returns a map from old refs to new media; use it in a replace_refs op on the destination's copy.

yoto_icon_renderA

Render 16×16 icons from character grids and return a preview sheet to look at.

Each spec: {"name": str, "rows": [16 strings of 16 chars], "palette": {char: "#RRGGBB" | "#RRGGBBAA" | "transparent"}}. "." and " " are transparent unless the palette says otherwise. Style: strokes at least 2 px, 4 colours or fewer, a 1 px margin, bright colours that read on black, one idea per icon. Fix lint warnings and re-render (at most three rounds) before offering an icon.

yoto_icon_glyphB

A centred icon of 1–2 characters (digits, A–Z, ? ! + -) or one symbol (★ ♥ ♪ ☾ ☀).

Returns the spec (editable, for yoto_icon_render) and its preview.

yoto_icon_from_imageB

Downscale and quantize a local image into a 16×16 spec, as a starting point to clean up.

yoto_icon_uploadA

Upload an icon: the sha256 of a rendered icon, or a local PNG/GIF path. Returns its yoto:# ref.

Without auto_convert the file must be exactly 16×16 RGBA PNG, so Yoto stores the pixels as drawn. Use the ref in a set_icon op.

yoto_icons_searchB

Search this account's uploaded icons and Yoto's public icons by title and tags.

yoto_cover_uploadB

Upload cover art from a local image (Yoto resizes it). Use the url in a set_cover op.

yoto_ttsA

Speak a short prompt on this machine, check it with speech-to-text, and upload it.

text is what the card displays; the pronunciation map rewrites it for speaking ("Hilo" → "High-low" by default). Returns media (ref, duration, …) to use as a track's audio, plus the transcript and a match score. Listen again if the match is low.

yoto_story_validateA

Check a story graph for unreachable nodes, dead ends, missing targets and endless loops. Writes nothing.

A graph: {"start"?: id, "nodes": [{"id", "type": "choice"|"segment"|"end", "title", "tracks": [{"title", "audio": "yoto:#…" | media | asset name, "icon"?}], "next"?: id|"stop", "left"?: id, "right"?: id}], "assets"?: {name: media}, "expect"?: [{"presses": ["right", "left"], "plays": [node ids]}]}. A choice waits for a button; a segment plays on to next; an end stops. Node order is chapter (dial) order, with the start node first. Full schema: yoto://schema/story-graph.

yoto_story_compileA

Compile a story graph into an interactive card, walk it like the player would, and (if the walk is clean) return a plan writing it to card (a title, or "new"). Show the user the simulator result and the diff, then yoto_card_apply.

A graph: {"start"?: id, "nodes": [{"id", "type": "choice"|"segment"|"end", "title", "tracks": [{"title", "audio": "yoto:#…" | media | asset name, "icon"?}], "next"?: id|"stop", "left"?: id, "right"?: id}], "assets"?: {name: media}, "expect"?: [{"presses": ["right", "left"], "plays": [node ids]}]}. A choice waits for a button; a segment plays on to next; an end stops. Node order is chapter (dial) order, with the start node first. Full schema: yoto://schema/story-graph.

yoto_story_simulateB

Replay button presses against a card (by title) or a draft graph and list what plays.

presses is a list of "left", "right" or "end" (let the track finish). After the presses run out the card plays on until it stops or waits for a button. Also returns the full walk report.

yoto_story_from_cardB

Turn a card's events back into a story graph (one node per chapter) for editing and recompiling.

yoto_template_book_selectorA

Build a "choose a book" interactive card from a linear multi-book card, as a plan.

Right cycles the books' prompts, left picks one: it announces " Book N: " and plays that book and the ones after it. Left/right step tracks while a book plays. Generates and uploads the spoken prompts (only the upload writes anything). subtitles maps book number to subtitle. target is the card to rebuild (default: the existing " (Choose a Book)" if there is one, else a new card). Use the source card's owner account.

yoto_template_title_tracksA

Plan inserting a spoken " Book N: " title track before each book of a linear card.

Also regenerates the intro chapter's audio with recalculated track numbers ("Book 4, track 2."). Books that already have a title track are left alone. Returns a plan; apply it after the user agrees.

yoto_icon_chooserA

Open an icon picker over a card: one row per chapter, with Yoto's matching icons, the account's own icons and any icons you drew (generated: {chapter_key or "*": [sha256 from yoto_icon_render]}).

In Claude Code it opens in the browser and returns when the user presses Done, with their picks as a plan of set_icon ops (generated icons are uploaded first). In an MCP Apps host it renders inline and returns at once; call yoto_icon_chooser_result after the user says they're done.

yoto_icon_selectA

Save picks from the icon chooser page. Called by the page only, not by Claude.

yoto_icon_chooser_resultC

The picks made so far in an icon chooser, as a plan of set_icon ops, plus any requests for new icons.

Prompts

Interactive templates invoked by user choice

NameDescription
book-selectorBuild a choose-a-book interactive card from a linear card.
add-title-tracksAdd spoken title tracks before each book of a linear card.
audit-cardCheck a card for foreign refs, label gaps, dead ends and stale intros.

Resources

Contextual data attached and managed by the client

NameDescription
icon-chooser
story-graph-schema
interactive-reference

TDQS

B3.4/5.0

Scored across 29 tools

Disambiguation4/5

Most tools have clearly distinct scopes: account, card CRUD, media, icons, story graphs, and templates are separated. A few boundaries blur — `yoto_media_upload_file` overlaps with the `begin`/`wait` pair, `yoto_story_compile` also walks/validates like `yoto_story_validate`, and the trio `yoto_icon_chooser`/`yoto_icon_chooser_result`/`yoto_icon_select` serve one flow — but descriptions clarify these (e.g. icon_select is 'called by the page only').

Naming Consistency4/5

All names share the `yoto_` prefix and snake_case, making them predictable and greppable. There are minor deviations in ordering — most are noun_verb (`yoto_card_get`, `yoto_media_upload_begin`) but a few are noun-first or bare (`yoto_icon_chooser`, `yoto_template_book_selector`, `yoto_tts`, `yoto_whoami`) — and `yoto_cards_list` is plural while `yoto_card_get` is singular.

Tool Count3/5

29 tools is heavy, though the domain (account linking, card editing, media upload, icon design, story compilation, book templates) is genuinely broad. Several merge candidates exist — the 8-strong icon sub-flow and the three-step upload begin/wait/file pattern could be consolidated — pushing it past the comfortable range.

Completeness4/5

Card lifecycle is well covered: list, get, playable URLs, plan/apply with back-ups and restore, plus new-card creation via plans. Media, icons, TTS, story compilation and templates round out authoring. Minor gaps remain — no explicit card delete, no account unlink/switch, and no playlist management.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues