Skip to main content
Glama
This server has been deprecated

Rebranded to ComposeLint AI. Repository has been moved to TechsOneAi/ComposeLintAI.

reject_all_files

Destructive

Reverts all pending file changes in the current journal session by restoring each modified file from its byte-level backup, completely discarding recent edits.

Instructions

Destructive: Reverts ALL pending changes using byte-level backup (.bridge.bak).

What it does: Rolls back byte-for-byte all files modified in the current journal session.
When to use: To completely discard all recent changes and return every file to its exact prior state.
When NOT to use: Use reject_file_changes for a single file. Use reject_all_files_force if some rollbacks may fail.
Side effects: Destructive rollback. Overwrites all modified files with their .bridge.bak backups and clears journal.
Parameters: None.
Returns:
  JSON string with list of reverted files and status.

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description goes further: it discloses the .bridge.bak byte-level backup mechanism, states that modified files are overwritten and the journal is cleared, and warns that rollbacks may fail (pointing to the force variant). That is material behavioral context beyond what the annotations carry.

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 destructive warning and organized into labeled sections (What it does, When to use, When NOT, Side effects, Returns), which makes scanning fast. Minor redundancy: the Returns section restates what an output schema already covers, and 'Parameters: None.' is padding, but neither obscures the essentials.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter destructive rollback, the description covers purpose, exclusions, side effects, backup mechanism, journal clearing, and the failure caveat. Nothing an agent needs in order to decide whether to call this or its siblings is missing.

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?

The tool takes zero parameters, so there is nothing to disambiguate and the schema is trivially complete; the description's 'Parameters: None.' is consistent with that. No extra meaning is needed or possible here, capping the realistic value at the baseline.

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?

Names a specific verb and scope: rolls back byte-for-byte all files modified in the current journal session. Together with the name and the explicit 'Destructive:' lead-in, an agent can distinguish this bulk rollback from single-file or force variants without reading any 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 explicit when-to-use ('completely discard all recent changes') and when-not-to-use with named alternatives: reject_file_changes for a single file and reject_all_files_force when rollbacks may fail. Both exclusions and the sibling routing are spelled out rather than implied.

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