Skip to main content
Glama

start_file_watching

Starts monitoring one or more directories for file changes, optionally scoped to a project, so Hindsight can record updates and preserve context across AI coding sessions.

Instructions

开始监控指定目录的文件变化(可同时监控多个目录)

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": {
      "path": "<path>"
    },
    "name": "start_file_watching"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes要监控的目录路径
projectNo项目名称(可选)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden but discloses little. It does not say whether the watcher persists after the call, whether calling it twice on the same path errors, how events are surfaced, or how the watcher is terminated — all critical for a stateful, side-effecting 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 compact sentence with the action front-loaded and no filler. It is efficient, though its terseness contributes to the transparency gaps noted elsewhere.

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 a stateful monitoring tool with no annotations and no output schema, the description leaves out lifecycle, termination, error behavior, and event retrieval. An agent could invoke it but could not predict or manage its effects.

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%, so both parameters are documented in the schema itself. The description adds only a marginal clarification that multiple directories can be watched, without explaining how project relates to path or what happens if path is invalid. Baseline 3 applies.

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+resource: starting monitoring of file changes in a specified directory. It is clearly distinguishable from siblings like get_file_events or stop_file_watching, though it does not name them explicitly.

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 when-to-use guidance, no preconditions (directory must exist, permission requirements), and no reference to the complementary stop_file_watching or get_file_events tools. The parenthetical about monitoring multiple directories is a capability note, not usage guidance.

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