Skip to main content
Glama

add_slides

Insert multiple Markdown slides as one contiguous block in a single call, reducing token overhead versus repeated inserts; optionally set insertion index or preview the diff with dry_run.

Instructions

Add multiple slides to the current presentation in a single call, inserted as one contiguous block. Use this instead of repeated add_slide calls when adding several slides at once — it is dramatically cheaper in tokens (one parse + one write for the whole batch). Optionally specify a 1-based insertion index; if omitted, the block is appended. Set dry_run=true to preview the slides.md diff without writing.

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

Input Schema

NameRequiredDescriptionDefault
indexNo1-based position where the block is inserted. If omitted, the block is appended at the end.
slidesYesOrdered list of slides to insert as one contiguous block. Authoring many slides at once with a single add_slides call is far cheaper than calling add_slide repeatedly: it parses and writes slides.md exactly once instead of once per slide. For decks already written to disk, prefer import_markdown (the content never passes through tokens).
dry_runNoPreview the change without writing slides.md. Returns dryRun, wouldWrite, and diff.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the cost model (one parse + one write for the whole batch), the append-by-default behavior when index is omitted, and that dry_run returns a preview diff without writing. It stops short of describing the success response (e.g. resulting slide indices/ids) or any validation failure behavior.

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?

Three tight sentences, front-loaded with what the tool does, then the alternative it beats, then the optional index and dry_run escape hatch. No filler and no repetition of the schema's long style-protection text.

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 three-parameter batch-write tool with no output schema, the definition covers purpose, cost rationale, sibling routing, insertion placement, and a safe preview mode. The remaining gap is post-write feedback (what the call returns on success), which an agent might reasonably want before chaining further edits.

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 coverage is 100%, so all three parameters are already documented, including the 1-based index and dry_run return fields. The description largely restates that (1-based index, append if omitted, dry_run preview) rather than adding new meaning; the only genuinely additive framing is that the inserted slides form a contiguous block at that index.

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 ('Add multiple slides to the current presentation') plus the defining constraint that they land as 'one contiguous block'. The contrast with repeated add_slide calls makes it distinguishable from the closest sibling without opening either 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?

Gives an explicit when-to-use rule ('when adding several slides at once') and names the alternative it replaces (repeated add_slide calls), with the reason (token cost). The schema layer further routes bulk disk-based authoring to import_markdown, so the agent has both the in-memory and on-disk paths resolved.

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