Skip to main content
Glama

pandaone_lock

Idempotent

Lock all files with protected extensions by applying read-only attributes (attrib +r or chmod -w) to prevent unwanted modifications.

Instructions

锁定所有受保护扩展名的文件(attrib +r / chmod -w)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootYes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.14

TDQS

B3/5.0
Behavior3/5

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

Annotations already indicate this is a non-read-only, idempotent, non-destructive operation. The description adds the concrete behavior of setting files read-only via attrib +r or chmod -w. However, it does not disclose whether the operation recurses, which extensions are considered protected, or what happens to already-locked files, so the transparency is only partial.

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 a single dense sentence with the operation stated first and the technical mechanism in parentheses. There is no filler, no repetition of the schema, and the format is appropriately sized for a tool of this complexity.

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?

The tool is simple, but the context remains incomplete: 'protected extensions' is never defined, root semantics are absent, and there is no output schema. The agent would need external knowledge to know exactly which files are affected and what the operation returns or reports.

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

Parameters2/5

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

The only parameter, root, has 0% schema description coverage and is not explained in the description. The phrase 'all files' implies a scope, but the description never connects it to root or clarifies whether root is a directory, a search root, or a direct file target. The description fails to compensate for the schema gap.

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 a clear target, '所有受保护扩展名的文件', and even gives the mechanism ('attrib +r / chmod -w'). This makes the core purpose clear and distinct from the obvious inverse sibling pandaone_unlock, though it does not explicitly name or differentiate from other siblings.

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?

The description gives no guidance about when to use this tool instead of pandaone_unlock or pandaone_write. It does not state preconditions, exclusions, or contexts where the tool should be avoided. The agent must infer usage purely from the name and the bare operation.

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