Skip to main content
Glama
RadiumGu
by RadiumGu

get_experiment_template

Retrieve detailed configuration and parameters for AWS Fault Injection Service experiment templates to analyze chaos engineering setups.

Instructions

Get detailed information about a specific AWS FIS experiment template.

Args:
    template_id: ID of the experiment template to retrieve
    region: AWS region to query (default: us-east-1)
    
Returns:
    JSON string containing detailed template information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
template_idYes
regionNous-east-1

Implementation Reference

  • The handler function that executes the tool logic: retrieves AWS FIS experiment template by ID using boto3, formats key fields into a JSON response.
    def get_experiment_template(template_id: str, region: str = "us-east-1") -> str:
        """
        Get detailed information about a specific AWS FIS experiment template.
        
        Args:
            template_id: ID of the experiment template to retrieve
            region: AWS region to query (default: us-east-1)
            
        Returns:
            JSON string containing detailed template information
        """
        try:
            fis = boto3.client('fis', region_name=region)
            response = fis.get_experiment_template(id=template_id)
            
            # Format the response for better readability
            template = response.get('experimentTemplate', {})
            formatted_template = {
                'id': template.get('id'),
                'description': template.get('description'),
                'targets': template.get('targets', {}),
                'actions': template.get('actions', {}),
                'stopConditions': template.get('stopConditions', []),
                'roleArn': template.get('roleArn'),
                'tags': template.get('tags', {})
            }
            
            return json.dumps(formatted_template, indent=2)
        except Exception as e:
            return f"Error retrieving experiment template: {str(e)}"
  • Registers the get_experiment_template tool with the FastMCP server using app.tool() decorator.
    app.tool()(get_experiment_template)

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