Skip to main content
Glama

docs_format

Formats selected text, sections, or entire Google Docs with bold, italic, fonts, colors, links, alignment, lists, indents, and spacing, then verifies changes against the saved document.

Instructions

Format existing text in a Google Doc like a person would: select a target (exact text, a section under a heading, or the whole document) and apply bold/italic/underline/strikethrough, font, size, colour, highlight, link, paragraph style, alignment, list, indent or line spacing. Verified against the saved document.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allNoFormat the whole document.
docYesGoogle Docs URL or document id.
textNoExact text to format (use this, section, or all).
formatYesFormatting to apply to the selection. Toggles take true/false.
accountNoWhich signed-in Google account to use: an index as in /u/N/ URLs (0 = first account) or an email address. Omit for the browser default. Use this for documents owned by a second (e.g. school) account.
sectionNoHeading text: formats the paragraphs under that heading.
matchCaseNo
occurrenceNoWhich match of text: 1 = first (default), -1 = last.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations provided, so the description carries more weight. It notes 'Verified against the saved document' (adds some behavioral context) and implies mutation. However, it does not disclose permissions, reversibility, or what happens on failure. With no annotations, behavioral disclosure is partial.

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?

One long but well-structured sentence with no waste. Front-loaded with the action and target, then enumerates options. Slightly dense but efficient.

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?

Given 8 parameters, nested objects, no output schema, and no annotations, the description is adequate but leaves gaps: it does not explain return values (e.g., success/failure), account parameter usage (covered by schema), or side effects. Verification note helps but not fully complete.

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 coverage is 88%, so the schema already documents most parameters. The description adds a little by listing the formatting categories but does not provide syntax or format details beyond what is in the schema. Baseline 3 is appropriate.

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 (format) and resource (existing text in a Google Doc), enumerates the target selection modes (exact text, section, whole document) and the formatting actions. Distinguishes from siblings like docs_write/docs_edit; not a tautology.

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?

Implies usage on existing text, but does not explicitly say when to use this tool vs docs_edit, docs_write, or docs_replace. The selection modes give some context, but no when-not or alternatives are named.

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