Skip to main content
Glama

stop_file_watching

Stops monitoring file changes for a specified directory, or halts all file watching when no path is provided.

Instructions

停止文件监控(指定 path 则只停该目录,不指定则停止全部)

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": "stop_file_watching"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo要停止监控的目录路径(可选,不传则停止全部)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral burden. It does disclose the key operational trait that omitting path stops ALL watching — a broad, effectively destructive action — which is genuinely valuable. It does not cover permissions, whether pending events are discarded, or what is returned.

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

Conciseness5/5

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

A single parenthetical sentence that front-loads the action and immediately qualifies scope. No redundant wording or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter, non-annotated stop operation with no output schema, this covers what an agent needs to call it correctly, including the important default-to-all behavior. Only side effects on buffered events or the return value are unaddressed.

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?

Schema coverage is 100%, so baseline would be 3, but the description goes slightly beyond the schema by framing the parameter as a scope selector (target one directory vs. all). The schema already states the same optional/'stop all' semantics, so the added value is modest.

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?

States a specific verb+resource ('停止文件监控' = stop file watching) and describes the scoping behavior with and without a path. An agent can distinguish it from start_file_watching by the verb alone, though the description never names that sibling or any other alternative.

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

Usage Guidelines3/5

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

Usage is implied by the verb and the path/no-path condition, which tells the agent how to choose between stopping one directory and stopping everything. There is no explicit statement of when-not to use it or which sibling to prefer, so guidance remains inferential.

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