Skip to main content
Glama

excel_protect_worksheet

Protect an Excel worksheet by applying a password and controlling whether locked or unlocked cells can be selected. Use it to restrict edits and selection in a specified workbook sheet.

Instructions

Protect worksheet

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

Input Schema

NameRequiredDescriptionDefault
filenameYesWorkbook name
passwordNoPassword
worksheetYesWorksheet name
allowSelectLockedCellsNoAllow select locked
allowSelectUnlockedCellsNoAllow select unlocked

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and supplies essentially none. It does not state whether this mutates an open workbook, whether an existing protection is overwritten, whether the password is required or optional, whether the operation is reversible, or what happens on failure.

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 two-word fragment is technically concise but is under-specified rather than efficient. It is front-loaded with a verb and resource but contains no sentence that conveys actionable information.

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

Completeness2/5

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

This is a five-parameter mutation tool with a password field, no annotations, and no output schema, so the description should explain protection behavior and password semantics. With only "Protect worksheet," it is not complete enough for an agent to call it confidently in edge cases.

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 the five parameters (filename, worksheet, password, allowSelectLockedCells, allowSelectUnlockedCells) are already documented in the schema. The description adds no extra meaning about parameter interactions, such as whether the allow-select flags are ignored when a password is omitted, so the baseline of 3 applies.

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?

"Protect worksheet" restates the tool name and nothing more. It does not distinguish this from sibling tools like excel_protect_cells, excel_protect_workbook, or excel_unprotect_worksheet, so an agent cannot tell which protection scope applies without opening the schema.

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 mention of prerequisites (e.g. an open workbook or an existing password), and no routing to alternatives such as excel_unprotect_worksheet or excel_protect_cells. 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