Skip to main content
Glama

excel_set_alignment

Set cell alignment and text layout options, including horizontal/vertical alignment, wrapping, indent, rotation, and fit, for cells in an Excel worksheet.

Instructions

Set cell alignment

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>"
    },
    "name": "excel_set_alignment"
  }
}

Input Schema

NameRequiredDescriptionDefault
indentNoIndent level (0-255)
endCellNoEnd cell (optional)
filenameYesOpened workbook name
verticalNoVertical (top/middle/bottom/justify/distributed)
wrapTextNoWrap text
startCellYesStart cell (e.g., A1)
worksheetYesWorksheet name
horizontalNoHorizontal (left/center/right/fill/justify/distributed)
shrinkToFitNoShrink to fit
textRotationNoRotation angle (0-180)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/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 behavioral burden and delivers almost nothing. It does not state that this is a mutating operation on an open workbook, what happens to cells outside startCell/endCell, whether unset properties are left untouched, or any error conditions.

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?

The single three-word phrase is front-loaded but is under-specification rather than conciseness: it eliminates all detail an agent would need, including range and workbook-state context. Nothing is extraneous, but almost nothing is earned either.

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?

A 10-parameter mutation tool with no annotations and no output schema needs meaningful description to be usable. Three words leave the agent without required context on workbook state, range targeting, and mutation semantics.

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%, with each of the 10 properties documented (including allowed values for vertical/horizontal), so the baseline is 3. The description adds no extra meaning about how startCell/endCell define the target range or how indent/textRotation interact.

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?

"Set cell alignment" names a specific verb (set) and a specific resource attribute (cell alignment), so the agent knows exactly what the tool modifies. It stops short of distinguishing this from overlapping siblings such as excel_set_cell_format or excel_set_range_format, which also affect appearance.

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 prerequisite (e.g. the workbook must already be open), and no mention of when to prefer this over the many sibling formatting tools. The intended usage is only inferable from the name itself.

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