Skip to main content
Glama

suggest_remediation

Read-onlyIdempotent

Scans a project and its Git history for exposed secrets, then returns an ordered remediation checklist: rotate credentials, check for misuse, purge from the working tree, rewrite history, and prevent recurrence.

Instructions

Scan a project (working tree and git history, if it is a repository) and return an ORDERED remediation checklist: rotate first, look for misuse, remove from the tree, optionally rewrite history, prevent recurrence. History rewriting is given as git filter-repo and BFG command text for you to run; this server never executes them and never prints the secret values they need (you fill in a replacements file yourself).

Args: path: project directory. max_commits: history depth to scan if the directory is a git repository.

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": {
      "path": "<path>"
    },
    "name": "suggest_remediation"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
max_commitsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, and the description is consistent with them. It adds real behavioral context beyond the annotations: this server never executes the git filter-repo/BFG commands it emits and never prints the secret values those commands need, so the agent must supply a replacements file. It does not discuss runtime cost of scanning deep history, which is the remaining 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?

Front-loaded with the purpose and the ordered checklist, then the non-execution caveat, then a compact Args block. Every sentence carries information an agent needs; nothing is padding.

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 two-parameter read-only scanner with an output schema, the description covers purpose, the ordering of results, the caller's follow-up responsibility, and both parameters. The only thin spot is guidance on when to choose this over the narrower scan tools.

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?

Schema description coverage is 0%, so the description must carry the params, and it does: path is the project directory and max_commits is history depth scanned only if the directory is a git repository. That conditional applicability is meaning the schema's title/default do not convey; it could still say what happens when path is not a repo or when max_commits is omitted.

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?

The description states a specific verb and resource (scan a project's working tree and git history) plus a distinctive output (an ORDERED remediation checklist with named steps). It also clarifies scope that separates it from tree-only or history-only scanners: it covers both, then ranks remediation actions.

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 scope statement and by the note that history rewriting is returned as command text for the caller to run. However, there is no explicit 'use this instead of scan_tree/scan_history when...' routing, nor any stated prerequisite (e.g., run only after findings are confirmed).

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