awslabs.aws-for-sap-management-mcp-server
v0.1.2An AWS Labs Model Context Protocol (MCP) server for AWS Systems Manager for SAP
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_applications
List all SAP applications registered with AWS Systems Manager for SAP. Returns a list of all SAP applications (HANA and SAP_ABAP) in the specified region. Args: ctx: MCP context object. region: AWS region to query. profile_name: AWS CLI profile name. Returns: ListApplicationsResponse with application summaries.
| Parameter | Type | Description |
|---|---|---|
profile_name | AWS CLI Profile Name to use. Falls back to AWS_PROFILE env var. | |
region | AWS region to query. Defaults to AWS_REGION environment variable or us-east-1. |
get_application
Get detailed metadata for a specific SAP application. Retrieves application status, discovery status, type, and component information. Status values: ACTIVATED | STARTING | STOPPED | STOPPING | FAILED | REGISTERING | DELETING | UNKNOWN Discovery status values: SUCCESS | REGISTRATION_FAILED | REFRESH_FAILED | REGISTERING | DELETING Args: ctx: MCP context object. application_id: The application ID. region: AWS region. profile_name: AWS CLI profile name. Returns: ApplicationDetail with full app…
| Parameter | Type | Description |
|---|---|---|
application_id * | string | The unique identifier of the SAP application. |
profile_name | AWS CLI Profile Name. | |
region | AWS region. Defaults to AWS_REGION or us-east-1. |
get_component
Get detailed health status for a specific component of an SAP application. Component types: HANA | HANA_NODE | ABAP | ASCS | ERS | APP | DIALOG | WEBDISP | WD Component status: ACTIVATED | STARTING | STOPPED | STOPPING | FAILED | REGISTERING | DELETING | UNKNOWN Args: ctx: MCP context object. application_id: The application ID. component_id: The component ID. region: AWS region. profile_name: AWS CLI profile name. Returns: ComponentDetail with component metadata.
| Parameter | Type | Description |
|---|---|---|
application_id * | string | The unique identifier of the SAP application. |
component_id * | string | The unique identifier of the component. |
profile_name | AWS CLI Profile Name. | |
region | AWS region. Defaults to AWS_REGION or us-east-1. |
get_operation
Get the details of an SSM for SAP operation. Use this to check the status of async operations like register, start, or stop. Args: ctx: MCP context object. operation_id: The operation ID. region: AWS region. profile_name: AWS CLI profile name. Returns: OperationDetail with operation metadata.
| Parameter | Type | Description |
|---|---|---|
operation_id * | string | The unique identifier of the operation. |
profile_name | AWS CLI Profile Name. | |
region | AWS region. Defaults to AWS_REGION or us-east-1. |
register_application
Register an SAP application with AWS Systems Manager for SAP. For HANA applications, provide the HANA database details. For SAP_ABAP applications, you must first register the HANA database and provide its ARN. Args: ctx: MCP context object. application_id: Unique application identifier. application_type: HANA or SAP_ABAP. sid: SAP System ID (3 chars). sap_instance_number: Two-digit instance number. instances: List of EC2 instance IDs. credentials: Optional credential configurations.…
| Parameter | Type | Description |
|---|---|---|
application_id * | string | Unique identifier for the application (e.g., "MyHanaApp"). |
application_type * | string | Application type: 'HANA' or 'SAP_ABAP'. |
instances * | array | List of EC2 instance IDs (e.g., ["i-0123456789abcdef0"]). |
sap_instance_number * | string | Two-digit instance number (e.g., "00", "01"). |
sid * | string | SAP System ID (3 characters, e.g., "HDB", "S4H"). |
credentials | Credential configurations: [{"CredentialType": "ADMIN", "DatabaseName": "<SID>/<DB>", "SecretId": "<ARN>"}] | |
database_arn | ARN of HANA database. REQUIRED for SAP_ABAP type only. | |
profile_name | AWS CLI Profile Name. | |
region | AWS region. Defaults to AWS_REGION or us-east-1. | |
tags | Tags to apply to the application. |
start_application
Start an SAP application registered with AWS Systems Manager for SAP. Args: ctx: MCP context object. application_id: The application ID. region: AWS region. profile_name: AWS CLI profile name. Returns: StartStopApplicationResponse with operation status.
| Parameter | Type | Description |
|---|---|---|
application_id * | string | The ID of the application to start. |
profile_name | AWS CLI Profile Name. | |
region | AWS region. Defaults to AWS_REGION or us-east-1. |
stop_application
Stop an SAP application registered with AWS Systems Manager for SAP. For HANA applications with associated NetWeaver (SAP_ABAP) applications, this tool can optionally stop the NetWeaver applications first before stopping the HANA database. Args: ctx: MCP context object. application_id: The application ID. include_ec2_instance_shutdown: Whether to also shutdown EC2 instances. stop_connected_entity: Connected entity to stop (e.g., 'DBMS'). region: AWS region. profile_name: AWS CLI profile na…
| Parameter | Type | Description |
|---|---|---|
application_id * | string | The ID of the application to stop. |
include_ec2_instance_shutdown | boolean | If True, also shutdown the EC2 instances. Default: False. |
profile_name | AWS CLI Profile Name. | |
region | AWS region. Defaults to AWS_REGION or us-east-1. | |
stop_connected_entity | Connected entity to stop. Valid values: 'DBMS'. |
list_config_check_definitions
List all configuration check types and their metadata offered by SSM for SAP. Use this to discover which configuration checks are available before running them. Args: ctx: MCP context object. region: AWS region. profile_name: AWS CLI profile name. Returns: List of ConfigCheckDefinition with check IDs and descriptions.
| Parameter | Type | Description |
|---|---|---|
profile_name | AWS CLI Profile Name. | |
region | AWS region. Defaults to AWS_REGION or us-east-1. |
start_config_checks
Trigger configuration checks against a specified SSM for SAP application. Args: ctx: MCP context object. application_id: The application ID. check_ids: List of check IDs to run. region: AWS region. profile_name: AWS CLI profile name. Returns: StartConfigChecksResponse with initiated operation details.
| Parameter | Type | Description |
|---|---|---|
application_id * | string | The unique identifier of the SAP application. |
check_ids * | array | List of configuration check IDs to run (e.g., ["SAP_CHECK_01"]). Use list_config_check_definitions to discover available checks. |
profile_name | AWS CLI Profile Name. | |
region | AWS region. Defaults to AWS_REGION or us-east-1. |
get_config_check_summary
Get a comprehensive summary of the latest configuration check results. Lists the most recent result for each configuration check type, with optional subcheck details. Args: ctx: MCP context object. application_id: The application ID. include_subchecks: Whether to include subcheck details. region: AWS region. profile_name: AWS CLI profile name. Returns: ConfigCheckSummary with check results and counts.
| Parameter | Type | Description |
|---|---|---|
application_id * | string | The unique identifier of the SAP application. |
include_subchecks | boolean | Whether to include subcheck details. Default: True. |
profile_name | AWS CLI Profile Name. | |
region | AWS region. Defaults to AWS_REGION or us-east-1. |
get_config_check_operation
Get the details of a specific configuration check operation. Args: ctx: MCP context object. operation_id: The operation ID. region: AWS region. profile_name: AWS CLI profile name. Returns: Dictionary with configuration check operation details.
| Parameter | Type | Description |
|---|---|---|
operation_id * | string | The unique identifier of the configuration check operation. |
profile_name | AWS CLI Profile Name. | |
region | AWS region. Defaults to AWS_REGION or us-east-1. |
list_sub_check_results
List the sub-check results for a specific configuration check operation. Args: ctx: MCP context object. operation_id: The operation ID. region: AWS region. profile_name: AWS CLI profile name. Returns: List of SubCheckResult with sub-check details.
| Parameter | Type | Description |
|---|---|---|
operation_id * | string | The unique identifier of the configuration check operation. |
profile_name | AWS CLI Profile Name. | |
region | AWS region. Defaults to AWS_REGION or us-east-1. |
list_sub_check_rule_results
List the rule evaluation results for a specific sub-check. Args: ctx: MCP context object. subcheck_result_id: The sub-check result ID. region: AWS region. profile_name: AWS CLI profile name. Returns: List of rule result dictionaries.
| Parameter | Type | Description |
|---|---|---|
subcheck_result_id * | string | The unique identifier of the sub-check result. |
profile_name | AWS CLI Profile Name. | |
region | AWS region. Defaults to AWS_REGION or us-east-1. |
schedule_config_checks
Schedule recurring configuration checks using Amazon EventBridge Scheduler. Creates an EventBridge schedule that periodically triggers SSM for SAP configuration checks against the specified application. Args: ctx: MCP context object. application_id: The application ID. schedule_expression: Rate or cron expression. check_ids: Optional specific check IDs. schedule_name: Optional custom schedule name. timezone_str: Timezone for cron expressions. region: AWS region. profile_nam…
| Parameter | Type | Description |
|---|---|---|
application_id * | string | The unique identifier of the SAP application. |
schedule_expression * | string | Schedule expression. Examples: "rate(7 days)", "cron(0 9 ? * MON *)". |
check_ids | Optional list of specific configuration check IDs to run. | |
profile_name | AWS CLI Profile Name. | |
region | AWS region. Defaults to AWS_REGION or us-east-1. | |
schedule_name | Optional custom name for the schedule. Auto-generated if not provided. | |
timezone_str | Timezone for cron expressions (e.g., "America/New_York"). Default: UTC. |
schedule_start_application
Schedule automatic start of an SAP application using EventBridge Scheduler. Useful for starting SAP systems at the beginning of business hours or cost optimization by starting dev/test systems only when needed. Args: ctx: MCP context object. application_id: The application ID. schedule_expression: Rate or cron expression. schedule_name: Optional custom schedule name. description: Optional description. start_date: Optional start date (ISO format). end_date: Optional end date (ISO format…
| Parameter | Type | Description |
|---|---|---|
application_id * | string | The unique identifier of the SAP application to start. |
schedule_expression * | string | Schedule expression. Examples: "cron(0 8 ? * MON-FRI *)" for weekdays at 8 AM, "rate(12 hours)". |
description | Optional description for the schedule. | |
end_date | Optional end date in ISO format. | |
profile_name | AWS CLI Profile Name. | |
region | AWS region. Defaults to AWS_REGION or us-east-1. | |
schedule_name | Optional custom name. Auto-generated if not provided. | |
start_date | Optional start date in ISO format (e.g., "2026-01-15T00:00:00Z"). | |
timezone_str | Timezone for cron expressions. Default: UTC. |
schedule_stop_application
Schedule automatic stop of an SAP application using EventBridge Scheduler. Useful for stopping SAP systems at end of business hours or cost optimization by stopping dev/test systems overnight/weekends. Args: ctx: MCP context object. application_id: The application ID. schedule_expression: Rate or cron expression. include_ec2_instance_shutdown: Whether to also shutdown EC2 instances. stop_connected_entity: Connected entity to stop (e.g., 'DBMS'). schedule_name: Optional custom schedule name.…
| Parameter | Type | Description |
|---|---|---|
application_id * | string | The unique identifier of the SAP application to stop. |
schedule_expression * | string | Schedule expression. Examples: "cron(0 20 ? * MON-FRI *)" for weekdays at 8 PM. |
description | Optional description for the schedule. | |
end_date | Optional end date in ISO format. | |
include_ec2_instance_shutdown | boolean | If True, also shutdown EC2 instances. Default: False. |
profile_name | AWS CLI Profile Name. | |
region | AWS region. Defaults to AWS_REGION or us-east-1. | |
schedule_name | Optional custom name. Auto-generated if not provided. | |
start_date | Optional start date in ISO format. | |
stop_connected_entity | Connected entity to stop. Valid values: 'DBMS'. | |
timezone_str | Timezone for cron expressions. Default: UTC. |
list_app_schedules
List all EventBridge Scheduler schedules for a specific SAP application. Scans all schedules and filters to those targeting the given application ID. Args: ctx: MCP context object. application_id: The application ID. include_disabled: Whether to include disabled schedules. region: AWS region. profile_name: AWS CLI profile name. Returns: ListSchedulesResponse with matching schedules.
| Parameter | Type | Description |
|---|---|---|
application_id * | string | The unique identifier of the SAP application. |
include_disabled | boolean | If True, include disabled schedules. Default: True. |
profile_name | AWS CLI Profile Name. | |
region | AWS region. Defaults to AWS_REGION or us-east-1. |
delete_schedule
Delete an EventBridge Scheduler schedule. Args: ctx: MCP context object. schedule_name: The schedule name. region: AWS region. profile_name: AWS CLI profile name. Returns: DeleteScheduleResponse with deletion status.
| Parameter | Type | Description |
|---|---|---|
schedule_name * | string | The name of the schedule to delete. |
profile_name | AWS CLI Profile Name. | |
region | AWS region. Defaults to AWS_REGION or us-east-1. |
update_schedule_state
Enable or disable an EventBridge Scheduler schedule. Args: ctx: MCP context object. schedule_name: The schedule name. enabled: True to enable, False to disable. region: AWS region. profile_name: AWS CLI profile name. Returns: UpdateScheduleStateResponse with new state.
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | True to enable, False to disable. |
schedule_name * | string | The name of the schedule to update. |
profile_name | AWS CLI Profile Name. | |
region | AWS region. Defaults to AWS_REGION or us-east-1. |
get_schedule_details
Get detailed information about a specific EventBridge Scheduler schedule. Args: ctx: MCP context object. schedule_name: The schedule name. region: AWS region. profile_name: AWS CLI profile name. Returns: Dictionary with full schedule details including target, expression, and state.
| Parameter | Type | Description |
|---|---|---|
schedule_name * | string | The name of the schedule to retrieve. |
profile_name | AWS CLI Profile Name. | |
region | AWS region. Defaults to AWS_REGION or us-east-1. |
get_sap_health_summary
Get comprehensive health summary for SAP systems managed by SSM for SAP. Returns structured per-application health data including: - Application and discovery status - Component details with EC2 instance IDs - Configuration check results (auto-triggers checks if none recent) - HANA log backup status via SSM agent - AWS Backup status for SAP HANA instances - CloudWatch metrics (CPU, status checks) for EC2 instances - Overall health verdict Use generate_health_report for a detailed, downloadable Markdown report. A…
| Parameter | Type | Description |
|---|---|---|
application_id | Optional specific application ID. If not provided, checks all applications. | |
auto_trigger_config_checks | boolean | Automatically trigger config checks if no recent results exist. Default: True. |
config_check_max_age_hours | integer | Max age in hours for config check results before auto-triggering. Default: 24. |
include_aws_backup_status | boolean | Include AWS Backup status for SAP HANA. Default: True. |
include_cloudwatch_metrics | boolean | Include CloudWatch metrics for EC2 instances. Default: True. |
include_config_checks | boolean | Include configuration check results. Default: True. |
include_log_backup_status | boolean | Include HANA log backup status via SSM. Default: True. |
include_rule_results | boolean | Include rule-level results within sub-checks. Default: True. |
include_subchecks | boolean | Include sub-check details within config checks. Default: True. |
profile_name | AWS CLI Profile Name. Falls back to AWS_PROFILE env var. | |
region | AWS region. Defaults to AWS_REGION environment variable or us-east-1. |
generate_health_report
Generate a detailed, downloadable health report for SAP systems managed by SSM for SAP. Produces a comprehensive Markdown-formatted report covering: - Discovery status (SUCCESS | REGISTRATION_FAILED | REFRESH_FAILED | REGISTERING | DELETING) - Application status (ACTIVATED | STARTING | STOPPED | STOPPING | FAILED | REGISTERING | DELETING | UNKNOWN) - Component status with host details - Configuration checks with subchecks and rule results (optional) - HANA Log Backup status via SSM agent (optional) - AWS Backup status for SAP HANA (optio…
| Parameter | Type | Description |
|---|---|---|
application_id | Optional specific application ID. If not provided, checks all applications. | |
include_aws_backup_status | boolean | Include AWS Backup status for SAP HANA. Default: True. |
include_cloudwatch_metrics | boolean | Include CloudWatch metrics for EC2 instances. Default: True. |
include_config_checks | boolean | Include configuration check results. Default: True. |
include_log_backup_status | boolean | Include HANA log backup status via SSM. Default: True. |
include_rule_results | boolean | Include rule-level results within sub-checks. Default: True. |
include_subchecks | boolean | Include sub-check details within config checks. Default: True. |
profile_name | AWS CLI Profile Name. Falls back to AWS_PROFILE env var. | |
region | AWS region. Defaults to AWS_REGION environment variable or us-east-1. |