Skip to main content
Glama

ScorpTech x402 Tools

Pii Detect

pii_detect
Read-onlyIdempotent

Detect and redact PII in text: emails, phone numbers (E.164, NANP, keyword-anchored national), credit cards (Luhn + issuer prefix/length, brand), US SSNs (SSA validity rules) and IBANs (registry length + mod-97). Returns counts per type, findings with code-point offsets, confidence and masked values, and a redacted copy using stable labels ([EMAIL_1]) or inline masks. Raw values are only echoed with reveal:true. Offline; 200 KB text limit. Returns JSON with: containsPii, total, counts, typesFound, redacted, revealed, findings. Price: $0.01 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/pii-detect

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

Input Schema

NameRequiredDescriptionDefault
textYesText to scan (max 200 KB)
styleNolabel (default, [EMAIL_1]) or mask (j***@example.com)
typesNoSubset of email, phone, credit_card, ssn, iban (default all)
revealNoInclude raw matched values in findings (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations, the description discloses meaningful behavior: detection algorithms, redaction labels versus masks, raw-value gating via reveal:true, output fields, text-size limits, pricing, and the HTTPS endpoint. These details substantially reduce ambiguity about safety, privacy, and operational constraints.

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 description is front-loaded with purpose and contains no filler sentences. It is dense and somewhat run-on, with many semicolon-separated details in one paragraph, which slightly reduces scanability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, but the description explicitly lists the returned JSON fields and explains counts, findings, offsets, confidence, masked values, and redacted output. Combined with the text limit, offline note, and payment details, it is complete enough for correct invocation.

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 the baseline is 3. The description reinforces reveal:true and explains label versus mask output, but most of this duplicates what the schema already documents rather than adding new parameter semantics.

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: detect and redact PII in text. It enumerates the covered PII categories, the detection rules for each, and the redaction behavior, which clearly distinguishes it from generic detection siblings like file_type_detect.

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?

It gives useful operating context such as offline execution, the 200 KB text limit, and the optional types subset, so usage is reasonably implied. However, it does not explicitly say when to use this tool versus alternatives or when not to use it.

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.

Resources