Skip to main content
Glama

delete_experiment_template

Remove an AWS Fault Injection Service experiment template by specifying its ID to clean up unused chaos engineering configurations and manage resources.

Instructions

Delete an AWS FIS experiment template. Args: template_id: ID of the experiment template to delete region: AWS region to use (default: us-east-1) Returns: Success or error message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
template_idYes
regionNous-east-1

Implementation Reference

  • The handler function delete_experiment_template that implements the core logic of the tool. It creates a boto3 FIS client and calls delete_experiment_template(id=template_id). Decorated with @require_write_mode. Returns success message or error.
    def delete_experiment_template(template_id: str, region: str = "us-east-1") -> str: """ Delete an AWS FIS experiment template. Args: template_id: ID of the experiment template to delete region: AWS region to use (default: us-east-1) Returns: Success or error message """ try: fis = boto3.client('fis', region_name=region) fis.delete_experiment_template(id=template_id) return f"Successfully deleted experiment template {template_id}" except Exception as e: return f"Error deleting experiment template: {str(e)}"
  • Registers the delete_experiment_template tool with the FastMCP server using app.tool()(delete_experiment_template).
    app.tool()(delete_experiment_template)
  • The require_write_mode decorator applied to delete_experiment_template and other write operations. It checks if write mode is enabled globally before executing the function.
    def require_write_mode(func): """Decorator to require write mode for destructive operations.""" @wraps(func) def wrapper(*args, **kwargs): if not _WRITE_MODE_ENABLED: return json.dumps({ "error": "Write operations are disabled", "message": f"The '{func.__name__}' operation requires write mode. Please restart the server with --allow-writes flag to enable write operations.", "operation": func.__name__, "read_only_mode": True }, indent=2) return func(*args, **kwargs) return wrapper
  • Imports the delete_experiment_template function from aws_fis_mcp.tools module.
    delete_experiment_template, list_action_types, generate_template_example, set_write_mode, )

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/RadiumGu/aws-fis-mcp-server'

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