Skip to main content
Glama

wps_word_open

Opens a local or cloud-synced WPS Word document from a given file path. Validates access permissions and throws a clear error if the file is outside authorized directories or already open in WPS.

Instructions

打开本地或云同步的 WPS 文字文档。注意:若该文件已在 WPS 中打开(同名同路径),WPS 会弹出应用级原生提示框阻塞整个进程(跨文字/表格/演示所有宿主的命令都会卡住直到用户手动点掉),对象模型层无法拦截或感知。调用前建议先用 wps_status 或已知上下文确认目标文件未处于打开状态。另外 WPS 是沙盒应用,只被系统授权访问 ~/Downloads、曾用 Finder/shell "open" 命令打开过的文件、或已保存过的路径;打开未授权路径会被内核拦截,本工具已做校验会明确抛错(不会假成功),遇到此错误请改用 ~/Downloads 下的文件,或先用 shell "open" 命令打开一次目标文件再重试。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes文件绝对路径
Install Server

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It excels by detailing a critical behavioral trait: that opening an already-open file causes a native modal that blocks all WPS commands until dismissed, which no annotation could capture. It also transparently explains sandbox restrictions and the error handling (explicit error, not silent failure), providing comprehensive non-obvious behavior.

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

Conciseness4/5

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

The description is moderately concise (about 3 sentences in Chinese) and front-loads the core purpose. It earns its sentences: each adds distinct value (purpose, blocking warning, sandbox workaround). It could be marginally tighter by combining the sandbox and workaround into one sentence, but the current structure is well-organized and readable for its length.

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 simple tool (1 required param, no output schema, no enums, no nested objects), the description covers all necessary context: the action, critical caveats (blocking dialog, sandbox restrictions), and alternative paths to unblock users. For a file-opening tool, it is remarkably complete in warning about environmental constraints that could cause failures, leaving no obvious gaps for an agent to make incorrect assumptions.

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?

The input schema has 100% coverage with one parameter 'path' described as '文件绝对路径' (absolute file path). The description adds value beyond the schema by explaining the sandbox restrictions that affect which paths are usable, giving crucial context for the parameter's semantics that the schema alone cannot provide. While the parameter is straightforward, the description's path-related usage guidance elevates the score above baseline 3.

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 clearly uses the verb '打开' (open) and specifies the resource as '本地或云同步的 WPS 文字文档' (local or cloud-synced WPS Word documents). It distinguishes itself from siblings like wps_word_new, wps_word_save, and other tools by focusing exclusively on the open action for WPS Word files.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool and critical prerequisites: it warns against opening a file already open in WPS due to a blocking native dialog, advises pre-checking with wps_status or known context, and explains the sandbox access restrictions with actionable workarounds (use files under ~/Downloads or pre-open via shell/finder). This gives clear when-to-use and when-not-to-use instructions.

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

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/Antares422/draftly-wps'

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