Skip to main content
Glama
rcarmo

office-document-mcp-server

by rcarmo

excel_add_sheet

Add a new sheet to an Excel workbook. Insert the sheet at the start, end, or after a specific existing sheet, with optional output path.

Instructions

Add a new sheet to an Excel workbook.

Creates a new empty sheet in the workbook at the specified position. The sheet can be inserted at the start, end, or after a specific existing sheet.

Example: excel_add_sheet(file_path="data.xlsx", sheet_name="Summary") excel_add_sheet(file_path="data.xlsx", sheet_name="NewSheet", position="start") excel_add_sheet(file_path="data.xlsx", sheet_name="Details", position="Sheet1")

Args: file_path: Path to the .xlsx or .xlsm file sheet_name: Name for the new sheet position: Where to insert - 'start', 'end' (default), or name of sheet to insert after output_path: Optional output path (defaults to overwriting input file)

Returns: Dictionary with success status and sheet details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath to the .xlsx or .xlsm file
sheet_nameYesName for the new sheet
positionNoWhere to insert - 'start', 'end' (default), or name of sheet to insert after
output_pathNoOptional output path (defaults to overwriting input file)
Behavior4/5

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

The description adds behavioral details beyond annotations: creation of an empty sheet, insertion position options, and overwrite behavior via output_path. However, it does not disclose behavior when the sheet name already exists or error handling.

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 concise and well-structured: a one-line summary, brief explanation, three clear examples, parameter list, and return note. Every sentence adds value without redundancy.

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

Completeness5/5

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

Given the tool's simplicity and lack of output schema, the description covers the core functionality, parameter behavior, and return value. It is complete for an agent to invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema_description_coverage is 100%, so baseline is 3. The description includes an Args section that reiterates schema descriptions but adds value through examples showing parameter combinations and usage patterns.

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 starts with 'Add a new sheet to an Excel workbook', which is a specific verb and resource. It clearly distinguishes from siblings like excel_add_chart or excel_list_sheets, as no other sibling adds a sheet.

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

Usage Guidelines4/5

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

The description provides examples and parameter details, making the usage context clear. However, it does not explicitly state when not to use this tool or mention alternatives for related operations (e.g., if sheet exists).

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/rcarmo/python-office-mcp-server'

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