Skip to main content
Glama

excel_set_gradient_fill

Apply a gradient fill to an Excel worksheet cell range by setting start and end colors and optional direction, enabling programmatic spreadsheet formatting.

Instructions

Apply gradient fill

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>",
      "color1": "<color1>",
      "color2": "<color2>"
    },
    "name": "excel_set_gradient_fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoType (horizontal/vertical/diagonal)
color1YesStart color hex
color2YesEnd color hex
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

D1.9/5.0
Behavior2/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 and delivers almost nothing. 'Apply' weakly implies a mutation, but the description never states that it overwrites any existing fill on the target cells, whether the change is reversible, what permissions or open-workbook state are needed, or what happens when endCell is omitted.

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?

Three words with no wasted prose, but the brevity here is under-specification rather than efficiency. There is no structure to front-load because there is only one fragment and no supporting detail at all.

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

Completeness1/5

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

For a mutation tool with seven parameters, five of them required, no annotations, and no output schema, the definition is far too thin. An agent cannot tell what the call actually affects or how to choose it over the many sibling formatting tools, so nothing beyond the schema is covered.

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 seven parameters (including the optional endCell and the horizontal/vertical/diagonal type) are already documented in the schema. The description adds no meaning beyond that, so the baseline 3 applies rather than a penalty.

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?

The description 'Apply gradient fill' essentially restates the tool name (set_gradient_fill) with no added specificity: it does not say what a gradient fill is applied to (a range, a cell, a shape), how the two colors are interpolated, or how it differs from nearby formatting tools like excel_set_background_color or excel_add_color_scale. It is barely above tautology and gives an agent no discriminator against siblings.

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

Usage Guidelines1/5

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

There is no when-to-use or when-not-to-use guidance at all: no mention of when to prefer this over excel_set_background_color, excel_flash_fill, or excel_add_color_scale, and no stated preconditions such as requiring the workbook to be opened first. The agent must infer everything from the name.

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