Skip to main content
Glama

preview_stills

Idempotent

Render one PNG per slide to check layout before a full deck render; optionally limit to a single slide or return downscaled images inline for review.

Instructions

Render one PNG per slide into out/_stills/ to check layout before a full render. Synchronous: can take up to 15 minutes. Use only_slide (e.g. s5) to render a single slide. include_images=true also returns up to 8 PNGs inline as image content, downscaled to 1280 px wide or tall (originals stay on disk); anything not inlined is counted in images_omitted. Use render_deck for the video and render_thumbnail for the cover image only.

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": {
      "deck": "<deck>"
    },
    "name": "preview_stills"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckYesPath to the deck JSON file to preview
skip_ttsNoReuse existing WAV files instead of regenerating TTS
only_slideNoOptional single slide ID (e.g. s5) to render instead of all slides
include_imagesNoWhen true, return up to 8 rendered PNGs inline as MCP image content, downscaled to 1280 px

Output Schema

NameRequiredDescriptionDefault
pngsYes
stills_dirYes
images_omittedYes
images_includedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.5
    • addedInput schema / properties / include_images
      Added value: +{
      +  "default": false,
      +  "description": "When true, return up to 8 rendered PNGs inline as MCP image content, downscaled to 1280 px",
      +  "type": "boolean"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "images_included": {
      +      "type": "integer"
      +    },
      +    "images_omitted": {
      +      "type": "integer"
      +    },
      +    "pngs": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "stills_dir": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "stills_dir",
      +    "pngs",
      +    "images_included",
      +    "images_omitted"
      +  ],
      +  "type": "object"
      +}
  2. Changed3 schema fields changedv0.1.1
    • addedInput schema / properties / deck / description
      Added value: +"Path to the deck JSON file to preview"
    • addedInput schema / properties / only_slide / description
      Added value: +"Optional single slide ID (e.g. s5) to render instead of all slides"
    • addedInput schema / properties / skip_tts / description
      Added value: +"Reuse existing WAV files instead of regenerating TTS"
  3. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already cover safety and idempotency (destructive=false, idempotent=true), and the description adds behavior they cannot express: synchronous execution that may take up to 15 minutes, PNGs written to disk at a stated path, an inline image cap of 8 downscaled to 1280 px, and an images_omitted counter for the remainder. The write-to-disk behavior is consistent with readOnlyHint=false. Minor gap: it does not say what happens on partial failure during a long synchronous render.

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

Conciseness5/5

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

Front-loads purpose and output location, then the timing caveat, then parameter usage, then sibling alternatives. Every sentence carries distinct information with no restatement of the name or schema boilerplate.

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?

Covers what an agent needs for a long-running, disk-writing render: output path, latency expectation, inline-image limits, and alternatives. With an output schema present, return-value detail is rightly omitted. Only the failure/partial-render behavior is unaddressed.

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 the baseline would be 3, but the description adds real meaning beyond it: a concrete only_slide example (s5), and the full semantics of include_images (cap of 8, downscaled to 1280 px, originals remain on disk, remainder counted in images_omitted). Only skip_tts is left to the schema, which documents it adequately.

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 and resource ("Render one PNG per slide"), names the output directory (out/<slug>_stills/), and gives the intent ("to check layout before a full render"). It explicitly distinguishes itself from render_deck and render_thumbnail, so an agent can route correctly without opening a 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?

Provides an explicit when-to-use condition (preview layout before committing to a full render) and names two alternatives with their domains: render_deck for the video, render_thumbnail for the cover image only. It also explains the only_slide variant for narrowing scope, leaving nothing to inference.

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