Skip to content

Native MCP tools

The native server name is MaskDoor. The URL is https://mcp.maskdoor.com/v1/mcp/native. Use it when the human is pasting text or files. Use a gateway when the agent must call a server you already run.

The model should sanitize before it reasons, and restore tokens only in the final answer, with the same session_id.

Arguments: text, and an optional session_id.

{
"sanitized_text": "Client [PERSON_A1B2], mail [EMAIL_K3M9]",
"session_id": "…",
"entities_protected": { "PERSON": 1, "EMAIL": 1 },
"instructions": "Use these tokens in your reasoning. Call maskdoor_restore_text with this session_id when you need to restore original values."
}

The response also includes a glossary for that session. If you omit session_id, the call uses the seat’s hour inside the workspace.

Arguments: text and session_id. The result is { "restored_text": "…" } when the session belongs to this workspace. Another workspace’s session fails with session does not belong to this workspace. Values marked [SECRET_REDACTED] stay redacted.

Arguments: file_base64, mime_type, and an optional session_id.

The file is read in memory, then the extracted text is masked in the same session. Images come back as text. The response adds pages_processed to the fields from maskdoor_sanitize_text. Invalid base64 returns file_base64 is invalid. A file that cannot be read returns document could not be read, without the bytes.

The mime types are the maskable set. A scanned PDF is charged from the document-page allowance after the read.

No arguments. The tool reports the jurisdictions and layers active for this workspace: universal, jurisdictions, article 9, and secrets. It also lists the shield items the workspace has enabled.

The server exposes two prompts:

  • safe_contract_review sanitizes the contract, reasons on the tokens, and restores at the end.
  • gdpr_email_draft sanitizes the inbound mail, keeps the tokens in the draft, and restores when the message is ready to send.