Skip to main content
Glama

Enkrypt AI MCP Server

Official
by enkryptai

update_guardrails_policy

Modify and enhance guardrails policies by updating detector configurations, including injection attacks, PII, toxicity, and bias, ensuring robust AI safety and compliance.

Instructions

Update an existing guardrails policy with new configuration.

Args: policy_name: The name of the policy to update. detectors: Dictionary of detector configurations. Each key should be the name of a detector, and the value should be a dictionary of settings for that detector. Available detectors and their configurations are as follows:

- injection_attack: Configured using InjectionAttackDetector model. Example: {"enabled": True} - pii: Configured using PiiDetector model. Example: {"enabled": False, "entities": ["email", "phone"]} - nsfw: Configured using NsfwDetector model. Example: {"enabled": True} - toxicity: Configured using ToxicityDetector model. Example: {"enabled": True} - topic: Configured using TopicDetector model. Example: {"enabled": True, "topic": ["politics", "religion"]} - keyword: Configured using KeywordDetector model. Example: {"enabled": True, "banned_keywords": ["banned_word1", "banned_word2"]} - policy_violation: Configured using PolicyViolationDetector model. Example: {"enabled": True, "need_explanation": True, "policy_text": "Your policy text here"} - bias: Configured using BiasDetector model. Example: {"enabled": True} - copyright_ip: Configured using CopyrightIpDetector model. Example: {"enabled": True} - system_prompt: Configured using SystemPromptDetector model. Example: {"enabled": True, "index": "system_prompt_index"} Example usage: { "injection_attack": {"enabled": True}, "nsfw": {"enabled": True} }

Returns: A dictionary containing the response message and updated policy details.

Input Schema

NameRequiredDescriptionDefault
detectorsYes
policy_descriptionNoUpdated policy configuration
policy_nameYes

Input Schema (JSON Schema)

{ "properties": { "detectors": { "additionalProperties": true, "title": "Detectors", "type": "object" }, "policy_description": { "default": "Updated policy configuration", "title": "Policy Description", "type": "string" }, "policy_name": { "title": "Policy Name", "type": "string" } }, "required": [ "policy_name", "detectors" ], "title": "update_guardrails_policyArguments", "type": "object" }

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/enkryptai/enkryptai-mcp-server'

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