Skip to main content
Glama

find_safe_files

Identify files safe to modify by ranking those with few or no dependents, helping you avoid breaking other parts of the codebase.

Instructions

Returns a ranked list of files that are safe to modify — files with few or no dependents that will not break other parts of the codebase.

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

Input Schema

NameRequiredDescriptionDefault
categoryNoFilter by file category (e.g., "component", "page", "utility").
root_pathNoRoot directory. Defaults to cwd.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the underlying heuristic (few or no dependents, non-breaking) which tells the agent this is an advisory/read-style query. It does not state the ranking criterion explicitly, whether results are truncated, or how 'dependents' are computed, which matters for trusting the output.

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 key noun phrase first, followed by an em-dash gloss that genuinely earns its place by defining 'safe.' No filler or redundancy.

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 two-optional-parameter, no-output-schema, unannotated tool, the description covers purpose and the safety heuristic but leaves the return contract thin: 'ranked' is not explained, and there is no hint about result volume or whether the agent should verify candidates afterward with check_impact.

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% and both parameters (category, root_path) are documented in the schema, so the baseline is 3. The description adds no extra meaning about the accepted category vocabulary or how root_path interacts with the ranking, so it does not exceed the baseline.

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 uses a specific verb and resource ('returns a ranked list of files') and immediately defines the qualifier 'safe' as 'files with few or no dependents that will not break other parts of the codebase.' That is a clear, self-contained purpose. It does not name or distinguish itself from the closely related sibling check_impact, so it stops 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 implied by the concept: this is the tool you reach for when picking candidate files to edit. However, there is no explicit statement of when to use it versus check_impact (which presumably evaluates dependents of a known file) or explain_file, and no prerequisites or exclusions are given.

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