Skip to main content
Glama

update_paragraph_style

Apply paragraph formatting, heading styles, and list formatting to Google Docs text ranges to structure documents and customize appearance.

Instructions

Apply paragraph-level formatting, heading styles, and/or list formatting to a range in a Google Doc.

This tool can apply named heading styles (H1-H6) for semantic document structure, create bulleted or numbered lists with nested indentation, and customize paragraph properties like alignment, spacing, and indentation. All operations can be applied in a single call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYesUser's Google email address
document_idYesDocument ID to modify
start_indexYesStart position using Docs API indices from inspect_doc_structure. For the main body, 0 is also accepted as an alias for the first writable position.
end_indexYesEnd position (exclusive) - should cover the entire paragraph
heading_levelNoHeading level 0-6 (0 = NORMAL_TEXT, 1 = H1, 2 = H2, etc.) Use for semantic document structure
alignmentNoText alignment - 'START' (left), 'CENTER', 'END' (right), or 'JUSTIFIED'
line_spacingNoLine spacing multiplier (1.0 = single, 1.5 = 1.5x, 2.0 = double)
indent_first_lineNoFirst line indent in points (e.g., 36 for 0.5 inch)
indent_startNoLeft/start indent in points
indent_endNoRight/end indent in points
space_aboveNoSpace above paragraph in points (e.g., 12 for one line)
space_belowNoSpace below paragraph in points
named_style_typeNoDirect named style type - 'NORMAL_TEXT', 'TITLE', 'SUBTITLE', 'HEADING_1' through 'HEADING_6'. Mutually exclusive with heading_level.
tab_idNoOptional document tab ID to target
segment_idNoOptional header/footer/footnote segment ID to target
directionNoParagraph direction - 'LEFT_TO_RIGHT' or 'RIGHT_TO_LEFT'
keep_lines_togetherNoKeep all lines of the paragraph together
keep_with_nextNoKeep the paragraph with the next paragraph
avoid_widow_and_orphanNoAvoid widows/orphans for the paragraph
page_break_beforeNoStart the paragraph on a new page
spacing_modeNo'NEVER_COLLAPSE' or 'COLLAPSE_LISTS'
shading_colorNoParagraph shading/background color (#RRGGBB)
list_typeNoCreate a list from existing paragraphs ('UNORDERED' for bullets, 'ORDERED' for numbers, 'CHECKBOX' for checklists)
list_nesting_levelNoNesting level for lists (0-8, where 0 is top level, default is 0) Use higher levels for nested/indented list items
bullet_presetNoOptional explicit Google Docs bullet preset

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It describes the tool's capabilities (e.g., applying styles, creating lists, customizing properties) and mentions it can handle multiple operations in one call, which adds useful context. However, it does not disclose critical behavioral traits such as required permissions (e.g., edit access to the document), whether changes are reversible, rate limits, or error handling, leaving significant gaps for a mutation tool.

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?

The description is appropriately sized and front-loaded, with the first sentence clearly stating the tool's purpose. Each subsequent sentence adds specific value by detailing formatting options (e.g., heading styles, lists, paragraph properties) and operational efficiency ('All operations can be applied in a single call'), with zero wasted words.

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 tool's complexity (25 parameters, mutation operation) and the presence of an output schema (which handles return values), the description is reasonably complete. It covers the tool's purpose and key capabilities. However, with no annotations and a mutation tool, it should ideally include more behavioral context (e.g., permissions, reversibility) to fully compensate for the lack of structured safety hints.

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?

The input schema has 100% description coverage, so the baseline is 3. The description adds minimal value beyond the schema by mentioning 'paragraph-level formatting' and 'heading styles,' which loosely maps to parameters like 'heading_level' and 'named_style_type,' but does not provide additional syntax, format details, or usage examples that aren't already in the schema descriptions.

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 the tool's purpose with specific verbs ('apply paragraph-level formatting, heading styles, and/or list formatting') and resources ('to a range in a Google Doc'). It distinguishes itself from siblings by focusing on paragraph-level styling in Google Docs, unlike tools like 'format_slides_paragraph' for slides or 'modify_doc_text' for text content.

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?

The description implies usage for formatting paragraphs in Google Docs, but does not explicitly state when to use this tool versus alternatives like 'format_slides_paragraph' for slides or 'batch_update_doc' for batch operations. It mentions 'All operations can be applied in a single call,' which suggests efficiency for multiple formatting tasks, but lacks explicit when-not-to-use guidance or named alternatives.

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/HuntsDesk/ve-gws'

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