Skip to main content
Glama

scan_secrets

Scan a text payload (a prompt, an outbound API body, a file's contents) for secrets and PII BEFORE it leaves for an LLM or external API, and return a redacted copy. Catches the #1 real-world agent incident: secrets/PII leaking into a model's context.

WORKS OFFLINE with no API key — the detection runs in-process (pure regex

  • Luhn check, no network). If a SecretScan backend key IS configured, the scan is routed there instead (which also persists an audit record).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe payload to inspect (prompt, request body, document text).
redactNoIf True (default), each match is replaced with a token like [REDACTED-KEY] / [REDACTED-EMAIL]. If False, only reports.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

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

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral disclosure burden and delivers strongly. It states the detection runs in-process offline with no API key (pure regex + Luhn check, no network), discloses that a configured SecretScan backend reroutes the scan and 'persists an audit record,' and describes the redaction token format. This gives an agent accurate expectations about execution mode, side effects, and network dependency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The bulk of the description is operational and worthwhile, with the core purpose front-loaded in the first sentence. All-caps emphasis like 'WORKS OFFLINE with NO API key' and 'BEFORE' adds assertiveness rather than information, and the sentence 'Catches the #1 real-world agent incident' is context rather than instruction — minor redundancy that keeps it from a perfect score.

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?

An output schema exists, so return values need no explanation, and the description covers the essential operational context: detection approach, execution mode (offline vs backend-routed), backend auditing, and the redact toggle's effect. Minor gaps remain, such as what happens when no secrets are found or how report-only output is structured, but these are partially covered by the output schema and the tool's simple two-parameter surface.

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% — text and redact are already documented in the input schema, including the redaction token examples. The description reinforces that behavior ('return a redacted copy', token names) but adds no new parameter semantics beyond the schema, so the baseline 3 is appropriate.

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 states a specific verb and resource: 'Scan a text payload (a prompt, an outbound API body, a file's contents) for secrets and PII ... and return a redacted copy.' This makes the operation's intent and scope unmistakable. It also positions the tool against its siblings by naming the exact incident class — content leaking to an LLM or external API — which differentiates it from network_scan and scan_skill without opening their schemas.

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?

The description gives a clear, actionable 'when to use': any payload 'before it leaves for an LLM or external API,' framing it as the guardrail for the #1 real-world agent incident. It does not, however, explicitly state when not to use it or name alternative sibling tools, so it stops short of a complete guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.8/5.0
Disambiguation3/5

Most tools target distinct scan types (MCP config, dependencies, skills, network, secrets), but full_stack_audit deliberately overlaps with five of them, creating ambiguity about whether to call the umbrella tool or a focused scanner. The descriptions mitigate this by clarifying scope, but the redundant surface makes selection less crisp.

Naming Consistency3/5

Names are mostly descriptive and action-oriented, but they mix conventions: scan_secrets and scan_skill use a verb_noun pattern, audit_mcp_server_config and check_dependencies use different verbs, network_scan and full_stack_audit are non-verb phrases, and securityscan_checkout/securityscan_pricing use a brand prefix. This is readable but not a consistent, predictable pattern.

Tool Count5/5

With 8 tools, the server is well-scoped for its security-scanning purpose. Each focused tool covers a meaningful threat surface, and full_stack_audit adds value as a correlation layer rather than pure bloat.

Completeness4/5

The toolset covers the core security lifecycle for an agent environment: configuration auditing, dependency health, skill vetting, network scanning, and secret/PII redaction, plus a full-stack correlation option. Minor gaps exist around remediation actions and persistent scan history, but these are not clearly required by the server's stated purpose.

Resources