Skip to main content
Glama

Scan staged changes

scan_staged
Read-onlyIdempotent

Scans only staged Git changes for hardcoded secrets before commit and returns redacted findings without exposing matched secret values.

Instructions

Scan only the changes currently staged in a git repository (what git commit would record). Use before committing.

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

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path to the git repository.
max_findingsNoMaximum findings to return (the total count is always reported).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds genuinely new behavioral context by stating that only the index (staged) content is inspected rather than the working tree — a distinction annotations cannot convey. It does not say what happens when nothing is staged, which is the main 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?

Two short sentences with zero filler; the scoping constraint is front-loaded and the timing advice follows immediately. Every clause earns its place.

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, annotation-covered scan tool with no output schema, the description supplies purpose, scope, and timing — enough to call it correctly. Only edge-case behavior (empty index, error conditions) is left unstated, which is minor.

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 `path` and `max_findings` (including the note that total count is always reported) are fully documented in the schema. The description adds no parameter-level meaning beyond that, which is the baseline 3 case.

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?

Names a specific verb and resource — scan of changes currently staged in a git repo — and the parenthetical 'what `git commit` would record' pins the scope precisely. The exclusive word 'only' implicitly separates it from scan_repo/scan_path, though no sibling is named explicitly.

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?

'Use before committing' gives a clear triggering context, and the staged-only scoping implies that whole-repo or path scanning belongs to the sibling tools. It stops short of an explicit when-not statement, but the usage window is unambiguous.

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

Deploy Server

Other Tools