Skip to main content
Glama
gworkspace-mcp
by ctschak

Format cells

sheets_format

Apply Google Sheets formatting—number formats, fonts, colors, borders, alignment, wrapping, merges, frozen panes, and sizing—while preserving unmentioned formatting; preview with dryRun.

Instructions

Number formats, fonts, colours, borders, alignment, wrapping, merges, frozen panes, and column/row sizing. Uses a precise field mask, so formatting 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": {
      "spreadsheet": "<spreadsheet>",
      "operations": "<operations>"
    },
    "name": "sheets_format"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoWhen true, returns the exact API request that would be sent plus an impact summary, and sends nothing.
accountNoGoogle account to act as. Optional when one account is authorised or a default is set; required otherwise.
operationsYesFormatting operations, applied in order in one batch.
spreadsheetYesSpreadsheet URL or file id. Both accepted; a URL has its id extracted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does deliver one genuinely non-obvious trait: a precise field mask means unspecified formatting is preserved, which prevents accidental resets. It also flags dryRun support, but says nothing about permissions/account requirements, the merge/unmerge structural side effects, or whether a batch is atomic on failure.

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 with zero filler; the capability list is front-loaded and the two behavioral facts follow in decreasing order of importance. The opening sentence is a bare noun fragment, which is slightly less scannable than a verb-led statement, but nothing is redundant.

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

Completeness4/5

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

For a tool with a deeply nested six-variant schema and no output schema, the description covers the capability surface, the patch semantics of the field mask, and the dryRun escape hatch — the three things an agent most needs. Auth/account expectations and batch failure behavior are left to the schema and annotations, which is a minor residual gap given 100% schema coverage.

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 100%, so the baseline is 3. The description's capability list does give semantic grounding for the 'op' variants without repeating enum values, and the field-mask statement reframes the nested style fields as a patch rather than a replacement. It adds no range, sheet-identifier, or operation-ordering details beyond what the schema already documents.

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 capability surface (number formats, fonts, colours, borders, alignment, wrapping, merges, frozen panes, column/row sizing), which pins down exactly what kind of formatting this tool does and maps to all six operation variants. It lacks a verb-driven opening sentence, so the agent must infer 'applies formatting' from the name/title plus the noun list. It does not explicitly distinguish itself from sibling tools such as sheets_batch_update_raw, though the formatting focus is unambiguous.

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

Usage Guidelines2/5

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

There is no explicit when-to-use statement, no prerequisites, and no named alternative. The closest thing to guidance is the field-mask note, which implies partial formatting is safe, and the dryRun mention, which implies preview is available. Neither tells the agent when to pick this tool over sheets_batch_update_raw for formatting work.

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