Skip to main content
Glama

edit_shape_paragraphs

Replace a shape's paragraph content with raw OOXML while preserving body properties and list styles; read the current XML first, then write back the modified paragraphs.

Instructions

Replace paragraph content of a shape with raw OOXML <a:p> XML. Preserves <a:bodyPr> and <a:lstStyle>. Use read_shape_paragraphs first to get the current XML, modify it (using /pptx skill knowledge), then write it back. The slide is exported, modified server-side, and reimported — data never enters Claude's context.

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>",
      "shapeId": "<shapeId>",
      "xml": "<xml>"
    },
    "name": "edit_shape_paragraphs"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmlYesThe <a:p> paragraph XML to replace the current text body content with
shapeIdYesShape ID from inspect_slide results
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.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses preservation semantics (<a:bodyPr> and <a:lstStyle> survive), the server-side export/modify/reimport pipeline, and that data never enters the model's context. It stops short of stating error behavior for malformed XML or what the response 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, front-loaded with the action and payload, followed by preservation guarantees and then the workflow. No filler or restated metadata.

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 an unannotated mutation tool with no output schema, it covers the essentials: replacement scope, what is preserved, the prerequisite read step, and the server-side pipeline. The remaining gap is failure/validation behavior, which is minor relative to what is disclosed.

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 all four parameters are already documented in the schema and the baseline is 3. The description adds modest meaning by specifying that 'xml' is <a:p> paragraph XML and by pointing to read_shape_paragraphs as the source for that value.

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 precise verb and resource ('Replace paragraph content of a shape') plus the exact payload format (raw OOXML <a:p> XML), which cleanly separates it from slide-level siblings like edit_slide_xml and from the read_shape_paragraphs counterpart.

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?

Gives an explicit read-modify-write workflow ('Use read_shape_paragraphs first ... then write it back'), which tells the agent the prerequisite and ordering. It does not name when to prefer this over edit_slide_xml or edit_slide_zip, so an explicit exclusion is absent.

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