Skip to main content
Glama

Secrets Scanner

detect-secrets-scanner
Read-onlyIdempotent

Scan text (config, code, env files) for leaked API keys, tokens, passwords, and private keys, plus static code-risk findings such as dynamic code execution, wildcard CORS, unsafe HTML sinks, process spawning and removed security guards. Returns findings with redacted matches and severity classification.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesConfig, code, or env file content to scan. Do not submit live production secrets; rotate any real credential that appears here.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
findingsYes
severityYes
next_stepYes
types_foundYes
finding_countYes
next_step_urlYes
why_follow_upYes
interpretationYes
code_risk_countYes
affiliate_contextNo
computation_basisYes
code_risk_findingsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / text / maxLength
      Previous value: -200000New value: +8192
  2. Changed2 schema fields changed
    • changedInput schema / properties / text / description
      Previous value: -"Config, code, or env file content to scan for secrets"New value: +"Config, code, or env file content to scan. Do not submit live production secrets; rotate any real credential that appears here."
    • addedInput schema / properties / text / maxLength
      Added value: +200000
  3. Changed4 schema fields changed
    • addedInput schema / properties / text / examples
      Added value: +[
      +  "example"
      +]
    • addedOutput schema / properties / code_risk_count
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / code_risk_findings
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "code": {
      +        "type": "string"
      +      },
      +      "evidence_excerpt": {
      +        "type": "string"
      +      },
      +      "severity": {
      +        "enum": [
      +          "HIGH",
      +          "MEDIUM",
      +          "LOW"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "evidence_excerpt",
      +      "severity"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "computation_basis",
      -  "finding_count",
      -  "findings",
      -  "interpretation",
      -  "next_step",
      -  "next_step_url",
      -  "severity",
      -  "types_found",
      -  "why_follow_up"
      -]New value: +[
      +  "code_risk_count",
      +  "code_risk_findings",
      +  "computation_basis",
      +  "finding_count",
      +  "findings",
      +  "interpretation",
      +  "next_step",
      +  "next_step_url",
      +  "severity",
      +  "types_found",
      +  "why_follow_up"
      +]
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "affiliate_context": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "affiliate": {
      +          "type": "string"
      +        },
      +        "cta_label": {
      +          "type": "string"
      +        },
      +        "disclosure": {
      +          "type": "string"
      +        },
      +        "framing": {
      +          "type": "string"
      +        },
      +        "posture": {
      +          "enum": [
      +            "secondary"
      +          ],
      +          "type": "string"
      +        },
      +        "slot_id": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "type": "string"
      +        },
      +        "variant": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "affiliate",
      +        "cta_label",
      +        "disclosure",
      +        "framing",
      +        "posture",
      +        "slot_id",
      +        "url",
      +        "variant"
      +      ],
      +      "type": "object"
      +    },
      +    "computation_basis": {
      +      "type": "string"
      +    },
      +    "finding_count": {
      +      "type": "number"
      +    },
      +    "findings": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "line": {
      +            "type": "number"
      +          },
      +          "redacted": {
      +            "type": "string"
      +          },
      +          "type": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "line",
      +          "redacted",
      +          "type"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "interpretation": {
      +      "type": "string"
      +    },
      +    "next_step": {
      +      "type": "string"
      +    },
      +    "next_step_url": {
      +      "type": "string"
      +    },
      +    "severity": {
      +      "type": "string"
      +    },
      +    "types_found": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "why_follow_up": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "computation_basis",
      +    "finding_count",
      +    "findings",
      +    "interpretation",
      +    "next_step",
      +    "next_step_url",
      +    "severity",
      +    "types_found",
      +    "why_follow_up"
      +  ],
      +  "type": "object"
      +}
  5. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  6. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources