Skip to main content
Glama

precheck_files

Check several files' failure history in one call before modifying them, returning one report block per file so multi-file changes can avoid repeating known mistakes.

Instructions

Check several files' failure history in one call, BEFORE modifying them.

Same report as precheck_file, one block per file. Prefer this when a
change touches more than one file.

Read-only; does not modify memory.

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_paths": "<file_paths>"
    },
    "name": "precheck_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNoWhich project this call is about — a registered id, alias, or absolute path (e.g. 'ossdrop'). Omit it when the server was started for a single repo, or when an active project is set with `pjm project use`. Call list_projects to see the registered names.
file_pathsYesProject-relative or absolute paths of every file you are about to modify (e.g., ['src/auth.py', 'src/db.py']).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.6

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the safety burden and does so: 'Read-only; does not modify memory' declares the side-effect profile, and 'Same report as precheck_file, one block per file' declares the response granularity. It does not cover how nonexistent or unreadable paths are handled, nor any cap on the number of files, which leaves a small behavioral gap.

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?

Three short sentences, front-loaded with the action and the pre-mutation timing, then the sibling comparison, then the read-only assurance. Every sentence carries a distinct decision-relevant fact with no 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?

An output schema exists, so return values need not be described, and the definition covers purpose, routing, and safety. Remaining gaps are minor: nothing on input-size limits or on what 'failure history' blocks contain beyond the sibling equivalence.

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 `project` (registered id/alias/path, with the omit-when-single-repo rule) and `file_paths` are already fully documented. The description adds only the intent framing ('files you are about to modify'), which duplicates the schema rather than extending it; baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Check several files' failure history') plus scope ('in one call'). It explicitly contrasts with the sibling precheck_file ('Same report as precheck_file, one block per file'), so an agent can distinguish the two batch-vs-single tools without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit timing rule ('BEFORE modifying them') and an explicit selection rule against the alternative ('Prefer this when a change touches more than one file'). The inverse condition (single file -> use precheck_file) follows directly from the stated comparison.

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