Skip to main content
Glama

format_sheet_range

Apply formatting to Google Sheets ranges: set colors, number formats, text wrapping, alignment, and text styling for improved data presentation.

Instructions

Applies formatting to a range: colors, number formats, text wrapping, alignment, and text styling.

Colors accept hex strings (#RRGGBB). Number formats follow Sheets types (e.g., NUMBER, CURRENCY, DATE, PERCENT). If no sheet name is provided, the first sheet is used.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYesThe user's Google email address. Required.
spreadsheet_idYesThe ID of the spreadsheet. Required.
range_nameYesA1-style range (optionally with sheet name). Required.
background_colorNoHex background color (e.g., "#FFEECC").
text_colorNoHex text color (e.g., "#000000").
number_format_typeNoSheets number format type (e.g., "DATE").
number_format_patternNoCustom pattern for the number format.
wrap_strategyNoText wrap strategy - WRAP (wrap text within cell), CLIP (clip text at cell boundary), or OVERFLOW_CELL (allow text to overflow into adjacent empty cells).
horizontal_alignmentNoHorizontal text alignment - LEFT, CENTER, or RIGHT.
vertical_alignmentNoVertical text alignment - TOP, MIDDLE, or BOTTOM.
boldNoWhether to apply bold formatting.
italicNoWhether to apply italic formatting.
font_sizeNoFont size in points.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. While it mentions what formatting is applied and some format specifics (hex colors, Sheets number format types), it doesn't disclose important behavioral traits: whether this is a destructive/mutative operation, what permissions are required, whether changes are reversible, how conflicts with existing formatting are handled, or what the response looks like. For a tool with 13 parameters and no annotation coverage, this is a significant 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?

The description is appropriately concise with three sentences that each serve a purpose: stating the core functionality, specifying format details, and explaining default behavior. It's front-loaded with the main purpose and avoids unnecessary elaboration. The structure is logical and 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 the tool's complexity (13 parameters, spreadsheet formatting operation) and the presence of an output schema (which means return values are documented elsewhere), the description is moderately complete. It covers the what and some how, but lacks important context about behavioral aspects, error conditions, and usage scenarios. With no annotations and a mutative operation, more behavioral transparency would be expected.

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 schema already documents all 13 parameters thoroughly. The description adds some value by clarifying color format ('hex strings (#RRGGBB)'), number format types ('Sheets types (e.g., NUMBER, CURRENCY, DATE, PERCENT)'), and the default sheet behavior, but doesn't provide significant additional parameter semantics beyond what's in the schema descriptions. This meets the baseline for high schema coverage.

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 clearly states the tool's purpose: 'Applies formatting to a range' with specific formatting types listed (colors, number formats, text wrapping, alignment, text styling). It distinguishes itself from sibling tools like 'format_slides_text' or 'format_slides_paragraph' by specifying it works on spreadsheet ranges, though it doesn't explicitly differentiate from other spreadsheet formatting tools like 'manage_conditional_formatting'.

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?

The description provides minimal usage guidance. It mentions 'If no sheet name is provided, the first sheet is used' which gives some context about default behavior, but offers no explicit guidance on when to use this tool versus alternatives like 'modify_sheet_values' or 'protect_sheet_range'. There's no mention of prerequisites, limitations, or typical use cases.

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/HuntsDesk/ve-gws'

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