get_redteam_task_status
Retrieve the status of a red team task using test name to monitor AI safety analysis and prompt auditing progress on the Enkrypt AI MCP Server.
Instructions
Get the status of a redteam task.
Args: test_name: The name of the redteam test.
Returns: A dictionary containing the status of the redteam task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test_name | Yes |
Input Schema (JSON Schema)
{
"properties": {
"test_name": {
"title": "Test Name",
"type": "string"
}
},
"required": [
"test_name"
],
"title": "get_redteam_task_statusArguments",
"type": "object"
}
Implementation Reference
- src/mcp_server.py:675-690 (handler)The handler function for the 'get_redteam_task_status' MCP tool. It is decorated with @mcp.tool() which handles registration with the FastMCP server. The function takes a test_name parameter, calls redteam_client.status(test_name=test_name), and returns the result as a dictionary. Type hints and docstring provide the input/output schema.@mcp.tool() def get_redteam_task_status(test_name: str) -> Dict[str, Any]: """ Get the status of a redteam task. Args: test_name: The name of the redteam test. Returns: A dictionary containing the status of the redteam task. """ # Get redteam task status redteam_task_status = redteam_client.status(test_name=test_name) return redteam_task_status.to_dict()