Skip to main content
Glama
mask.json2.52 kB
{ "id": "mask", "schema": { "type": "object", "title": "", "required": ["rules"], "properties": { "rules": { "type": "array", "title": "Masking rules", "minItems": 1, "items": { "type": "object", "required": ["matchRegex", "replaceExpr"], "properties": { "matchRegex": { "type": "string", "title": "Match Regex", "description": "Pattern to replace. Use /g to replace all matches.", "minLength": 1, "regexp": true }, "replaceExpr": { "type": "string", "title": "Replace Expression", "description": "A JavaScript expression or literal to replace the matching content. Capturing groups can be referenced as g1, g2, and so on, and event fields as event.<fieldName>.", "jsExpression": true, "default": "''" }, "disabled": { "type": "boolean", "default": false, "description": "Set to No to disable the evaluation of an individual rule" } } } }, "fields": { "type": "array", "title": "Apply to fields", "description": "Fields on which to apply the masking rules. Supports * wildcards, except when used on internal fields.", "items": { "type": "string", "pattern": "^(?!__.*\\*).*$", "errorMessage": { "pattern": "Internal fields cannot be used with wildcards." } }, "default": ["_raw"] }, "depth": { "type": "integer", "title": "Depth", "description": "Depth to which the Mask Function will search for fields to mask", "default": 5, "minimum": 1 }, "flags": { "title": "Evaluate fields", "description": "Fields to evaluate if one or more masking rules are matched", "type": "array", "items": { "type": "object", "required": ["value"], "properties": { "name": { "type": "string", "title": "Name" }, "value": { "type": "string", "title": "Value Expression", "description": "JavaScript expression to compute the value (can be constant)", "jsExpression": true } } } } } } }

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/atree1023/snc-cribl-mcp'

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