Skip to main content
Glama

Scan a text snippet

scan_text
Read-onlyIdempotent

Scans text snippets, configs, or diffs for hardcoded secrets and returns redacted findings so you can check content before writing or sharing it.

Instructions

Scan a string (e.g. a snippet, config or diff you are about to write or share) for secrets.

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": {
      "text": "<text>"
    },
    "name": "scan_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text to scan.
max_findingsNoMaximum findings to return (the total count is always reported).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is fully covered. The description adds the pre-write/pre-share intent, which is genuinely useful context, but says nothing about what findings look like or how the scan behaves on large inputs — though the max_findings schema field partly covers volume behavior.

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?

A single sentence with the resource and the scan target front-loaded, and the parenthetical examples earning their place by narrowing what kind of string to pass. Nothing is redundant with the name or title.

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 two-parameter, read-only, closed-world tool with full schema coverage and rich annotations, the definition covers purpose and trigger adequately. The only gap is that no output shape is hinted at, which matters slightly since there is no output schema, but an agent can still call it correctly.

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%, so both `text` and `max_findings` (including the note that total count is always reported) are already documented in the schema. The description adds no parameter-level meaning beyond that, which is the expected baseline when the schema does the work.

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?

States a specific verb and resource: scan a string for secrets. The parenthetical examples (snippet, config, diff) make the input type concrete and contrast implicitly with the file-oriented siblings scan_path, scan_repo and scan_staged, though no sibling is named explicitly.

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?

The phrase "you are about to write or share" gives a clear situational trigger for using this tool rather than not scanning at all. However, it never states when to prefer scan_path or scan_staged over scanning an in-memory string, so the agent must infer the boundary from sibling names alone.

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

Deploy Server

Other Tools