Skip to main content
Glama

set_element_text

Replace the entire text content of a shape or table cell in one API call, clearing existing text and inserting new text.

Instructions

Replace ALL of a shape's (or table cell's) text in one call. (1 API call.)

Clears the element's existing text and sets it to text in a single batch (deleteText + insertText). Safe to call on an empty element. This is the ergonomic way to fill a freshly duplicated slide when the showcase example uses real text rather than {{placeholder}} tokens.

Args: presentation_id: The presentation ID. element_id: The shape or table-cell object ID. text: The new full text content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
presentation_idYes
element_idYes
textYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Without annotations, the description reveals the internal mechanism: clears existing text then sets new text in one batch (deleteText + insertText). It also states safety on empty elements, offering full transparency.

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?

The description is well-structured but slightly redundant (mentions 'in one call' twice). The Args section is clear, and overall it's efficient without being overly verbose.

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?

Given the simple tool (3 string params) and existence of output schema, the description covers behavior, parameters, and use case. Missing error conditions but adequate for the context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description includes an Args section explaining all three parameters (presentation_id, element_id, text) with meaningful descriptions, compensating fully.

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 description clearly states it replaces all text of a shape or table cell in one API call. It distinguishes itself from siblings like insert_text by specifying it replaces all text, and provides a concrete use case (filling duplicated slides).

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?

The description notes it's safe on empty elements and gives a specific use case. However, it does not explicitly mention when to avoid using it or provide direct comparisons to siblings like insert_text or replace_all_text, but the context is inferable.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JustParent/google-slides-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server