Skip to main content
Glama

protection

Protect or unprotect Excel sheets, cells, and workbooks with customizable permissions to control editing access.

Instructions

Sheet and workbook protection utilities.

Args: action: One of "protect_sheet", "unprotect_sheet", "protect_cells", "protect_workbook", "unprotect_workbook". file_path: Workbook path. sheet_name: Sheet name for sheet-scoped operations. password: Optional password string used for protection/unprotection. locked_range: Range to lock for "protect_cells". unlocked_ranges: List of ranges allowed for edits. allow_*: Flags controlling allowed operations on protected sheets.

Returns: str: Result message.

Notes: - Protect/unprotect modify workbook security. Warn users about lost passwords.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
passwordNo
file_pathYes
allow_sortNo
sheet_nameNo
allow_filterNo
lock_windowsNo
locked_rangeNo
lock_structureNo
unlocked_rangesNo
allow_delete_rowsNo
allow_insert_rowsNo
allow_delete_columnsNo
allow_insert_columnsNo
allow_formatting_rowsNo
allow_formatting_cellsNo
allow_formatting_columnsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses that protect/unprotect modify workbook security and warns about lost passwords. However, it omits specific side effects like irreversible lockouts, interaction with other operations, and the fact that protecting cells may require sheet protection. The note is a good start but incomplete.

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?

Structured with Intro, Args, Returns, and Notes. Each sentence adds value with no fluff. Parameters are grouped logically, and the note about password warning is useful. It is a model of concise, well-organized documentation.

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?

With 17 parameters, no annotations, and an output schema, the description provides a return type and basic parameter semantics. It lacks important interaction details, such as how protect_cells relates to sheet protection, the meaning of lock_structure/lock_windows, and the implications of optional passwords. It is sufficient for basic use but not fully comprehensive.

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 0%, so the description must compensate. It does so by listing each parameter in Args with concise semantics: action enum values, file_path purpose, sheet_name scope, password optionality, locked_range/unlocked_ranges, and allow_* as flags. It misses lock_windows and lock_structure, and doesn't detail specific allow_* flags, but overall it adds meaning beyond the schema.

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?

Description clearly identifies the tool as 'Sheet and workbook protection utilities' and lists five specific actions (protect_sheet, unprotect_sheet, protect_cells, protect_workbook, unprotect_workbook). This makes the purpose unambiguous and distinguishes it from sibling tools like worksheet_structure or format_cells.

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 implies usage through its action list and notes, but does not explicitly state when to use this tool versus alternatives. It does provide a clear caution: 'Protect/unprotect modify workbook security. Warn users about lost passwords.' That is useful guidance, though no explicit exclusions or alternative tool references are given.

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/mbeps/excel-mcp'

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