Skip to main content
Glama

excel_set_background_color

Sets the background color of a cell or cell range in an open Excel worksheet using hex color values for visual highlighting and formatting.

Instructions

Set background color

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": {
      "filename": "<filename>",
      "worksheet": "<worksheet>",
      "startCell": "<startCell>",
      "color": "<color>"
    },
    "name": "excel_set_background_color"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorYesColor hex (e.g., FFFF0000)
endCellNoEnd cell (optional)
filenameYesOpened workbook name
startCellYesStart cell (e.g., A1)
worksheetYesWorksheet name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2/5.0
Behavior1/5

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

With no annotations, the description carries the full behavioral burden but discloses nothing: not whether existing fills or conditional formatting are overwritten, not whether startCell/endCell define a rectangular range, and not what is returned on success or failure. Three words cannot cover the behavior of a mutation tool.

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

Conciseness2/5

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

It is short, but short here reflects under-specification rather than conciseness. There is no front-loaded scope statement, no range semantics, and no indication of effect, so the words saved cost the agent information it needs to call the tool correctly.

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

Completeness2/5

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

For a five-parameter mutation tool with no annotations and no output schema, the definition is incomplete: range behavior, interaction with existing fills or conditional formats, and success/failure signaling are all unaddressed. Only the parameter schema provides any usable detail.

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 all five parameters (filename, worksheet, startCell, endCell, color) are already documented, including hex format and the optional endCell. The description adds no meaning beyond the schema, which places it at the baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Set background color" essentially restates the tool name (excel_set_background_color) and adds nothing. It does not say whether the color is applied to a cell, a range, a worksheet, or a chart element, nor how it differs from siblings like excel_set_font_color or excel_set_gradient_fill beyond the obvious word "background".

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 when-to-use guidance, no preconditions (e.g., workbook must already be opened via filename), and no mention of alternatives such as excel_set_font_color or excel_set_cell_format. The agent must infer everything from the tool name and schema.

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