Skip to main content
Glama

Edit a deck

edit_deck
Destructive

Applies a list of changes to a deck: replace, update, insert, delete or move slides by id; set the title, theme, mode, minutes or theme_overrides; add or change values and interactions. Changes that can't be applied are skipped and reported, the rest are saved. A slide whose new version fails its check keeps its old version. Returns the slide list with ids and the check result.

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_id": "<deck_id>",
      "changes": "<changes>"
    },
    "name": "edit_deck"
  }
}

Input Schema

NameRequiredDescriptionDefault
changesYesApplied in order. Each is one of: {"op":"replace","id":"s4","slide":{…}} a whole new slide in place of s4; {"op":"update","id":"s4","fields":{"title":"…"}} change some fields (null removes one); {"op":"insert","slide":{…} or "slides":[…],"after":"s3"} (or "before":"s3"; neither = at the end); {"op":"delete","id":"s4"}; {"op":"move","id":"s4","after":"s9"} (or "before"; "to":"start"/"end"); {"op":"hide","id":"s4"} or "ids":["s4","s5"]: kept in the deck and the preview, skipped when presenting; {"op":"show",…} brings them back (the same as updating "hidden"); {"op":"set","title":…,"theme":…,"mode":…,"minutes":…,"dir":"rtl","signals":true} deck fields; {"op":"set","theme_overrides":{"accent":"#1f5fd6"}} theme adjustments, merged key by key (null removes a key; "theme_overrides":null removes them all); {"op":"values","values":{"name":12,"other":"name * 2"}} add or change values (null removes); {"op":"interaction","interaction":{"id":"q1",…}} add or replace one; {"op":"delete_interaction","id":"q1"}
deck_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, so the mutation risk is known, but the description adds genuinely non-derivable behavior: invalid changes are skipped and reported rather than aborting, valid ones are still saved, and a slide failing its check retains its old version. That partial-failure contract is the key thing an agent needs before issuing a bulk edit.

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?

Three sentences, front-loaded with the operation scope followed by failure semantics and the return value; nothing is padded. It is dense but each clause carries operational information for a multi-op tool.

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 batch-mutation tool with no output schema, the description covers the ordering guarantee, partial-failure behavior, per-slide rollback on check failure, and what is returned (slide list with ids and check result). Nothing essential for correct invocation is missing.

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?

Top-level parameters (deck_id, changes) carry no schema descriptions, though the nested 'changes' items are documented in depth. The description reinforces op semantics ('by id', set of settable deck fields, values/interactions) but largely restates what the nested schema already documents, so it adds only modest meaning.

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?

Opens with a specific verb and resource ('Applies a list of changes to a deck') and then enumerates the exact operation families: replace/update/insert/delete/move slides by id, set deck fields, and values/interactions. An agent can immediately distinguish this from create_deck or get_deck.

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

Usage Guidelines3/5

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

Usage is implied by the fact that slides must already exist by id (editing an existing deck rather than creating one), but there is no explicit when-to-use/when-not statement or named alternative such as create_deck for new decks. The batch-ordering note ('Applied in order') is useful context but not a selection guideline.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.