Skip to main content
Glama

Slides Replace Text In Presentation

slides_replace_text_in_presentation
Idempotent

Replaces every occurrence of specified text across all slides in a Google Slides presentation, including template placeholders, and reports how many replacements were made.

Instructions

Replace every occurrence of a piece of text on all slides of a Google Slides presentation, e.g. a template placeholder such as {{name}}. The presentation_id comes from drive_list_files, search_workspace or slides_create_presentation; for any other edit use slides_batch_update_presentation (extended tool tier). Returns status ok, presentation_id and occurrences_changed, the number of replacements (0 when nothing matched).

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": {
      "contains_text": "<contains_text>",
      "presentation_id": "<presentation_id>",
      "replace_text": "<replace_text>"
    },
    "name": "slides_replace_text_in_presentation"
  }
}

Input Schema

NameRequiredDescriptionDefault
match_caseNoMatch letter case exactly when true; by default matching ignores case.
replace_textYesText that replaces each occurrence; an empty string deletes the matches.
contains_textYesExact text to find; every occurrence is replaced.
presentation_idYesGoogle Slides presentation ID: the Drive file ID, also the long ID in the presentation's URL.

Output Schema

NameRequiredDescriptionDefault
statusNoMachine-readable operation status.
presentation_idNo
occurrences_changedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare idempotent=true, destructive=false and openWorld=true, so the safety profile is covered. The description adds real value beyond them: the operation spans all slides, and it discloses the return payload (status, presentation_id, occurrences_changed) including the 0-match case. What it omits is the content-loss risk of an empty replace_text (documented only in the schema) and any rate/scale caveats.

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 dense sentences, front-loaded with the core behavior, then the sibling boundary, then the return contract. No filler or repetition of the title.

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?

Although an output schema exists, the description's one-line return summary orients the agent before it calls. Combined with full schema coverage and clear annotations, nothing needed to invoke this correctly 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 baseline is 3; the description still adds meaning by illustrating contains_text with a template-placeholder example and by pointing to the source tools for presentation_id. It does not elaborate on match_case or the empty-string deletion behavior, which stay schema-only.

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 with scope: 'Replace every occurrence of a piece of text on all slides of a Google Slides presentation.' The placeholder example ({{name}}) makes the exact use case concrete, and naming slides_batch_update_presentation separates it from the general editing sibling.

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?

Explicit routing: use this for text replacement, and 'for any other edit use slides_batch_update_presentation (extended tool tier).' It also tells the agent where presentation_id comes from (drive_list_files, search_workspace, slides_create_presentation), removing the main prerequisite ambiguity.

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

Deploy Server

Other Tools