Skip to main content
Glama

Read an existing table’s style

get_table_style

Read a Google Docs table's column widths, pinned header rows, and a cell's padding, background, and borders. Use it to verify styling changes, preserve formatting during edits, or copy a table's layout elsewhere.

Instructions

Read the style of the table containing the given cell text: per-column widths (points), how many header rows are pinned, and the matched cell’s padding, background and per-side borders. The read counterpart to set_table_style — use it to check a change took, to preserve a table’s look while rewriting it, or to copy one table’s layout onto another. Column widths come back in the exact shape set_table_style accepts. Table-wide facts (widths, header rows) are reported for the whole table; padding/background/borders are reported for the MATCHED cell, since cells in one table can differ and a table-wide answer would have to guess. Note Docs gives every cell 5pt padding by default, so padding is reported even on a table nobody has styled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tabNoTarget a specific tab by tabId or title (from list_tabs). Defaults to the first tab.
cellYestext of any cell in the target table (locates the table)
pageNowhich header/footer, when a doc defines more than one (default-page, first-page, even-page). Omit to use whichever exists.
accountNoGoogle account email to use. Defaults to GDOCS_DEFAULT_ACCOUNT, or the sole account.
segmentNowhich content tree to target: body (default), or the page header/footer. Header/footer content is invisible to a body read — a letterhead logo lives there.
documentIdYes
Behavior5/5

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

No annotations are provided, so the description carries the full burden. It clearly discloses that table-wide facts apply to the whole table while cell-specific attributes apply to the matched cell, and warns that Docs gives every cell 5pt padding by default. It also promises output shape compatibility with set_table_style, which is a useful behavioral guarantee.

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?

The description is longer than a minimal one, but every sentence earns its place: the first states the core function, the second gives use cases, the third addresses output shape, the fourth clarifies scope, and the fifth covers a default caveat. It is front-loaded and not repetitive, though slightly verbose.

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?

There is no output schema, so the description must explain return values. It does so by listing the specific style attributes and clarifying which are table-wide vs cell-specific. It also handles an edge case (default padding on unstyled tables). For a read tool with nuanced output, this is 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 description coverage is high (83%), and the description does not add much parameter-level meaning beyond the schema. The cell parameter's role as a locator is already described in the schema ('text of any cell in the target table (locates the table)'), so the description's added value is mostly about output semantics rather than input parameter clarification.

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 opens with a specific verb+resource: 'Read the style of the table containing the given cell text' and enumerates exactly what is read (widths, header rows, cell padding/background/borders). It explicitly positions itself as the read counterpart to set_table_style, distinguishing it from the sibling get_style which likely targets document/paragraph style.

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?

The description provides explicit use cases: 'check a change took, preserve a table’s look while rewriting it, or copy one table’s layout onto another.' It also clarifies that it is the read counterpart to set_table_style, implying when to use the write tool instead.

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/dasasian/gdocs-mcp'

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