Skip to main content
Glama

GlassTape Policy Builder

Official
by GlassTape
templates.cpython-313.pyc5.48 kB
� �^i�� ��SrSSKJr SSKJr \"SS55r\"SSSS S S 9\"S S SSSS 9\"SSSSSS 9\"SSSSSS 9\"SSSSSS 9/r"S S!5rg")#zJPolicy Template Library - Pre-built templates for common policy scenarios.�)� dataclass)�Literalc�R�\rSrSr%Sr\\S'\\S'\S\S'\\S'\\S'S rg ) �PolicyTemplate�zPolicy template definition�id�name)�finance� healthcare� ai_safety� data_access�system�category� description�example�N) �__name__� __module__� __qualname__�__firstlineno__�__doc__�str�__annotations__r�__static_attributes__r��}/Users/harshmeetarora/Desktop/glasstape-policy-builder-mcp/agent-policy-builder-mcp/src/glasstape_policy_builder/templates.pyrrs&��$� �G� �I��S�T�T��� �Lrr�payment_executionzPayment Executionr zRAI agent payment policy with amount limits, sanctions screening, and rate limitingz�Allow AI agents to execute payments up to $50. Block sanctioned entities. Limit cumulative hourly amount to $50. Maximum 5 transactions per 5 minutes. Topics: payment, transaction. Block topics: recipe, adult.)rr rrr� phi_accessz PHI Accessr zAHIPAA-compliant policy for accessing protected health informationz�Allow healthcare providers to read patient records. Require role verification. Log all access. Block access to records of patients not under their care. Topics: phi, medical_record, healthcare. Block topics: payment, recipe.�model_invocationzAI Model Invocation Policyr zAPolicy for controlling AI model invocations with prompt filteringz�Allow AI agents to invoke models for approved use cases. Block jailbreak attempts. Limit to 100 requests per hour. Require content filtering. Topics: api, configuration. Block topics: adult, violence, illegal.� pii_exportzPII Export Control Policyr zDPolicy for controlling export of personally identifiable informationz�Allow data analysts to export anonymized data. Block export of PII fields. Require approval for exports over 10,000 records. Log all export operations. Topics: pii, personal_data. Block topics: phi, medical_record.� admin_accesszAdmin Access Policyrz=Policy for administrative system access with MFA requirementsz�Allow system administrators to modify configurations. Require MFA verification. Block after 3 failed attempts. Require approval for production changes. Topics: admin, configuration, security. Block topics: recipe, entertainment.c�x�\rSrSrSrS S\S\\4SjjrS\S\S-4Sjr S\\4S jr S \\S\4S jr S r g)�TemplateLibrary�BzManage policy templatesNr�returnc�v�U(a([Vs/sHo"RU:XdMUPM sn$[$s snf)zu List available templates Args: category: Optional category filter Returns: List of matching templates )�POLICY_TEMPLATESr)�selfr�ts r�list_templates�TemplateLibrary.list_templatesEs3�� �/�J�/�!�:�:��3I�A�/�J� J����Ks�6�6� template_idc�F�[HnURU:XdMUs $ g)zGet a specific template by IDN)r'r)r(r,�templates r� get_template�TemplateLibrary.get_templateSs"��(�H��{�{�k�)���)�rc�@�[[S[555$)zGet list of all categoriesc3�8# �UHoRv� M g7f�N)r)�.0r)s r� <genexpr>�1TemplateLibrary.get_categories.<locals>.<genexpr>\s���=�,<�q� � �,<�s�)�list�setr')r(s r�get_categories�TemplateLibrary.get_categoriesZs���C�=�,<�=�=�>�>r� templatesc�D�SnUSSRUR55S3- nUHlnUSURS3- nUSURS3- nUS URS3- nUS UR S3- nUS - nUS UR S 3- nUS- nMn US- nU$)z!Format templates as readable textz# Policy Templates z**Categories**: z, z z## � z **ID**: `z` z**Category**: z**Description**: z**Example requirement**: z``` z ``` z--- zR Use `generate_policy` with any of these example requirements to create a policy. )�joinr9r rrrr)r(r;�outputr.s r�format_templates� TemplateLibrary.format_templates^s���)���$�T�Y�Y�t�/B�/B�/D�%E�$F�d�K�K��!�H� ��H�M�M�?�"�-� -�F� � �(�+�+��c�2� 2�F� ��x�'8�'8�&9��<� <�F� �)�(�*>�*>�)?�t�D� D�F� �2� 2�F� ��h�.�.�/�y�9� 9�F� �i� �F�"� �h�h��� rrr3) rrrrrrr7rr*r/r9r@rrrrr#r#Bs]��!�  �s�  �d�>�6J�  ������0E��?��S� �?��$�~�*>��3�rr#N)r� dataclassesr�typingrrr'r#rrr�<module>rDs���P�!�� ��� ��� � ��h�>� �� � ��W�K� �� � )��W�G� �� � (��Z�B� �� � "��S�P� �K.��b,�,r

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/GlassTape/agent-policy-builder-mcp'

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