Skip to main content
Glama
czangyeob
by czangyeob

mcp_decrypt_pii_item

Decrypt encrypted personally identifiable information (PII) items using advanced cryptographic methods to restore original data values securely.

Instructions

MCP Tool: PII 항목 복호화 Args: encrypted_value (str): 복호화할 암호화된 값 pii_type (str): PII 유형 Returns: Dict[str, Any]: 복호화 결과

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
encrypted_valueYes
pii_typeYes

Implementation Reference

  • The core handler function for the mcp_decrypt_pii_item MCP tool. It decrypts an encrypted PII value using the PIICrypto class based on the provided PII type, handling both deterministic and FPE decryption methods.
    @mcp.tool() def mcp_decrypt_pii_item(encrypted_value: str, pii_type: str) -> Dict[str, Any]: """ MCP Tool: PII 항목 복호화 Args: encrypted_value (str): 복호화할 암호화된 값 pii_type (str): PII 유형 Returns: Dict[str, Any]: 복호화 결과 """ try: crypto = PIICrypto() decrypted_value = crypto.decrypt_pii_item(encrypted_value, pii_type) return { "success": True, "encrypted_value": encrypted_value, "decrypted_value": decrypted_value, "pii_type": pii_type, "decryption_method": "deterministic" if pii_type in crypto.deterministic_types else "fpe" } except Exception as e: return { "success": False, "error": str(e), "encrypted_value": encrypted_value, "decrypted_value": "", "pii_type": pii_type }
  • JSON schema definition for the decrypt_pii_item tool parameters, specifying input validation for encrypted_value and pii_type.
    "decrypt_pii_item": { "name": "decrypt_pii_item", "description": "암호화된 PII 항목을 복호화합니다.", "parameters": { "type": "object", "properties": { "encrypted_value": { "type": "string", "description": "복호화할 암호화된 값" }, "pii_type": { "type": "string", "description": "PII 유형 (암호화 시 사용한 유형과 동일해야 함)" } }, "required": ["encrypted_value", "pii_type"] } },
  • Log statement listing available MCP tools, confirming decrypt_pii_item is registered and available.
    logger.info("Available tools: detect_pii, process_text, batch_process, anonymize_text, encrypt_pii_item, decrypt_pii_item, encrypt_text_pii, decrypt_text_pii")

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/czangyeob/mcp-pii-tools'

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