Skip to main content
Glama

search_and_replace

Find and replace text across entire PowerPoint decks, including SmartArt and notes, while preserving original formatting. Supports regex for advanced matching and safe live editing with backups.

Instructions

Deck-wide find and replace, safe across fragmented runs (each replacement keeps the first run's formatting), SmartArt node text included. regex=True enables capture groups (refused live); matches overlapping slide-number/date fields are skipped. Bulk cell rewrites: set_table_cells (tables-charts pack). Saves atomically with two-slot backup. live='auto' edits the open PowerPoint copy of a locked file; 'force' targets the open session; 'off' refuses locked files. Batches: apply_edits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
findYes
liveNoauto
regexNo
scopeNo
backupNo
replaceYes
file_pathYes
match_caseNo
include_notesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.1
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond readOnlyHint=false, it discloses atomic saves with two-slot backup, the formatting-preservation guarantee across fragmented runs, regex capture-group refusal in live mode, and skipped slide-number/date fields. These are concrete side-effect and edge-case behaviors an agent cannot infer from annotations.

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?

The text is about 60 words yet covers purpose, safety, regex/live modes, backup, and sibling routing. It is front-loaded with the core operation and every clause adds information.

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 write tool with output schema available, it covers most invocation-relevant behaviors: locking, backup, formatting, and exclusions. The main gap is the scope parameter, whose semantics are not clarified, which keeps it from being fully complete.

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?

It adds meaningful behavior for regex (capture groups, refused live) and live (auto/force/off), and mentions the backup behavior. However, with 0% schema description coverage, the description still leaves several parameters unexplained, notably scope, and only implies match_case/include_notes from their names.

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?

The first clause, 'Deck-wide find and replace', names a specific verb and resource with clear scope, and the rest adds distinguishing traits (fragmented-run safety, SmartArt inclusion, excluded fields). It also points to set_table_cells and apply_edits as different tools, which separates it from nearby siblings.

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

Usage Guidelines5/5

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

The description gives explicit routing: bulk cell rewrites go to set_table_cells, batched edits go to apply_edits. It also defines the live parameter's three modes (auto/force/off) with the exact locked-file behavior, which tells an agent when to select each setting.

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