Skip to main content
Glama

scan_for_secrets

Scan a repository to detect hardcoded secrets, high-entropy tokens, and potential credential leaks before they become a security risk.

Instructions

Search the repository for hardcoded secrets, high-entropy tokens and other potential credential leaks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoRepository or directory to scan..
max_file_size_mbNoSkip files larger than this (default 5 MB).

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior1/5

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

There are no annotations or descriptions of behavior beyond the simple verb 'search.' It does not disclose side effects, return format, limitations (e.g., false positives, scanning methods), or any performance implications. The description is minimal and lacks transparency about what the tool actually does after the search.

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?

The description is a single, concise sentence with no filler or redundancy. It efficiently conveys the tool's purpose without unnecessary detail, making it easy to parse and understand.

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

Completeness2/5

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

The description omits any mention of the output or results. Since there is no output schema, the agent has no idea what will be returned (e.g., a list of findings, a summary, error messages). It also doesn't specify any preconditions or edge cases, leaving the tool's overall behavior incomplete from an agent's perspective.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Both parameters are fully described in the schema. 'path' is explained as 'Repository or directory to scan' and 'max_file_size_mb' as 'Skip files larger than this (default 5 MB).' These descriptions provide clear meaning and default values, giving complete semantic coverage.

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 clearly states the action (search) and the specific resource (repository) as well as the specific goal (finding hardcoded secrets, high-entropy tokens, credential leaks). It distinguishes itself from sibling tools (audit_dependencies, check_licenses, find_dead_code) by focusing on secret scanning.

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

Usage Guidelines2/5

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

The description does not explicitly state when to use this tool versus alternatives. While the purpose is clear, there is no guidance on contextual triggers, such as 'use this when you need to check for exposed credentials' or when not to use it. The distinction from siblings is implicit but not spelled out.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/prem-the-dev/repo-guardian'

If you have feedback or need assistance with the MCP directory API, please join our Discord server