Skip to main content
Glama
enkryptai

Enkrypt AI MCP Server

Official
by enkryptai

get_redteam_task_details

Retrieve detailed information about a red teaming task, including the system prompt of the target model, for AI safety analysis and prompt auditing.

Instructions

Retrieve details of a redteam task.

Args: test_name: The name of the redteam test.

Returns: A dictionary containing the details of the redteam task including the system prompt of the target model used.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
test_nameYes

Implementation Reference

  • The handler function for the 'get_redteam_task_details' MCP tool. Decorated with @mcp.tool() for automatic registration. Retrieves redteam task details via redteam_client.get_task(test_name) and returns the result as a dictionary.
    @mcp.tool()
    def get_redteam_task_details(test_name: str) -> Dict[str, Any]:
        """
        Retrieve details of a redteam task.
    
        Args:
            test_name: The name of the redteam test.
    
        Returns:
            A dictionary containing the details of the redteam task including the system prompt of the target model used.
        """
        # Retrieve redteam task details
        redteam_task = redteam_client.get_task(test_name=test_name)
    
        # Print as a dictionary
        return redteam_task.to_dict()

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

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