Skip to main content
Glama

delete_slide

Deletes a presentation slide by 1-based number, excludes global headmatter, and blocks removing the last slide. Set dry_run=true to preview the slides.md diff before writing.

Instructions

Delete a slide from the current presentation by its 1-based slide number. The global headmatter is not counted. Cannot delete the last remaining slide. 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": {
      "slide_number": "<slide_number>"
    },
    "name": "delete_slide"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoPreview the change without writing slides.md. Returns dryRun, wouldWrite, and diff.
slide_numberYes

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 load and does well: it discloses the indexing rule (headmatter not counted), a hard guard (cannot delete the last remaining slide), and the dry-run contract including returned fields (dryRun, wouldWrite, diff). It does not state whether the write is reversible or what the post-delete response contains.

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 is deleted and how it is addressed, then constraints, then the preview option. No filler and nothing buried.

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 two-parameter destructive tool with no output schema and no annotations, the description covers the indexing convention, the safety guard, and the dry-run return shape. The only real gap is the response of the actual delete (vs. the dry-run) and any permission requirement.

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 only 50% — slide_number has no schema description at all — but the description supplies the critical semantics: 1-based numbering with headmatter excluded, which the bare `integer, minimum 1` schema cannot convey. dry_run's meaning is repeated from the schema rather than extended, but the indexing detail is the higher-value addition.

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?

Specific verb + resource ('Delete a slide') plus the scope ('from the current presentation') and the addressing scheme ('by its 1-based slide number'). Deletion is unambiguously distinct from sibling mutations like update_slide, add_slide, or set_slide_transition.

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

Usage Guidelines4/5

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

Gives a concrete when-not ('Cannot delete the last remaining slide') and points to the dry_run=true preview path. It does not name an alternative sibling for the blocked case (e.g., what to do instead when only one slide remains), which keeps it below a 5.

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