Skip to main content
Glama

rename_sheet

Change a worksheet's name in an Excel workbook by specifying the workbook ID, current sheet, and new name.

Instructions

Rename a sheet in a workbook

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": {
      "workbookId": "<workbookId>",
      "sheet": "<sheet>",
      "newName": "<newName>"
    },
    "name": "rename_sheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetYesCurrent sheet name or index (1-based)
newNameYesThe new name for the sheet
workbookIdYesThe workbook ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.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 burden and does not meet it. It says nothing about whether the rename persists automatically or requires a save, how existing references or formulas pointing at the sheet are affected, or what happens on duplicate/invalid names — all material for a mutation operation.

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?

A single front-loaded sentence with zero padding — the action and target come first. Its brevity is efficient rather than padded, though the terseness contributes to the gaps flagged in other dimensions.

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 simple 3-parameter tool with fully documented schema and no output schema, the description covers the essentials of what it does. However, as an unannotated mutation on a workbook, the missing persistence and side-effect information leaves the agent guessing about the follow-up save step.

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 coverage is 100%, with each of the three parameters described in the schema, including the useful 'current sheet name or index (1-based)' hint. The description adds no meaning beyond that, so the baseline 3 applies.

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 states a specific verb and resource ('Rename a sheet'), which is unambiguous and clearly distinct from create_sheet, delete_sheet, and list_sheets. It stops short of naming scope details (e.g., whether it works on the active/open workbook), but the core action is unmistakable.

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 guidance on when to use this versus alternatives, nor any stated prerequisites such as the workbook needing to be open first (open_workbook) or changes needing save_workbook to persist. The agent must infer the workflow entirely from sibling names.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.