Execute AWS CLI Command
call_awsRun AWS CLI commands with built-in validation and error handling to manage cloud resources like EC2, S3, Lambda, and more.
Instructions
Execute AWS CLI commands with validation and error handling.
This is the primary tool for executing AWS CLI commands. Use this when you know the specific AWS service and operation you want to perform.
Key points:
Commands MUST start with "aws" and follow AWS CLI syntax
Default region: us-east-1 (override with --region parameter)
Working directory: /tmp/aws-mcp-work
Use absolute paths for files
Command restrictions:
DO NOT use shell pipes (|), redirects (>, >>, <), or command substitution ($())
DO NOT use shell variables or environment variables
DO NOT use relative paths for file operations
Examples:
"aws ec2 describe-instances" - List EC2 instances
"aws s3 ls" - List S3 buckets
"aws lambda list-functions" - List Lambda functions
"aws iam list-users" - List IAM users
"aws cloudwatch describe-alarms" - List CloudWatch alarms
Returns: Dictionary with success status, output data, and error information
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cli_command | Yes | The complete AWS CLI command to execute. MUST start with 'aws' | |
| max_results | No | Optional limit for number of results (useful for pagination) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||