Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

find_secrets

Read-onlyIdempotent

Detect potential hardcoded secrets such as passwords, API keys, tokens, and credentials in a codebase, with optional directory and file-pattern filters.

Instructions

Find potential hardcoded secrets: passwords, API keys, tokens, credentials.

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_secrets"
  }
}

Input Schema

NameRequiredDescriptionDefault
directoryNoSubdirectory to search
file_globNoFilter by file pattern

Output Schema

NameRequiredDescriptionDefault
checkYes
totalYes
matchesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.5

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=false, so the safety profile is covered. The single word 'potential' is the only behavioral addition, hinting that matches are heuristic and may include false positives — useful, but no mention of scan scope, exclusions, or result volume.

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?

One sentence, front-loaded with the verb and the detection targets, with zero filler. Nothing could be removed without losing information.

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?

The tool is simple, annotations cover safety, and an output schema covers return values, so the terse description is close to sufficient. What is missing is the default scope when 'directory' is omitted and whether the scan is regex/heuristic based, both of which affect correct invocation.

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% for both parameters ('Subdirectory to search', 'Filter by file pattern'), so the baseline is 3. The description adds no meaning beyond the schema — it does not say, for example, that omitting 'directory' scans the entire project root, which is a meaningful invocation detail.

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?

A specific verb ('Find') plus a clearly bounded resource ('hardcoded secrets'), with the target categories enumerated (passwords, API keys, tokens, credentials). That enumeration separates it from the other find_* scanners such as find_todos or find_debug_logs without needing an explicit sibling callout, though no sibling is actually named.

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 states only what is detected; it gives no when-to-use context, no when-not-to-use, and no alternatives. The agent must infer from the tool name alone that this is a security-review scan rather than, say, a dependency vulnerability scan (dep_vuln_scan) or log scan (find_debug_logs).

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