{"uid":"cap_CrXS5-lsRv2pKkzqT9zGp","slug":"pii-guard-pii-detection-with-character-spans-e87ce409","name":"PII Guard — PII Detection with Character Spans","description":"Detects PII (emails, phones, SSNs, credit cards) in any text with character spans. Compliance agents use this before processing user data.","url":"https://shelf.thirdmade.net/probe/pii-guard","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Input text"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YIb2kDAnNBwFAd0g7ONwt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects personally identifiable information (emails, phone numbers, SSNs, credit card numbers) in text and returns character-level span positions for each match.","exampleAgentPrompt":"Before we store this user message in our database, scan it for any PII — emails, phone numbers, SSNs, or credit card numbers — and tell me exactly where in the text they appear: 'Hi, my name is John, reach me at john@example.com or 555-123-4567, my SSN is 123-45-6789.'","exampleUseCases":[{"title":"Compliance gate before data storage","prompt":"Before we log this support ticket to our database, check it for any PII — emails, phones, SSNs, or credit card numbers. Here's the text: 'Please charge my card 4111-1111-1111-1111 and email confirmation to alice@company.com.'"},{"title":"Redaction pipeline preprocessing","prompt":"I need to redact sensitive info from this text before publishing it. First, find all PII and give me the character positions so I can replace them: 'Contact Bob at 212-555-0198 or bob.smith@gmail.com, SSN 987-65-4321.'"},{"title":"Real-time form input validation","prompt":"A user just submitted a free-text feedback form and I want to make sure they haven't accidentally included personal data like a phone number or credit card. Scan this text for any PII: 'Great product! Also my number is 800-555-0100 in case you want to follow up.'"}],"resultDescription":"Returns detected PII entities found in the input text, each annotated with its type (email, phone, SSN, credit card) and the character span (start and end index) indicating exactly where in the text the match was found. Allows downstream redaction or blocking without ambiguity about what was detected.","failureModes":["Missing required 'text' query parameter returns an error","Very long text inputs may time out or be truncated","Obfuscated or non-standard PII formats (e.g., spaces in SSNs) may not be detected","Non-English or internationally formatted phone/ID numbers may have lower detection accuracy","Empty string input returns no findings rather than an error"],"whenToPreferThis":"Choose this endpoint when you need fast, lightweight PII detection with character-level span annotations — ideal for compliance gates, redaction pipelines, or real-time input validation before storing or processing user data. It covers the four most common PII types (email, phone, SSN, credit card) without the overhead of a full NLP platform. Best suited for agents that need to scan short-to-medium text strings synchronously before a downstream action.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:31:54.680Z","isFirstParty":false}