Skip to main content
Glama

apply_named_style

Apply a named built-in Excel style like 'Good' or 'Heading 1' to a target range in a worksheet, changing its formatting to match the style.

Instructions

Apply a named built-in Excel style to a range (e.g. 'Good', 'Heading 1').

Args: file_path: Workbook path. sheet_name: Worksheet name. range_str: Target range. style_name: Name of the named style to apply.

Returns: dict: Result metadata.

Notes: - Mutates formatting and depends on openpyxl named style availability.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
range_strYes
sheet_nameYes
style_nameYes
Behavior3/5

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

The Notes mention that the tool 'mutates formatting' and depends on 'openpyxl named style availability,' which adds safety-relevant context beyond the input schema. However, with no annotations, key details are missing: what happens if the style is unavailable, whether existing formatting gets overwritten, and error behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with dedicated Args, Returns, and Notes sections. It is concise, front-loaded with the purpose, and contains no redundant information.

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?

For a mutation tool with no annotations and no output schema, the description provides the basic purpose, parameters, return type, and one behavioral note. However, it omits prerequisites, error scenarios, detailed return contents, and usage context, leaving gaps for an agent to fully understand the tool.

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?

The description lists all four parameters with short definitions, but schema coverage is 0%, so the description must compensate. It provides basic meaning (e.g., 'Target range', 'Name of the named style to apply') but lacks expected formats or constraints (e.g., range string notation like 'A1:B2', file path requirements).

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 clearly states the tool's specific action: 'Apply a named built-in Excel style to a range' with concrete examples ('Good', 'Heading 1'). This distinguishes it from sibling formatting tools like format_cells or conditional_format, which handle different formatting tasks.

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?

No explicit guidance is given on when to use this tool versus alternatives like format_cells, copy_cell_format, or conditional_format. The only implication is from the tool's purpose, but there are no stated exclusions or preferred scenarios.

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/mbeps/excel-mcp'

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