Skip to main content
Glama

Scan text

scan
Read-onlyIdempotent

Detect and report sensitive data such as PII, PHI, or secrets in text, returning type, position, confidence, and masked preview without altering the original text.

Instructions

Report the sensitive data found in text (type, position, confidence, masked preview) without changing it.

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

Input Schema

NameRequiredDescriptionDefault
textYesText to inspect
policyNoPolicy pack(s), e.g. 'hipaa', 'dpdp,secrets', 'all,-URL'. Default: server setting.

Output Schema

NameRequiredDescriptionDefault

No arguments

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 structurally. The description reinforces non-mutation, which is useful, and it names the reported fields, but that is largely return-content information already served by the existing output schema; no auth, limits, or edge-case behavior is discussed.

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 no filler, and the non-mutation constraint is placed at the end of a tight parenthetical structure. Every clause carries information.

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?

With rich annotations, full schema coverage, and an output schema covering return values, the description only needs purpose and intent, which it delivers. A note on how the policy parameter changes what is reported would close the remaining 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 description coverage is 100%, so both the required text and the optional policy parameter are documented in the schema, including policy-pack syntax examples. The description adds no additional meaning about how policy affects detection, so baseline 3 applies.

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 (report sensitive data found in text) and enumerates the reported fields, plus the key qualifier 'without changing it' that separates it from redact-style siblings. It stops short of naming an alternative tool explicitly, so the differentiation is implicit rather than stated.

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 only implied: 'without changing it' hints that inspection (not masking) is the intent and that redact is the mutation counterpart, but there is no explicit when-to-use or when-not-to-use statement, and no mention of scan_files for file inputs.

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