{"serverInfo": {"name": "NoonAI Automatic Face Masking & Video Mosaic MCP", "version": "0.1.0"}, "description": "Automatically detect and mask people in images and video in a single call - faces, bodies, and license plates. Use this when a photo or video contains bystanders whose faces must be hidden before publishing, when a clip is too long to mask frame by frame by hand, or when several people must be masked at once without selecting coordinates manually. Detection runs on every frame, so people walking through the shot stay covered as they move. Only detected regions are masked, never the whole frame; this covers people rather than erasing them, so it is not video inpainting or object removal. Long media is processed as a job that can be polled and downloaded. Also known as video mosaic, face blur, pixelation, privacy masking, redaction, or de-identification.", "authentication": {"required": true, "schemes": ["oauth2"]}, "tools": [{"name": "get_encrypt_constraints", "description": "Describe image/video anonymization limits (video: up to 360 s, or 180 s with restoration=\"true\") and target object options. Explains how DIS handles automatic face blur that blurs only detected face regions, face-only blur/redaction, body masking, license-plate masking, that it is not a full-image blur filter, billing policy, and that completion must be judged with complete=true.", "inputSchema": {"type": "object", "properties": {"file_kind": {"type": "string", "enum": ["image", "video"], "description": "\"video\" (default) or \"image\"."}}, "required": []}}, {"name": "upload_file_content", "description": "Upload image or video bytes from a remote MCP client as base64. Use this when the AI client cannot share a local server file path before running a one-shot face anonymization or automatic face blur/redaction workflow.", "inputSchema": {"type": "object", "properties": {"file_name": {"type": "string", "description": "Original file name including extension."}, "file_base64": {"type": "string", "description": "Raw base64 or data URL payload."}, "file_type": {"type": "string", "description": "Optional MIME type such as image/png or video/mp4."}}, "required": ["file_name", "file_base64"]}}, {"name": "submit_encrypt_job", "description": "Submit a DIS anonymization job for a previously uploaded asset. Supports target_objects such as face, body, and car; use face when you want a one-shot flow that detects faces and then blurs or redacts only those detected face regions instead of chaining a separate detect tool and blur tool. This is for automatic face blur, not a full-image blur filter.", "inputSchema": {"type": "object", "properties": {"asset_id": {"type": "string", "description": "ULID returned by upload_file or upload_file_content."}, "key_index": {"type": "integer", "description": "Encryption key index. Use 0 for permanent masking; a registered key index for restoration=\"true\"."}, "key_name": {"type": "string", "description": "Encryption key name. Use \"null\" for permanent masking; the registered key name for restoration=\"true\"."}, "media_kind": {"type": "string", "enum": ["image", "video"], "description": "Optional media kind hint that must match the uploaded asset."}, "target_objects": {"type": "array", "items": {"type": "string", "enum": ["face", "body", "car"]}, "description": "Choose face for face-only anonymization; body for person masking; car for plate/vehicle masking."}, "restoration": {"type": "string", "description": "\"true\" = reversible: masked regions are encrypted and the key holder can restore the original later with prepare_restoration -> list_restorable_objects -> submit_restoration (or in the NoonAI DIS web console); needs a registered key; video limit 180 s. \"false\" (default) = permanent masking (video limit 360 s)."}}, "required": ["asset_id", "key_index", "key_name"]}}, {"name": "encrypt_image", "description": "Single-call image automatic face blur/redaction. One MCP tool call uploads the image, detects faces/people/vehicles, then blurs or redacts only detected face/body/plate regions. Use target_objects=[\"face\"] when you need face detection plus face blur/redaction in one call without a separate detect tool + blur tool chain. Example: encrypt_image(target_objects=[\"face\"]). It is not a full-image blur filter.", "inputSchema": {"type": "object", "properties": {"file_path": {"type": "string", "description": "Server-local file path for the source image."}, "file_name": {"type": "string", "description": "Original file name shown to the DIS pipeline."}, "key_index": {"type": "integer"}, "key_name": {"type": "string"}, "file_type": {"type": "string", "description": "Optional MIME type such as image/png."}, "target_objects": {"type": "array", "items": {"type": "string", "enum": ["face", "body", "car"]}, "description": "Pass [\"face\"] for a single-call detect-faces-then-blur/redact workflow that blurs only detected face regions."}}, "required": ["file_path", "file_name", "key_index", "key_name"]}}, {"name": "encrypt_video", "description": "One-shot video anonymization: automatically detects and masks people (body), faces (face), and license plates (car) on every frame in a single call. No per-frame manual coordinates and no separate detect + blur tool chain; only detected regions are masked, not the full frame. Reversible option: restoration=\"true\" encrypts the masked regions so the key holder can restore the original later with prepare_restoration, list_restorable_objects and submit_restoration (all objects, or all but chosen ones, e.g. to leave one person masked; needs a registered key and its private key). Price: $3 per video, no free video trial. Limits: 1 file per request, .mp4/.avi, up to 150 MB and 1920x1080, up to 360 s (180 s with restoration=\"true\"); split longer clips first. Remote clients: upload_file_content -> submit_encrypt_job. Example: encrypt_video(target_objects=[\"face\"]).", "inputSchema": {"type": "object", "properties": {"file_path": {"type": "string", "description": "Path to the source video on the MCP server itself. Remote clients cannot share paths: use upload_file_content, then submit_encrypt_job."}, "file_name": {"type": "string", "description": "Original file name including extension (.mp4 or .avi)."}, "key_index": {"type": "integer", "description": "Encryption key index. Use 0 for permanent masking; a registered key index for restoration=\"true\"."}, "key_name": {"type": "string", "description": "Encryption key name. Use \"null\" for permanent masking; the registered key name for restoration=\"true\"."}, "file_type": {"type": "string", "description": "Optional MIME type such as video/mp4."}, "restoration": {"type": "string", "description": "\"true\" = reversible: masked regions are encrypted and the key holder can restore the original later with prepare_restoration -> list_restorable_objects -> submit_restoration (or in the NoonAI DIS web console); needs a registered key; video limit 180 s. \"false\" (default) = permanent masking (video limit 360 s)."}, "target_objects": {"type": "array", "items": {"type": "string", "enum": ["face", "body", "car"]}, "description": "Objects to detect and mask on every frame: \"face\", \"body\" (whole person, e.g. passers-by), \"car\" (license plates). Example: [\"face\"]."}}, "required": ["file_path", "file_name", "key_index", "key_name"]}}, {"name": "get_job_status", "description": "Poll an anonymization job. Treat complete=true as the authoritative completion signal, not just progress_percent=100.", "inputSchema": {"type": "object", "properties": {"job_id": {"type": "string", "description": "ULID returned by submit_encrypt_job, encrypt_image, or encrypt_video."}}, "required": ["job_id"]}}, {"name": "get_job_result", "description": "Return the result payload for a completed anonymization job.", "inputSchema": {"type": "object", "properties": {"job_id": {"type": "string", "description": "Completed job ULID."}}, "required": ["job_id"]}}, {"name": "download_job_result", "description": "Download or inline the output file for a completed anonymization job.", "inputSchema": {"type": "object", "properties": {"job_id": {"type": "string", "description": "Completed job ULID."}, "file_name": {"type": "string", "description": "Optional preferred result file name when multiple outputs exist."}}, "required": ["job_id"]}}, {"name": "prepare_restoration", "description": "Start restoring originals from a completed restoration=\"true\" job: send the matching private key once, then poll list_restorable_objects.", "inputSchema": {"type": "object", "properties": {"job_id": {"type": "string", "description": "job_id of a completed encrypt job submitted with restoration=\"true\"."}, "private_key_pem": {"type": "string", "description": "Unencrypted PEM private key matching key_name; used once, not stored by the gateway."}, "key_name": {"type": "string", "description": "Registered key name used when the job was encrypted."}}, "required": ["job_id", "private_key_pem", "key_name"]}}, {"name": "list_restorable_objects", "description": "List masked objects (faces, whole people, plates) with ids and optional small crops once thumbnails are ready.", "inputSchema": {"type": "object", "properties": {"restore_id": {"type": "string", "description": "restore_id returned by prepare_restoration."}, "include_images": {"type": "boolean", "description": "Include small base64 crops."}, "max_images": {"type": "integer", "description": "Maximum crops to inline."}}, "required": ["restore_id"]}}, {"name": "submit_restoration", "description": "Submit partial decryption: restore chosen objects, or restore everything except keep_masked_object_ids to leave one person masked. Then poll get_job_status and download_job_result with the same id.", "inputSchema": {"type": "object", "properties": {"restore_id": {"type": "string", "description": "restore_id returned by prepare_restoration."}, "restore_object_ids": {"type": "array", "items": {"type": "string"}, "description": "object_id values to restore."}, "keep_masked_object_ids": {"type": "array", "items": {"type": "string"}, "description": "object_id values that stay masked; everything else is restored."}}, "required": ["restore_id"]}}, {"name": "get_pricing_policy", "description": "Explain image/video pricing, free image trial rules, and the top-up flow used before paid anonymization requests.", "inputSchema": {"type": "object", "properties": {}, "required": []}}, {"name": "get_billing_status", "description": "Return current flat-price billing status for the caller's stable billing principal.", "inputSchema": {"type": "object", "properties": {}, "required": []}}, {"name": "register_billing_payment_method", "description": "Encrypt and store a default payment method for the caller's billing principal.", "inputSchema": {"type": "object", "properties": {"buyer_id": {"type": "string"}, "buyer_name": {"type": "string"}, "buyer_email": {"type": "string"}, "card_number": {"type": "string"}, "card_expiry_ym": {"type": "string"}, "payment_type": {"type": "string", "default": "LOCAL02"}}, "required": ["buyer_id", "buyer_name", "buyer_email", "card_number", "card_expiry_ym"]}}, {"name": "purchase_credits", "description": "Charge the caller's stored payment method and credit the tenant balance.", "inputSchema": {"type": "object", "properties": {"credits": {"type": "integer", "description": "Allowed top-up credit amount in USD."}}, "required": ["credits"]}}, {"name": "purchase_credits_with_card", "description": "Charge raw card details directly for the current billing principal without storing them.", "inputSchema": {"type": "object", "properties": {"credits": {"type": "integer"}, "buyer_id": {"type": "string"}, "buyer_name": {"type": "string"}, "buyer_email": {"type": "string"}, "card_number": {"type": "string"}, "card_expiry_ym": {"type": "string"}}, "required": ["credits", "buyer_id", "buyer_name", "buyer_email", "card_number", "card_expiry_ym"]}}], "resources": [], "prompts": []}