Skip to main content
Glama
kapilcdave
by kapilcdave

Delete element

delete_element
DestructiveIdempotent

Delete a shape, image, table, or other page element from a Google Slides presentation by object ID. Use the slide deletion tool instead to remove whole slides.

Instructions

Delete a shape, image, table or other page element. Use delete_slide to remove whole slides.

Input Schema

NameRequiredDescriptionDefault
objectIdYesPage element object ID from get_slide
presentationIdYesPresentation ID. Found in the Google Slides URL: docs.google.com/presentation/d/<ID>/edit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=true, so the safety profile is known. The description adds the scope of deletable element types and clarifies it does not delete slides, but does not discuss permissions, permanence beyond the destructive hint, or side effects. With annotations covering the safety signal, a 3 is appropriate.

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?

Two sentences, front-loaded with the operation and object types, followed by a sibling pointer. No redundant or filler text.

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 two-parameter destructive delete tool, annotations cover safety, the schema documents both required inputs, and the description identifies the object scope and the slide-deletion alternative. No output schema is needed; an agent has enough to call it correctly.

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%; objectId is described as a page element object ID from get_slide, and presentationId as the ID from the Google Slides URL. The description's list of element types lightly contextualizes objectId but adds no format, source, or validation details beyond the schema. Baseline 3 fits.

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, 'Delete', and specific resources, 'shape, image, table or other page element', and explicitly distinguishes from delete_slide for whole slides. An agent can select it 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 Guidelines5/5

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

Explicitly routes whole-slide removal to delete_slide, which clearly implies this tool is for individual page elements. The condition for choosing the alternative is stated, not left to inference.

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