Skip to main content
Glama

yoto_card_plan

Read-only

Preview Yoto card edits as a readable diff and plan_id without writing anything, so users can review chapter, track, and icon changes before applying.

Instructions

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)

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": "<card>",
      "ops": "<ops>"
    },
    "name": "yoto_card_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
opsYes
cardYes
titleNo
accountNo
renumberNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say readOnlyHint/openWorldHint; the description adds real behavior beyond that: the plan is ephemeral (30-minute expiry), it returns warnings, and renumber_labels runs automatically after structural ops. It also discloses cross-tool sequencing requirements for media refs, which 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.

Conciseness4/5

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

Front-loaded with purpose and return artifact, then a scannable bulleted op catalog; nearly every line carries syntax the schema does not. A few entries compress types into notation like ': value | null' and '…', which is dense but not wasteful.

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 complex planning tool with an output schema, the description covers the workflow (plan, show diff, apply, expiry) and every operation shape. The residual gaps are the undocumented 'account' parameter and what kinds of 'warnings' may appear, but these are minor against the breadth covered.

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 0% and 'ops' is a free-form array (additionalProperties: true), so the description carries the full burden and does so with a per-op field breakdown, including how chapters can be addressed (key or exact title) and positional insert options. Gaps remain: 'account' is never mentioned and the top-level 'renumber' boolean is only hinted at via the auto-renumber note.

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?

States a specific verb+resource with its defining constraint up front: 'Plan an edit to a card without writing anything,' and names the artifact it produces (plan_id, diff, warnings). The phrase 'before applying' implicitly separates it from yoto_card_apply, so an agent can tell plan from commit without opening either 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?

Gives clear operative guidance: show the user the diff before applying, plans expire in 30 minutes, and 'card' is a title or "new" with 'title' to create. It also routes to yoto_media_upload_wait for audio and yoto_media_import before replace_refs. It never explicitly names yoto_card_apply as the commit path, which is the one missing routing link.

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