Skip to main content
Glama

lock_status

Check if a .docx file is locked by Word or LibreOffice and verify sync stability to avoid editing conflicts or incomplete writes.

Instructions

Report Word/LibreOffice owner-file presence and sync-quiesce state.

Data only — never refuses. Owner-file detection recognizes Word's "~$" owner file (matched by shared filename suffix, not by constructing one exact expected name — see _word_owner_file_matches's docstring) and LibreOffice's ".~lock.#". Sync-quiesce takes two (size, mtime_ns) samples ~1.5s apart and also checks for ".tmp"/".~*" siblings in the same directory (OneDrive/iCloud staging artifacts); "sync_quiesced" is false if either signal suggests the file is still being written.

Returns path, owner_file ({present, path, format, owner_name}), sync_quiesced, sync_detail ({sample_1, sample_2, interval_seconds, tmp_siblings}).

Errors: INVALID_INPUT - path does not exist or is outside the allowed roots

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations provided, the description carries full responsibility. It explicitly states 'Data only — never refuses,' discloses the detection algorithms (owner-file patterns, two-sample timing, tmp-sibling checks), and even references an internal docstring. It also lists the exact error condition (INVALID_INPUT). This is extremely transparent about behavior beyond the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is thorough but somewhat long and dense, including implementation details like reference to an internal docstring and naming sample intervals. It front-loads the purpose and then dives into specifics. While every sentence provides value, the length might exceed what is immediately necessary for an agent to decide to call the tool. A more compact version could retain the key facts.

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?

The tool has an output schema (indicated by context), yet the description still enumerates the returned fields and their structure. It also explains behavior, timing, error cases, and the distinction between owner-file detection and sync-quiesce. For a tool of this complexity (multi-part return, nuanced detection), the description covers all necessary invocation context.

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?

There is only one parameter, 'path,' with no schema documentation (0% coverage). The description doesn't explicitly define 'path' but the context (checking a file) makes its meaning clear. The error condition 'path does not exist or is outside the allowed roots' adds semantic boundaries. While it doesn't explicitly say 'path is the file to check,' the surrounding text implies that strongly enough.

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 opens with a specific verb and resource: 'Report Word/LibreOffice owner-file presence and sync-quiesce state.' It clearly distinguishes the tool from the sibling 'export_pdf' by naming the exact monitoring function. The scope (owner files, sync quiescence) is unambiguous.

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 for checking file-writing stability ('sync_quiesced' state) and notes 'Data only — never refuses,' indicating a read-only check. It does not explicitly state when to use this versus export_pdf, but the sibling's purpose is obviously different. The phrase 'Data only' hints that it is safe to call without side effects, which is useful context.

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