Skip to main content
Glama

yoto_story_compile

Read-only

Compile a story graph into an interactive Yoto card, simulate player presses to verify the walk, and return a diff-based write plan for review before applying.

Instructions

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.

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": {
      "graph": "<graph>",
      "title": "<title>"
    },
    "name": "yoto_story_compile"
  }
}

Input Schema

NameRequiredDescriptionDefault
cardNonew
coverNo
graphYes
titleYes
configNo
accountNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true and openWorldHint=true, and the description is consistent: it returns a plan rather than writing directly, and only when the simulated walk is clean. The requirement to surface the simulator result and diff to the user before applying is genuine behavioral context beyond the annotations, though permission/auth and failure-mode details are absent.

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 the follow-up workflow are front-loaded in the first two sentences. The embedded graph-format block is dense and slightly awkward to parse, but every element in it is load-bearing given the undocumented schema.

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?

An output schema exists so return values need not be restated, and the description covers purpose, sequencing, and graph grammar. It stops short on the remaining optional parameters (cover, config, account) and on what happens when the walk is not clean.

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?

With 0% schema description coverage, the description carries the full burden and does so for the hardest parameter, spelling out the graph object shape (id/type/title/tracks/next/left/right/assets/expect), the meaning of choice/segment/end, and that node order is chapter order with the start node first. It also glosses `card` as a title or "new", but leaves cover, config, and account unexplained.

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?

Uses a specific verb+resource ("compile a story graph into an interactive card") and adds the distinctive behavior of walking the graph like the player would before returning a write plan. It names yoto_card_apply as the follow-up, but does not differentiate itself from close siblings like yoto_story_simulate or yoto_story_validate, whose names suggest overlapping work.

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 an explicit workflow: compile, show the user the simulator result and diff, then call yoto_card_apply, with the conditional that the plan is only produced if the walk is clean. It does not state when to choose this over yoto_story_validate/yoto_story_simulate, so the agent must infer the routing.

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