get_guardrails_policy
Retrieve all guardrails policies to enforce AI safety, analyze prompts, and detect jailbreak attempts in real-time through the Enkrypt AI MCP Server.
Instructions
Get all guardrails policies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"title": "get_guardrails_policyArguments",
"type": "object"
}
Implementation Reference
- src/mcp_server.py:67-72 (handler)The core handler function for the 'get_guardrails_policy' MCP tool. It is registered via the @mcp.tool() decorator and fetches the list of all guardrails policies from the guardrails_client, returning the result as a dictionary.def get_guardrails_policy() -> Dict[str, Any]: """ Get all guardrails policies. """ response = guardrails_client.get_policy_list() return response.to_dict()