Skip to main content
Glama

precheck_file

Check a file before editing to surface citing rules/constraints, failed attempts, approved decisions that rely on it, pending proposals and handoffs, session mentions, and whether it changed since.

Instructions

Call before you edit a file. Shows the project rules and constraints that cite it, earlier attempts on it that failed, approved decisions that rely on it (your edit will mark them for re-checking), pending proposals and handoffs built on it, and captured sessions that mentioned it by name, with whether the file changed since.

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": {
      "file_id": "<file_id>"
    },
    "name": "precheck_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYesFile ID from list_files.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1-alpha.2

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does valuable disclosure work — listing the categories of data returned and the downstream effect that dependent decisions get marked for re-checking — but never states that the tool is read-only, whether the call is cheap, or how large the response can get for a heavily referenced file.

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?

Front-loaded with the imperative call condition, then a dense enumeration with no filler. The single long sentence is heavier than it needs to be; a short bulleted listing would scan faster without losing content.

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, no-output-schema tool, the description effectively substitutes for the missing output schema by enumerating the five result categories, including temporal context ('whether the file changed since'). The remaining gap is behavioral: no statement of read-only safety or response size/truncation for heavily cited files.

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?

Only one parameter, and the schema already documents it fully ('File ID from list_files'), which sets a baseline of 4. The description adds no extra semantics about the ID (e.g. what happens on an unknown or unregistered file), but little is needed at this coverage.

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 and resource ('Call before you edit a file. Shows the project rules and constraints that cite it...') and enumerates its five output categories, which implicitly separates it from read-only siblings like file_history or read_file. It stops short of explicitly contrasting itself with those siblings, so recognition depends on the enumeration rather than a stated distinction.

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

Usage Guidelines4/5

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

Opens with an explicit trigger ('Call before you edit a file'), which is a clear when-to-use instruction, and adds a consequence that motivates the call ('your edit will mark them for re-checking'). It names no alternative or when-not condition, so an agent must infer what to call instead when it only needs file contents.

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