Skip to main content
Glama

Add slides

add_slides

Append one to three Markdown slides to a walkthrough, optionally after a specified slide, and get error and warning feedback to revise content.

Instructions

Append slides to a walkthrough, written in Markdown.

Calls:

  • Opening: normally sent in start_walkthrough's opening (see its example). Only if it was not sent there, the first call carries it and nothing more: the title slide and one or two short spoken sentences. That call returns when the link is playable, with the full guide; send the link to the user then, before anything else.

  • All other calls: first one short slide alone, then one to three whole slides. Never resend earlier Markdown. Never split a slide or its code block across calls.

  • Replies list problems, each ending in a code; errors come first. Fix errors in sent slides now with revise_slide; fix warnings in later slides.

Format:

  • Slide: each #, ## or ### heading starts one. Optional attributes: ## Title {#id .build}; .build reveals parts as cues reach them.

  • Narration: every plain paragraph is spoken, labels included, each voiced separately: never start one with "Narration:" or "Slide 3:". Put identifiers in backticks; [text]{say="spoken"} fixes pronunciation.

  • Shown text: > lines are shown, never spoken; under the first heading, one is the subtitle.

  • Layout: > under a heading is its takeaway; {.side} puts one to three > lines beside the visual, {.pair} shows two visuals side by side, {.full} the visual edge to edge; a slide with only a > sentence is a statement. {icon=name} on a heading, and :name: before a list item, stat label or > line, add a Lucide icon. Vary the look from slide to slide.

  • Visual: at most one per slide: fenced code, diff, mermaid diagram, math formula, pipe table, list, image alt, chart bar|hbar|line, terminal session, tree of files, stat numbers, chat exchange, svg drawing (consecutive svg step blocks are versions that glide into each other; svg sketch looks hand-drawn), reladraw boxes and lines placed by relation (`node b "B" right of a`, `edge a -> b`), memory variables, objects and pointers (head -> n1, n1: Node {val: 1, next -> n2}), plot x=-3..3 curves of formulas (`f(x) = x^2`), or drawio file=path, a draw.io diagram the project already has. A ```trace block after code shows its variables as it runs (L4 t = 3 per moment, cued #trace-4). Syntax and examples: resource showntell://slide-kinds.

  • Choose the visual by the idea's shape: a change → diff, not the new code alone; flow, steps, causes and effects → mermaid; numbers → chart or stat; a formula's curve → plot; data structures, pointers, call frames → memory; boxes and arrows laid out as you picture them → reladraw; something physical or spatial → svg drawing; commands → terminal; dated events → .timeline list. Lists and tables only for words with no shape, never three in a row.

  • Code options: scroll for long code; consecutive ```lang step blocks are versions of one code slide.

  • Code from disk, with an empty body and the file's own line numbers in the gutter:

Inline code may set start=10.

  • Diff: python old then python new blocks; diff with -/+ lines, one hunk per slide; or diff file=path rev=A (against the working tree), rev=A..B (two commits) or rev=A...B (B against the commit where it branched off A: what a pull request shows).

  • List: - **Title**: text {#id}; without {#id}, the id is the title, lowercased and hyphenated. 1. items are steps; .cards on the heading shows cards; .timeline puts dates, the bold titles, on a line; .quiz makes two to four - [ ] items with one - [x] a multiple-choice question, choices #a to #d, the answer shown when a cue points at it.

  • Cues are links in narration around the words that name the target. The pointer lands as the label's first word is spoken, within the current slide only. label line 12 | #L12-18 a range | label only that text on line 12 | #-L5 old side, #+L7 new side of a diff | #id a list item, card, Mermaid or reladraw node, chart bar or series, tree entry, drawing element (also by its or text as a slug) or draw.io cell (also by a unique label) | #row-2 the second table row, or a {#id} ending its last cell | # the whole visual; label finds that text in it. Also #params.name a key in JSON, YAML or TOML, #trace-3 a trace's moment, #step-2 (only with step blocks), #a->b->c flowchart edge path, #Sender->>Receiver a sequence-diagram message, #@l,t,w,h image, drawing or draw.io region; {.circle}, {.arrow}, {.zoom} etc. after a cue (see showntell://slide-kinds).

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": {
      "handle": "<handle>",
      "markdown": "<markdown>"
    },
    "name": "add_slides"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoOptional: the id of a sent slide to insert these slides right after, to add to a walkthrough already written. Omit to append. Insert whole slides, each starting with a heading.
handleYesHandle from start_walkthrough.
markdownYesSlides in Markdown: one to three whole slides, nothing already sent. Only when the opening was not sent with start_walkthrough: the first call carries just the title slide and one or two spoken sentences.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.8
    • addedInput schema / properties / after
      Added value: +{
      +  "default": "",
      +  "description": "Optional: the id of a sent slide to insert these slides right after, to add to a walkthrough already written. Omit to append. Insert whole slides, each starting with a heading.",
      +  "title": "After",
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare it as a non-destructive, non-idempotent, closed-world write; the description adds far more: the opening call blocks until the link is playable, replies enumerate problems each ending in a code with errors listed before warnings, and repeated or split slides are prohibited. That is substantial behavioral context beyond the structured hints, with no contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The purpose and call sequence are front-loaded well, but the bulk is a dense reference manual with long bullet runs enumerating visual block types and cue selectors. Much of that syntax is explicitly deferred to resource showntell://slide-kinds, so a meaningful share of the text duplicates material the agent is told to consult elsewhere.

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 tool whose input is a rich slide DSL with no output schema, the description covers the ordering contract, the failure/reply model, the authoring format and the pointer to deeper syntax docs. Nothing an agent needs in order to call this correctly on the first attempt is missing.

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

Parameters5/5

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

Schema coverage is 100%, so 3 is the floor, but the description goes well past the schema on `markdown`: it defines what counts as a slide, the heading/attribute syntax, narration vs shown text, and the one-visual-per-slide rule. The `after` parameter is not discussed in the description, which is the only gap, but the added meaning on the dominant parameter is unusually rich.

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?

The first sentence gives a specific verb, resource and content format: 'Append slides to a walkthrough, written in Markdown.' It immediately distinguishes itself from start_walkthrough (which normally carries the opening) and revise_slide (which fixes already-sent slides), so an agent can route correctly without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use rules are given per call type: the opening goes in start_walkthrough's `opening` unless it was missed, then the first call carries only the title slide; all other calls send one short slide then one to three whole slides. It also names the alternative for fixing problems ('fix errors in sent slides now with revise_slide; fix warnings in later slides'), which is exactly the when/when-not/alternative structure being scored.

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