Skip to main content
Glama

clear_workdir

Clears all files from the workspace to reset storage for new arXiv paper downloads or processing. Use with caution because this action permanently removes existing files.

Instructions

清空工作区所有文件(危险操作)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "clear_workdir"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden; it does explicitly flag the operation as destructive ('危险操作'), which is the single most important disclosure. However, it says nothing about irreversibility, whether files can be recovered, whether the tool prompts for confirmation, or whether a specific permission/scope is required — all material for a wipe operation.

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?

A single short phrase with the destructive warning front-loaded alongside the action, so there is no wasted wording. It is arguably under-specified rather than verbose, which is a completeness issue rather than a structural one.

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?

For an irreversible, workspace-wide destructive operation with no annotations and no output schema, the description is thin: it does not state whether the deletion is permanent, what the agent should do beforehand, or what a successful result looks like. An agent knows what it does and that it is dangerous, but not enough to invoke it safely.

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 tool takes zero parameters, so there is no parameter semantics to explain and the baseline of 4 applies. The description correctly conveys that the action is unscoped (all files), which is the only 'parameter-like' fact an agent needs.

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 pairs a specific verb ('清空' / empty) with a specific resource ('工作区所有文件' / all workspace files) and states the scope is everything, not a filtered subset. It is unambiguous, though it never contrasts itself with any sibling tool (none of the listed siblings operate on the workspace, so the ambiguity is low).

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?

It gives no when-to-use or when-not-to-use guidance, no preconditions (e.g., confirm intent with the user first), and no mention of alternatives for removing individual files. The only usage signal is the parenthetical '危险操作', which implies caution but does not instruct.

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