Skip to main content
Glama

move_slide

Idempotent

Reorder a slide within a deck by moving it to a specified 0-based position. Previews changes by default and saves only the new slide order when write is enabled.

Instructions

Move one slide to a new 0-based position (to_index is the final position) in a deck file. Only the order changes; slide content is untouched. Dry-run by default: write=true saves atomically. Returns {ok, written, path, slide_id, 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>",
      "to_index": "<to_index>"
    },
    "name": "move_slide"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckYesDeck file inside decks/ (e.g. decks/radar-pro.json)
writeNoWhen true, save the reordered deck to decks/; when false (default), only return the preview
slide_idYesSlide id to move (e.g. s4)
to_indexYesFinal 0-based position of the slide in the deck

Output Schema

NameRequiredDescriptionDefault
okYes
pathYes
writtenYes
slide_idYes
to_indexYes
slide_idsYes
slide_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.5

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false; the description adds real context beyond that with the dry-run default and atomic save on write=true, plus the content-untouched guarantee. It leaves out failure modes (e.g., out-of-range to_index, unknown slide_id), which keeps it from a 5.

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 short sentences: operation, invariant, then mutation/return semantics. The key constraint (order-only change) and the safety default are front-loaded with zero filler.

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?

An output schema exists, yet the description's return summary is consistent with it and does not need to explain fields. Combined with the dry-run/write contract and the idempotent reorder behavior, an agent has everything needed to call this correctly; the moderate complexity of a reorder is fully covered.

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% and the schema already documents deck, write (default false, preview only), slide_id, and to_index as the 'Final 0-based position'. The description restates the same facts ('to_index is the final position', 'write=true saves atomically') without adding format or edge-case detail, so the baseline 3 applies.

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+resource ('Move one slide to a new 0-based position ... in a deck file') and immediately disambiguates scope with 'Only the order changes; slide content is untouched', which separates it from content-editing siblings like update_slide. An agent can identify the operation without opening the schema.

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?

Clearly frames the primary usage split: dry-run by default, write=true to persist, so the agent knows the safe path versus the committing path. It does not explicitly name an alternative tool (e.g., insert_slide/remove_slide) as the wrong choice, so it stops short of full when/when-not routing.

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