Skip to main content
Glama

yoto_story_validate

Read-only

Checks a Yoto story graph for unreachable nodes, dead ends, missing targets, and endless loops, reporting issues without writing any changes.

Instructions

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.

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>"
    },
    "name": "yoto_story_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
graphYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so 'Writes nothing' mainly reinforces structured data rather than adding new behavior. What it does add beyond annotations is the pointer to yoto://schema/story-graph and the framing that validation is purely structural. It does not say whether a failed check returns errors vs. throws, though the presence of an output schema lowers the burden there.

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?

Purpose is front-loaded in sentence one, and the remaining text is dense grammar rather than filler — appropriate given a 0%-coverage nested parameter. The pseudo-JSON block is telegraphic and takes effort to parse, but every line carries real constraint information.

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 one-parameter validator over a deeply nested graph object, the description supplies the grammar, edge semantics, and a schema deep-link, and the output schema covers return values. Missing is any statement of ordering/priority among reported errors or whether validation is a gate for yoto_story_compile, which would round it out.

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 the single parameter is an additionalProperties object with no field documentation, so the description carries the full burden and largely does: it defines node types ('choice' waits for a button, 'segment' plays to `next`, 'end' stops), the next/left/right edge semantics, asset mapping, and the `expect` presses/plays probe structure. Some sub-fields remain terse ('media' vs 'asset name', node 'title' role), which is why it points to the full schema rather than being self-sufficient.

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?

The first sentence gives a specific verb-and-resource pair plus the exact defect classes it detects: unreachable nodes, dead ends, missing targets, endless loops, and it states 'Writes nothing.' That is far more informative than a name restatement. It never names a sibling (e.g., yoto_story_simulate or yoto_story_compile), so the boundary against adjacent story tools is left to inference.

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: an agent can infer this is the structural pre-check before compile or simulate, and that it is safe to run repeatedly since it writes nothing. There is no explicit 'use this before X' or 'use simulate instead if you want play traces' statement, and no prerequisites or exclusions are given.

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