Skip to main content
Glama
enkryptai

Enkrypt AI MCP Server

Official
by enkryptai

add_agent_redteam_task

Assigns a redteam task using a saved agent by specifying the agent’s version and task configuration, including system description, policy, and tools, for comprehensive testing.

Instructions

Add a redteam task using a saved agent.

Args: agent_saved_name: The saved name of the agent to be used for the redteam task. agent_version: The version of the agent to be used for the redteam task. agent_redteam_model_config: The configuration for the redteam task. ASK USER FOR ALL THESE DETAILS. Example usage: sample_redteam_model_config = { "test_name": redteam_test_name, "dataset_configuration": { #Ask user for all these details, do not fill it on your own (system_description, policy_description. Tools can be gotten from agent config otherwise ask user) "system_description": "Ask user for this", # Ask user for the system description of the agent for the custom use-case. (Mandatory exactly same as what the user has input) "policy_description": "Ask user for this", # Ask user for the policy which the agent for the custom use-case should follow. (Optional) "tools": [ { "name": "ask user for this", # The name of the tool to be used for the custom use-case. (Mandatory) "description": "ask user for this" # The description of the tool to be used for the custom use-case. (Mandatory) } ], #The following are the default values for the custom use-case. Change them only if the user asks for a different test size. "max_prompts": 500, # The maximum number of prompts to be used for the custom use-case. "scenarios": 2, # The number of scenarios to be used for the custom use-case. "categories": 2, # The number of categories to be used for the custom use-case. "depth": 1, # The depth of the custom use-case. } "redteam_test_configurations": { #IMPORTANT: Before setting the redteam test config, ask the user which tests they would want to run and the sample percentage "alignment_and_governance_test": { "sample_percentage": 2, "attack_methods": { "basic": [ "basic" ], "advanced": { "static": [ "encoding" ] } } }, "input_and_content_integrity_test": { "sample_percentage": 2, "attack_methods": { "basic": [ "basic" ], "advanced": { "static": [ "encoding" ] } } }, "infrastructure_and_integration_test": { "sample_percentage": 2, "attack_methods": { "basic": [ "basic" ], "advanced": { "static": [ "encoding" ] } } }, "security_and_privacy_test": { "sample_percentage": 2, "attack_methods": { "basic": [ "basic" ], "advanced": { "static": [ "encoding" ] } } }, "human_factors_and_societal_impact_test": { "sample_percentage": 2, "attack_methods": { "basic": [ "basic" ], "advanced": { "static": [ "encoding" ] } } }, "access_control_test": { "sample_percentage": 2, "attack_methods": { "basic": [ "basic" ], "advanced": { "static": [ "encoding" ] } } }, "physical_and_actuation_safety_test": { "sample_percentage": 2, "attack_methods": { "basic": [ "basic" ], "advanced": { "static": [ "encoding" ] } } }, "reliability_and_monitoring_test": { "sample_percentage": 2, "attack_methods": { "basic": [ "basic" ], "advanced": { "static": [ "encoding" ] } } } }, }

Returns: A dictionary containing the response message and details of the added redteam task.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_redteam_model_configYes
agent_saved_nameYes
agent_versionYes

Implementation Reference

  • Handler function decorated with @mcp.tool(), which defines and registers the 'add_agent_redteam_task' tool. It calls redteam_client.add_custom_task_with_saved_model to add a redteam task for a saved agent.
    @mcp.tool()
    def add_agent_redteam_task(agent_saved_name: str, agent_version: str, agent_redteam_model_config: Dict[str, Any]) -> Dict[str, Any]:
        """
        Add a redteam task using a saved agent.
    
        Args:
            agent_saved_name: The saved name of the agent to be used for the redteam task.
            agent_version: The version of the agent to be used for the redteam task.
            agent_redteam_model_config: The configuration for the redteam task. ASK USER FOR ALL THESE DETAILS.
                Example usage:
                    sample_redteam_model_config = {
                    "test_name": redteam_test_name,
                    "dataset_configuration": { #Ask user for all these details, do not fill it on your own (system_description, policy_description. Tools can be gotten from agent config otherwise ask user)
                        "system_description": "Ask user for this", # Ask user for the system description of the agent for the custom use-case. (Mandatory exactly same as what the user has input)
                        "policy_description": "Ask user for this", # Ask user for the policy which the agent for the custom use-case should follow. (Optional)
                        "tools": [
                            {
                                "name": "ask user for this", # The name of the tool to be used for the custom use-case. (Mandatory)
                                "description": "ask user for this" # The description of the tool to be used for the custom use-case. (Mandatory)
                            }
                        ],
                        #The following are the default values for the custom use-case. Change them only if the user asks for a different test size.
                        "max_prompts": 500, # The maximum number of prompts to be used for the custom use-case.
                        "scenarios": 2, # The number of scenarios to be used for the custom use-case.
                        "categories": 2, # The number of categories to be used for the custom use-case.
                        "depth": 1, # The depth of the custom use-case.
                        }
                    "redteam_test_configurations": { #IMPORTANT: Before setting the redteam test config, ask the user which tests they would want to run and the sample percentage
                        "alignment_and_governance_test": {
                            "sample_percentage": 2,
                            "attack_methods": {
                            "basic": [
                                "basic"
                            ],
                            "advanced": {
                                "static": [
                                "encoding"
                                ]
                            }
                            }
                        },
                        "input_and_content_integrity_test": {
                            "sample_percentage": 2,
                            "attack_methods": {
                            "basic": [
                                "basic"
                            ],
                            "advanced": {
                                "static": [
                                "encoding"
                                ]
                            }
                            }
                        },
                        "infrastructure_and_integration_test": {
                            "sample_percentage": 2,
                            "attack_methods": {
                            "basic": [
                                "basic"
                            ],
                            "advanced": {
                                "static": [
                                "encoding"
                                ]
                            }
                            }
                        },
                        "security_and_privacy_test": {
                            "sample_percentage": 2,
                            "attack_methods": {
                            "basic": [
                                "basic"
                            ],
                            "advanced": {
                                "static": [
                                "encoding"
                                ]
                            }
                            }
                        },
                        "human_factors_and_societal_impact_test": {
                            "sample_percentage": 2,
                            "attack_methods": {
                            "basic": [
                                "basic"
                            ],
                            "advanced": {
                                "static": [
                                "encoding"
                                ]
                            }
                            }
                        },
                        "access_control_test": {
                            "sample_percentage": 2,
                            "attack_methods": {
                            "basic": [
                                "basic"
                            ],
                            "advanced": {
                                "static": [
                                "encoding"
                                ]
                            }
                            }
                        },
                        "physical_and_actuation_safety_test": {
                            "sample_percentage": 2,
                            "attack_methods": {
                            "basic": [
                                "basic"
                            ],
                            "advanced": {
                                "static": [
                                "encoding"
                                ]
                            }
                            }
                        },
                        "reliability_and_monitoring_test": {
                            "sample_percentage": 2,
                            "attack_methods": {
                            "basic": [
                                "basic"
                            ],
                            "advanced": {
                                "static": [
                                "encoding"
                                ]
                            }
                            }
                        }
                    },
                }
    
        Returns:
            A dictionary containing the response message and details of the added redteam task.
        """
        # Use a dictionary to configure a redteam task
        add_redteam_model_response = redteam_client.add_custom_task_with_saved_model(config=agent_redteam_model_config, model_saved_name=agent_saved_name, model_version=agent_version)
    
        # Print as a dictionary
        return add_redteam_model_response.to_dict()
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. While it mentions the tool 'Adds' something (implying creation/mutation), it doesn't describe what happens after adding - whether the task executes immediately, gets queued, requires approval, or has side effects. The example config includes detailed structure but doesn't explain behavioral traits like error handling, permissions needed, or rate limits. Significant behavioral gaps remain.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is excessively long and poorly structured - the massive JSON example dominates the text. While the initial sentence is concise, the example usage with embedded comments and repeated 'ask user for this' text creates significant noise. The description is front-loaded but then becomes bloated with implementation details that belong elsewhere. Many sentences don't earn their place in a tool description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 3 parameters with 0% schema coverage, no annotations, no output schema, and complex nested objects, the description provides substantial parameter guidance but lacks other critical context. It doesn't explain return values (only mentions 'A dictionary containing the response message and details'), doesn't cover error conditions, and omits behavioral expectations. The parameter coverage is strong, but overall completeness is only adequate for this complex tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage and 3 parameters, the description provides substantial value beyond the bare schema. It explains that 'agent_saved_name' refers to 'the saved name of the agent', 'agent_version' is 'the version of the agent', and 'agent_redteam_model_config' is 'the configuration for the redteam task' with extensive example structure and guidance to 'ASK USER FOR ALL THESE DETAILS'. This compensates well for the schema's lack of descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states 'Add a redteam task using a saved agent' which provides a basic verb+resource combination, but it's vague about what 'add' means operationally (creates, schedules, executes?) and doesn't clearly differentiate from sibling tools like 'add_redteam_task' or 'add_custom_redteam_task'. The purpose is understandable but lacks specificity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus alternatives like 'add_redteam_task' or 'add_custom_redteam_task' is provided. The description mentions using a 'saved agent' which implies a prerequisite, but doesn't explain when this specific tool is appropriate versus other redteam task creation methods. Usage context is implied but not clearly articulated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Related Tools

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