Skip to main content
Glama

format_shapes

Apply fill, font style, size, and color to multiple slide shapes in one call, reducing repetitive edits while formatting a PowerPoint slide.

Instructions

Apply formatting to multiple shapes on a slide in one call. Generates Office.js code internally. Use for fill color, font bold/italic/size/color/name. Cannot set corner radius or borders (use edit_slide_xml code mode for those).

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": {
      "slideIndex": "<slideIndex>",
      "shapes": "<shapes>"
    },
    "name": "format_shapes"
  }
}

Input Schema

NameRequiredDescriptionDefault
shapesYesShapes to format with their properties
slideIndexYesZero-based slide index
presentationIdNoTarget presentation ID from list_presentations. Optional when only one presentation is connected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does disclose an important internal behavior: it generates Office.js code internally, plus a hard capability boundary. It stops short of saying whether existing formatting is overwritten or merged, whether failures are partial across the shape array, or what the tool returns.

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 short sentences, each doing distinct work: capability, internal mechanism, and limitation with escape hatch. Nothing redundant and the core purpose is front-loaded.

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 mutation tool with no annotations and no output schema, the description covers purpose, mechanism, and capability limits well. It leaves gaps around overwrite semantics and error behavior across the shape array, which matter for a batch mutation but are secondary to correct invocation.

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 parameter meaning is already fully documented (id, fill hex without #, font fields, slideIndex, presentationId). The description's enumeration of fill/font properties largely restates what the schema provides, so baseline 3 applies.

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 ("Apply formatting to multiple shapes on a slide") plus batch scope ("in one call"). An agent can distinguish it from edit_slide_xml and edit_shape_paragraphs without opening a 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 names the supported operations (fill color, font bold/italic/size/color/name) and the excluded ones (corner radius, borders), routing the agent to edit_slide_xml code mode for those. This is a genuine when-to-use / when-not-to-use / alternative mapping.

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