Skip to main content
Glama

get_doc_named_styles

Reads a Google Doc’s named style defaults and returns them as a theme dictionary so you can compare named styles with actual paragraph formatting and detect direct overrides.

Instructions

Read a Google Doc's named style defaults and return them as a theme dict.

Named styles are set via Format > Paragraph styles > Update X to match in the Google Docs UI. They define the default appearance for each style type and are inherited by paragraphs that have no explicit overrides.

Most docs leave named styles at Google's defaults even when paragraphs look custom — because humans usually format text directly without updating named styles. In that case this tool returns Google's defaults (Arial/Roboto etc.), which may not reflect the doc's actual appearance. Use get_doc_theme to read what the doc actually looks like based on applied paragraph styles.

Calling both tools and comparing results is useful: if they agree, named styles are in sync with actual content; if they differ, styles were applied directly to paragraphs without updating named style definitions.

Args: doc_id: The Google Doc file ID.

Returns: Theme dict keyed by named style type. Only entries with at least one non-default field are included. Returns an empty dict if named styles are at Google's defaults.

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": {
      "doc_id": "<doc_id>"
    },
    "name": "get_doc_named_styles"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A4.4/5.0
Behavior4/5

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

Annotations carry only a title, so the description bears the disclosure burden and does well: it explains that defaults may be returned, that only non-default entries appear, and that an empty dict signals all-default state. It does not state permission or auth requirements for reading a doc, which is the main remaining gap.

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?

Purpose is front-loaded in the first sentence, followed by context that genuinely changes how an agent should interpret the result. The middle explanation of Google UI behavior is slightly long, but no sentence is filler.

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

Completeness5/5

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

A single-parameter read tool with an output schema, and the description still covers the confusing edge cases (defaults returned despite custom-looking paragraphs, empty dict result). Nothing needed to call or interpret it correctly is missing.

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 0%, so the description must compensate; it identifies doc_id as 'The Google Doc file ID', which clarifies format but adds no further constraints. Adequate but thin for the sole required parameter.

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 and resource ('Read a Google Doc's named style defaults and return them as a theme dict') and names the sibling it is contrasted with, get_doc_theme. An agent can distinguish the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says when this tool is misleading ('most docs leave named styles at Google's defaults') and directs the agent to get_doc_theme for actual appearance. It also explains the joint pattern of calling both and comparing results, which is genuine routing guidance.

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

Deploy Server

Other Tools