Skip to main content
Glama
AiAgentKarl

Agent Policy Gateway MCP Server

check_pii

Scan text for personally identifiable information (PII) such as emails, phone numbers, and SSNs. Returns redacted text and types of detected PII to ensure compliance before sharing data with external services.

Instructions

Scannt Text auf personenbezogene Daten (PII).

Erkennt: E-Mail-Adressen, Telefonnummern (US/EU), SSNs, Kreditkartennummern und IBANs.

Gibt gefundene PII-Typen und eine bereinigte Version zurück. Nutze dieses Tool BEVOR du Text an externe Services sendest.

Args: text: Der zu prüfende Text

Returns: found_pii: Liste der gefundenen PII-Typen mit Positionen redacted_text: Text mit entfernter PII (ersetzt durch [PII_TYP]) has_pii: Boolean ob PII gefunden wurde pii_count: Anzahl gefundener PII-Elemente

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool detects specific PII types and returns a redacted version, implying no side effects. However, it does not explicitly state that the tool is read-only or mention any authorization or rate limits.

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 concise with a clear structure: a brief explanation, a list of detected PII, and a structured Args/Returns section. It is front-loaded and every sentence adds value, though it could be slightly more streamlined.

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?

For a simple single-parameter tool with no output schema or annotations, the description covers input purpose, output structure (found_pii, redacted_text, etc.), and usage context. It is complete enough for agent invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The only parameter 'text' is described as 'Der zu prüfende Text' in the description, providing meaning beyond the schema which only has a title and type. The description adds context that the text is to be scanned for PII, which aids correct usage.

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 clearly states the tool scans text for PII, lists specific data types (emails, phone numbers, SSNs, etc.), and explains its output. It distinguishes itself from siblings like apply_guardrails by focusing on PII detection before sending to external services.

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 explicitly tells when to use the tool: 'Nutze dieses Tool BEVOR du Text an externe Services sendest.' It does not specify when not to use or mention alternatives, but the directive is clear and actionable.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AiAgentKarl/agent-policy-gateway-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server