Skip to main content
Glama

secret_scan

Scan a site you own for hardcoded secrets in public pages, inline scripts, and hosted script files; reports file, pattern type, and masked value without exposing full secrets.

Instructions

Scan a site you own for hardcoded secrets in its public code: the page, its inline scripts, and its own script files. Reports the file, the pattern type, and a masked value. Full secret values are never returned. Read only.

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": {
      "target": "<target>"
    },
    "name": "secret_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYesFull URL of the site or host to check, for example https://example.com. Only check systems you own or are authorized to test.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does real work: it declares the tool read only and states that full secret values are never returned, only masked ones. That output-safety disclosure is exactly the kind of behavior an agent cannot get from structured fields here; missing only operational details such as scan limits, rate, or auth requirements.

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?

Three tight sentences: scope first, then what gets reported, then the safety constraint. No filler, and the most decision-relevant information (ownership, read-only, masked output) is front-loaded or immediately adjacent.

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 one-parameter, read-only scanner, the definition covers scope, return shape (file, pattern type, masked value), and the safety profile, so no output schema is needed. A brief note on boundaries versus the sibling check tools is the only real gap.

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 coverage is 100% and the sole parameter already documents that a full URL/host is expected along with the ownership caveat. The description adds no syntax, format, or validation detail beyond what the schema states, so it sits at the baseline for a fully documented single parameter.

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?

The description gives a specific verb and resource ("Scan a site ... for hardcoded secrets in its public code") and narrows the surface to the page, inline scripts, and its own script files, which separates it from broader exposure checks. It never names a sibling tool or explicitly contrasts itself with the closest-looking neighbors (token_config_check, sourcemap_check), so an agent must infer the boundary.

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 "a site you own" and reinforced by the schema's authorization note, so the ownership precondition is clear. However there is no explicit when-to-use guidance, no statement of when another check tool would be a better fit, and no exclusion of cases like third-party or externally hosted scripts.

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