style_paragraph
Applies paragraph formatting to every paragraph overlapping [start_index, end_index): named_style (normal_text, title, subtitle, heading_1..heading_6 — the way to make headings), alignment (start/center/end/justified), line_spacing (100 = single, 200 = double), space_above/space_below (points), i...
This record as markdown: /tools/a1-x-tech-mcp-google-docs/style-paragraph.md
What style_paragraph does on Mcp Google Docs
AI agents invoke style_paragraph to trigger actions in Mcp Google Docs. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call: builds kicked off, notifications sent, workflows started.
| Parameter | Type | Required | Description |
|---|---|---|---|
tab_id | string | — | Tab to target (from list_tabs). Omit for the first/only tab. |
alignment | string | — | Text alignment. |
direction | string | — | Content direction. |
end_index | integer | Yes | End of the paragraph range (exclusive). |
indent_end | number | — | Indent from the end edge, points. |
segment_id | string | — | Header/footer/footnote segment id (from get_document). Omit for the document body. |
document_id | string | Yes | The document id — the long id from the document URL (docs.google.com/document/d/<documentId>/edit) or from create_document output. |
named_style | string | — | Named paragraph style — headings feed the document outline. |
space_above | number | — | Extra space above the paragraph, points. |
space_below | number | — | Extra space below the paragraph, points. |
start_index | integer | Yes | Start of the paragraph range (inclusive). |
indent_start | number | — | Indent from the start edge, points. |
Parameters from the server's own tool schema.
Why style_paragraph is rated High
style_paragraph triggers real processes with real consequences. An agent gone sideways doesn't fire it once. It starts dozens of builds, sends mass notifications, or burns through compute before anyone looks up.
Risk signalsHigh parameter count (15 properties)
Attacks that exploit this kind of access
The rule that runs style_paragraph safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Mcp Google Docs, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For style_paragraph, this is the rule to start with:
style_paragraph stays usable, but rate-capped: a runaway agent can't fire it dozens of times a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Mcp Google Docs, apply this rule, and every style_paragraph call is checked against it from then on.
Questions about style_paragraph
Applies paragraph formatting to every paragraph overlapping [start_index, end_index): named_style (normal_text, title, subtitle, heading_1..heading_6 — the way to make headings), alignment (start/center/end/justified), line_spacing (100 = single, 200 = double), space_above/space_below (points), indent_start/indent_end/indent_first_line (points), keep_with_next and direction (ltr/rtl). Only the provided fields change; at least one is required. A range inside a single paragraph styles that whole paragraph. It is categorised as a Execute tool in the Mcp Google Docs MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
style_paragraph accepts 12 parameters: tab_id, alignment, direction, end_index, indent_end, segment_id, document_id, named_style, space_above, space_below, start_index, indent_start. Required: end_index, document_id, start_index. The full parameter table on this page comes from the server's own tool schema.
Register the Mcp Google Docs MCP server in PolicyLayer and add a rule for style_paragraph: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Mcp Google Docs. Nothing to install.
style_paragraph is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.
Yes. Add a rate_limit block to the style_paragraph rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for style_paragraph. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
style_paragraph is provided by the Mcp Google Docs MCP server (@a1-x-tech/mcp-google-docs). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Mcp Google Docs, and thousands of servers like it.
Across the catalogue