check_file
Verify if a specified file exists on a 1Panel server before performing operations, preventing errors from missing files.
Instructions
Check if file exists
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Verify if a specified file exists on a 1Panel server before performing operations, preventing errors from missing files.
Check if file exists
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Changes observed during successful MCP inspections.
v1.0.0Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full disclosure burden, yet it says nothing about error behavior (throws vs. returns false for a missing file), permission requirements, or whether the path is relative to some root. The only implicit signal is that this is a non-destructive read.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single short sentence with no filler, and the purpose is front-loaded. It is concise; the weakness is under-specification rather than verbosity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema, the description should say what 'check' returns (a boolean, or an error on absence), and it does not. For a one-parameter existence probe this leaves a real ambiguity an agent must resolve by trial.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% and the description does not mention the single 'path' parameter at all, leaving its format, base directory, and validation rules undocumented. The only clue is the self-explanatory parameter name.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
It gives a specific verb (check) plus a resource (file) and the exact predicate being tested (existence), so an agent knows precisely what the tool does. It does not, however, distinguish itself from siblings like get_file_size or list_files, which could also informally answer an existence question.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no statement of when to use this rather than get_file_size, list_files, or get_file_content, and no preconditions or exclusions are given. The agent must infer usage entirely.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.