Skip to main content
Glama

remove_slide

Destructive

Remove a single slide from a deck by ID, with a default dry-run preview and atomic save when write=true. It refuses to delete the last slide and returns the removed slide for restoration.

Instructions

Remove one slide from a deck file by id. Refuses to remove the last slide. Dry-run by default: write=true saves atomically. The preview includes the removed slide object so it can be restored with insert_slide. Returns {ok, written, path, removed_slide_id, removed_slide, slide_count, slide_ids}.

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>",
      "slide_id": "<slide_id>"
    },
    "name": "remove_slide"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckYesDeck file inside decks/ (e.g. decks/radar-pro.json)
writeNoWhen true, delete the slide from decks/ and save; when false (default), only return the preview
slide_idYesSlide id to remove (e.g. s6)

Output Schema

NameRequiredDescriptionDefault
okYes
pathYes
writtenYes
slide_idNo
slide_idsYes
slide_countYes
removed_slideYes
removed_slide_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.5

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the destructiveHint annotation: it discloses the last-slide refusal guard, that writes are dry-run by default and atomic when enabled, and that the preview carries the removed slide object so the action is reversible via insert_slide. That is exactly the behavioral context needed for a destructive mutation.

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?

Front-loaded with the verb and resource, then guard, then safety model, then reversibility — a sensible priority order with no filler sentences. The enumerated return-field list is somewhat mechanical and partly redundant given an output schema exists.

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 destructive, non-idempotent mutation, the description covers the refusal case, default dry-run behavior, atomicity, and recovery path, which is everything an agent needs before calling. The explicit return-field list is redundant with the output schema but does no harm.

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 100%, so the baseline is 3, but the description adds real meaning: 'write=true' is framed as the atomic save switch versus the default preview mode, and the return of the removed slide ties directly to the write parameter's behavior. It does not restate deck/slide_id semantics, which the schema already handles.

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 ('Remove one slide from a deck file by id'), scopes it to a single slide, and is trivially distinguishable from siblings like insert_slide, move_slide, and update_slide.

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?

Explains the dry-run-first workflow ('write=true saves atomically') and names insert_slide as the restore path, which tells the agent the intended operating sequence. It does not explicitly exclude or redirect to update_slide/move_slide, so it stops short of full alternative routing.

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