Skip to main content
Glama
opami-protect-mcp

opami-protect-mcp

Official
by opamiai

detect_pii

Scans text to find private and sensitive data like names, emails, and phone numbers, returning each value with its type and position without altering the original text.

Instructions

Finds private and sensitive data (names, emails, phone numbers and similar) in a text and returns each one with its type and position, without changing the text. The text is sent to the Opami Protect API, which keeps nothing. Each detection includes the real value, so the result shows the private data to you; use protect_text instead to avoid seeing it. start and end are UTF-16 code units, as JavaScript string indices, so text.slice(start, end) gives the value. exclude takes at most 50 entries.

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

Input Schema

NameRequiredDescriptionDefault
textYesThe text to scan.
excludeNoCategories, sub-categories or types to leave out of the results. At most 50 entries.

Output Schema

NameRequiredDescriptionDefault
usageYes
detectionsYes
request_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/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 disclosure burden and does so well: it states the text is not modified, that it is sent to an external Opami Protect API which retains nothing, and that results contain the real sensitive values (a meaningful privacy consequence). It also documents the offset convention (UTF-16 code units, JavaScript indices) so callers can slice results correctly.

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?

Purpose and the key privacy warning are front-loaded, and each sentence carries information. The closing sentence about exclude's 50-entry cap duplicates the schema's maxItems, a minor redundancy in an otherwise tight definition.

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?

An output schema exists, so return values need not be described, yet the description still explains the offset semantics that make the output usable. Combined with the external-API, no-retention, and privacy-exposure disclosures, nothing an agent needs to invoke this correctly is missing.

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%, so both parameters are already documented, and the description largely restates them (exclude categories/sub-categories/types, max 50 entries). The most valuable semantic detail it adds — the start/end offset convention — pertains to output fields rather than inputs, so it does not raise parameter semantics above the baseline.

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 opens with a specific verb and resource ("Finds private and sensitive data") and enumerates concrete examples (names, emails, phone numbers). It also states what the result contains (each detection with type and position) and explicitly contrasts itself with protect_text, so an agent can distinguish it from its siblings without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It names the alternative protect_text and the exact condition that selects it: use protect_text when you do not want the real private values exposed to you. It also implicitly defines this tool's appropriate use as cases where seeing the detected values is acceptable, giving a clear when/when-not pair.

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