Skip to main content
Glama

preview_slides

Convert content into editable slide plans for review before rendering, enabling structured previews and visual enhancements.

Instructions

Convert content into a structured slide plan WITHOUT rendering. Returns editable JSON.

When to call: When the user wants to review or edit slide content before rendering. Also use as the first step in the enhanced workflow (preview → enhance with Gemini → render).

Workflow: Enhanced visuals

  1. Call preview_slides with the content

  2. Review the returned slide plan. Each slide may have an aiSuggestion field

  3. For slides with aiSuggestions, use Gemini MCP tools:

    • generate_svg for diagrams, charts, flowcharts

    • generate_image for hero images, illustrations

    • gemini_chat to rewrite slide copy for punchier hooks

  4. Inject generated SVGs into the slide's customSvg field

  5. Call render_slides with the enhanced plan

Returns: SlidePlan JSON with slides array, sourceTitle, summary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesArticle text, markdown, or transcript to convert into slides
slideCountNoTarget number of slides (4-12)
sourceUrlNoOriginal URL of the content (for CTA slide)
Behavior4/5

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

With no annotations provided, the description carries full burden. It discloses that the tool returns 'editable JSON' and outlines a multi-step workflow, including that slides may have 'aiSuggestion' fields and how to enhance them. However, it doesn't mention error handling, rate limits, or authentication needs, leaving some behavioral gaps.

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 description is well-structured with clear sections (purpose, when to call, workflow, returns). It's appropriately sized but includes a detailed workflow that, while helpful, could be slightly verbose. Every sentence adds value, but it's not maximally concise.

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?

Given no annotations and no output schema, the description compensates well by explaining the return format ('SlidePlan JSON with slides array, sourceTitle, summary') and the workflow context. It addresses complexity by detailing how to use the output with other tools, making it complete for agent understanding.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3. The description does not add any parameter-specific information beyond what the schema provides (e.g., it doesn't explain 'content' formats or 'slideCount' implications in detail), but it doesn't need to since the schema is well-documented.

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 description clearly states the tool's purpose: 'Convert content into a structured slide plan WITHOUT rendering. Returns editable JSON.' It specifies the verb (convert), resource (content into slide plan), and distinguishes from sibling 'render_slides' by emphasizing 'without rendering.'

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?

Explicitly provides when to call: 'When the user wants to review or edit slide content before rendering' and positions it as 'the first step in the enhanced workflow.' It distinguishes from 'render_slides' and mentions integration with Gemini MCP tools, offering clear alternatives and context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/houtini-ai/carousels-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server