Skip to main content
Glama

unwatch_directory

Stop watching a specified directory for changes to prevent unnecessary monitoring and keep your codebase index current.

Instructions

Stop watching a directory for changes.

Args:
    directory: Path to the directory to stop watching

Returns:
    Status message

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "directory": "<directory>"
    },
    "name": "unwatch_directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
directoryYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, yet it discloses almost nothing beyond the operation itself: not whether the call is idempotent, whether it errors on an unwatched path, whether it requires permissions, or what 'Status message' contains. The only behavioral hint is that it is a removal-style operation implied by 'Stop'.

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?

The purpose sentence is front-loaded and the Args/Returns block is compact. The 'Returns: Status message' line is slightly redundant given an output schema exists, but it is a single short line and does not bloat the definition.

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

Completeness3/5

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

The tool is simple with one parameter and an output schema, so the description is roughly adequate for selection: purpose and parameter meaning are covered. However, the absence of annotations leaves key behavioral questions (idempotency, error conditions, interaction with watch_directory) unanswered, which a one-sentence addition could have closed.

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 0% for the single required parameter, so the description must compensate, and it does minimally by clarifying that 'directory' is a path to the directory being unwatched. That adds a little meaning (a path, not an ID or name) but no format, formatting, or matching rules (e.g., exact-path vs. prefix matching).

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 states a specific verb and resource ('Stop watching a directory for changes'), which is immediately legible as the inverse of watch_directory and distinct from siblings like list_watched or clear_index. It stops short of naming any sibling explicitly, so sibling differentiation is implied by the name rather than stated.

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?

There is no guidance on when to use this versus list_watched/clear_index, no note that it should follow a watch_directory call, and no statement about what happens if the directory is not currently watched. Usage is only inferable from the 'Stop' wording.

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