Skip to main content
Glama

formatSlidesText

Apply bold, italic, underline, strikethrough, font size, color, and font family to Google Slides text elements, using optional character ranges to format only selected text.

Instructions

Apply text formatting (bold, italic, underline, font size, color, etc.) to a text element in Google Slides. Use getPresentation to find element objectIds first.

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": {
      "presentationId": "<presentationId>",
      "objectId": "<objectId>"
    },
    "name": "formatSlidesText"
  }
}

Input Schema

NameRequiredDescriptionDefault
boldNoMake text bold
italicNoMake text italic
endIndexNoEnd character index (0-based)
fontSizeNoFont size in points
objectIdYesObject ID of the text element
underlineNoUnderline text
fontFamilyNoFont family name (e.g. "Arial", "Roboto")
startIndexNoStart character index (0-based). Omit with endIndex to format all text.
strikethroughNoStrikethrough text
presentationIdYesPresentation ID
foregroundColorNoText color as RGB values (0-1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It never states whether unspecified attributes are left untouched or reset, whether the operation is idempotent, what permissions are required, or whether the edit is reversible — all material for a mutation tool with eleven parameters.

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?

Two sentences, front-loaded with the action and followed by the prerequisite; nothing is buried. The parenthetical enumeration of format options mildly duplicates the schema, but the text remains tight overall.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an eleven-parameter mutation tool with no annotations and no output schema, the description omits merge-vs-replace semantics, required authorization, and any mention of a return value. An agent still has to guess at the most consequential behavior.

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 description coverage is 100%, so every parameter including the nested RGB color object and the startIndex/endIndex range is already documented, and the schema states the omit-both-to-format-all-text rule. The description's field list adds no meaning beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'Apply text formatting ... to a text element in Google Slides,' and enumerates the format attributes (bold, italic, underline, font size, color). It does not explicitly distinguish itself from the closely related sibling formatSlidesParagraph, but the 'text element' scoping makes the intent readable.

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

Usage Guidelines3/5

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

It gives one concrete prerequisite: 'Use getPresentation to find element objectIds first,' which is genuinely useful sequencing guidance. It offers no when-not guidance and no routing between this tool and siblings such as formatSlidesParagraph, batchModifyText, or modifyText that likely touch the same content.

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