Skip to main content
Glama
gworkspace-mcp
by ctschak

Format text and paragraphs

docs_format

Format Google Docs text and paragraphs—bold, italics, fonts, colors, links, headings, alignment, spacing, bullets, numbering—with precise field masks preserving unmentioned styles. Supports dry-run.

Instructions

Bold/italic/underline, font, size, colours, links; paragraph named styles (headings), alignment, spacing; bullets and numbering. Uses a precise field mask, so styling you do not mention is left alone. Supports dryRun.

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": {
      "document": "<document>",
      "operations": "<operations>"
    },
    "name": "docs_format"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabNoTab id or title, for documents with several tabs. Reads default to the first tab; writes to a multi-tab document REQUIRE this rather than guessing. Get ids from docs_describe.
dryRunNoReturn the exact requests that would be sent, in the order they would be applied, and send nothing.
accountNoGoogle account to act as. Optional when one is authorised or a default is set.
documentYesDocument URL or file id. Both accepted.
operationsYesFormatting operations over index ranges.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/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 it usefully discloses that a precise field mask means unmentioned styling is preserved — a non-obvious and important behavioral guarantee for a mutation tool. It also flags dryRun. It does not state that it mutates the live document, what permissions/account assumptions apply, or how invalid index ranges are handled.

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?

Three short sentences, front-loaded with the capability list, then the two highest-value behavioral facts. The first sentence is a dense telegraphic list that reads as a fragment, though it earns its space by covering the full formatting surface.

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

Completeness3/5

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

For a tool with a five-parameter nested oneOf operation array and no output schema, the description covers capability and the partial-update contract but omits index-range semantics, the tab requirement for multi-tab writes, and sequencing behavior — all of which the schema does document, so the gap is moderate rather than fatal.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline would be 3; however this is an unusual case where the schema alone does not convey the semantics of the operations field's oneOf/discriminator structure, and the description explicitly maps the capability groups to the operation kinds (text styling, paragraph style/alignment/spacing, bullets/numbering), which genuinely helps the agent construct valid operations. It also surfaces the field-mask contract that governs how operations merge, which is not encoded anywhere in the schema.

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 enumerates the concrete formatting capabilities it applies (bold/italic/underline, font, size, colours, links, paragraph named styles, alignment, spacing, bullets/numbering), which is specific enough that an agent knows which requests belong here rather than to docs_replace_text or docs_batch_update_raw. It never states the verb or that the target is character/paragraph index ranges in a document, leaving the core action implicit.

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?

'Supports dryRun' gives one practical usage cue and the field-mask sentence implies this is the safe partial-formatting path, but there is no explicit when-to-use/when-not guidance or named alternative such as the raw batch update tool for unsupported styling.

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