Skip to main content
Glama

wps_wpp_open

Open a local or cloud-synced presentation file in WPS. Ensure the file is not already open and is in an accessible directory to prevent blocking or permission errors.

Instructions

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

Input Schema

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

TDQS

A4.6/5.0
Behavior5/5

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

No annotations are provided, so the description carries full burden. It fully discloses critical behavioral traits: the blocking native dialog if the file is already open, the inability of the object model to intercept it, the sandbox restrictions on allowed paths, and the explicit error throwing for unauthorized paths. This is highly transparent.

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 long but every sentence adds critical information. The key purpose is front-loaded, followed by warnings and sandbox limitations. A minor improvement could be splitting into two paragraphs for readability, but overall it is well-structured and informative.

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 1 simple parameter and no output schema. The description covers all behavioral aspects: opening behavior, blocking scenarios, sandbox constraints, and error handling. Given the complexity of the WPS environment, the description is complete and leaves no obvious gaps for the agent.

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% (only one parameter 'path' with description '文件绝对路径'). The description does not add further detail about the path parameter beyond what the schema already provides, but since schema coverage is high, baseline 3 is appropriate.

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 '打开本地或云同步的演示文稿' which is a specific verb ('打开' = open) and resource ('演示文稿' = presentation). It clearly distinguishes itself from sibling tools like wps_wpp_close or wps_wpp_get_presentation_info by stating directly what it does.

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 explicitly warns against using this tool when the file is already open in WPS, describing the blocking dialog issue. It also provides guidance on sandbox restrictions, advising to use files under ~/Downloads or pre-open with shell if a path fails. This is comprehensive when-to-use and when-not-to-use guidance.

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