Skip to main content
Glama

get_file_events

Retrieve recent file change events—created, modified, or deleted—with offset pagination to track project file activity across sessions.

Instructions

获取最近的文件变更事件(创建/修改/删除),支持 offset 分页

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

Input Schema

NameRequiredDescriptionDefault
limitNo返回条数(默认 100)
offsetNo分页偏移量(默认 0)
projectNo项目名称(可选)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full disclosure burden, and it does add genuine behavior: which event types exist and that results are paginated by offset. It omits ordering (newest-first?), the meaning of 'recent' (time window or count), and whether events are only recorded while file watching is active, so a meaningful gap remains.

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 front-loaded sentence with the resource and event types first and pagination last; no filler, redundancy, or hedging. It is arguably too terse for the tool's opacity, but that is a completeness issue rather than a structure one.

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?

For a three-optional-parameter read tool with no annotations and no output schema, the description covers purpose and pagination but leaves the return shape (what fields an event carries), the recency semantics, and any dependency on an active watcher unexplained. Adequate to attempt a call, but not enough to predict what comes back.

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 limit, offset and project are already documented in the schema. The description only restates the offset pagination mechanism without adding format, defaults, or interaction rules, so the baseline of 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 names a clear verb and resource (get recent file change events) and enumerates the event kinds returned (create/modify/delete), which lets an agent grasp the payload shape. It does not distinguish itself from the file-watching siblings (start/stop_file_watching) or state whether watching must be active first, which is why it falls short of a 5.

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 only implied: the tool retrieves recent change events, so an agent can infer 'use when you want to know what changed recently.' There is no explicit when/when-not, no mention of how it relates to start_file_watching/stop_file_watching, and no statement of a prerequisite such as watchers needing to be running.

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