Skip to main content
Glama

update_slide

DestructiveIdempotent

Merge fields into one slide of a deck file to change its title or voice_text, with null values deleting fields. Previews validation by default; write=true saves atomically.

Instructions

Shallow-merge fields into one slide of a deck file (e.g. change title or voice_text). A null value removes that field; the slide id cannot be changed. Dry-run by default: write=false returns the validated result without touching the file; write=true saves atomically. Refuses any edit whose resulting deck fails validate_deck, including missing assets. Returns {ok, written, path, slide_id, changed_fields, 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>",
      "patch": "<patch>"
    },
    "name": "update_slide"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckYesDeck file inside decks/ (e.g. decks/radar-pro.json)
patchYesFields to set on the slide; a null value deletes that field. Must not contain id.
writeNoWhen true, save the validated deck back to decks/; when false (default), only return the preview
slide_idYesSlide id to update (e.g. s3)

Output Schema

NameRequiredDescriptionDefault
okYes
pathYes
writtenYes
slide_idYes
slide_idsYes
slide_countYes
changed_fieldsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.5

TDQS

A4.7/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: null deletes a field (explaining the destructiveHint), the slide id is immutable, writes are atomic, and there is a validation gate that rejects edits leaving the deck or its assets broken. Annotations only flag 'destructive/idempotent'; the description explains exactly what is destroyed and under what conditions the write is blocked.

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?

Front-loads the core action, then semantics, then safety behavior, then return shape — four compact clauses with no filler. Every sentence carries information an agent needs before calling.

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 mutation tool with nested-object parameters, it covers mutation semantics, mutation safety, and failure conditions, and the return contract is backed by an output schema. Nothing material for a correct invocation is missing.

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 the schema lacks: the patch is a SHALLOW merge (not deep), null values are deletions rather than literal nulls, and patch fields map to slide properties such as title and voice_text. The write default and its preview-versus-save semantics are reinforced beyond the schema's one-liner.

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 — 'Shallow-merge fields into one slide of a deck file' — with a concrete example ('change title or voice_text'). The word 'one slide' plus 'shallow-merge' cleanly separates it from insert_slide, move_slide, remove_slide, and get_slide without needing to name them.

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 clear operating context: dry-run is the default (write=false), and any edit whose resulting deck fails validate_deck is refused. What's missing is explicit routing — it never says to use insert_slide for new slides or get_slide to read, so an agent must infer those boundaries from sibling names alone.

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