Skip to main content
Glama

AWS‑IReveal‑MCP

athena_create_cloudtrail_table

Create an Athena table with partition projection for querying CloudTrail logs. Requires CloudTrail S3 bucket, account details, and an output bucket for query results.

Instructions

Create an Athena table for CloudTrail logs with partition projection.

<IMPORTANT>
Before using this tool ask the user for OUTPUT bucket, unless it is provided.
This is necessary to create the table correctly. If the API fails, interrupt the process and ask the user for the OUTPUT BUCKET.
</IMPORTANT>

Parameters:
  cloudtrail_bucket (str): The S3 bucket for CloudTrail logs - you can retrieve it using the 'cloudtrail_describe_trails' tool.
  is_org_trail (bool): Indicates if the trail is for the organization.
  account_id (str): Your AWS account ID - you can retrieve it.
  output_bucket (str): Ask the user if not specified, S3 bucket URI (e.g. 's3://my-athena-query-results/') for query results - different from cloudtrail_bucket.
  output_region (str): The AWS region for the output bucket - use 'us-east-1' if not specified.
  partition_region (str): The region of the events to be queried. It is used to create the S3 path for the Athena table.
  database (str): Athena database name to be used.

Returns:
  str: An empty result if successful, or an error message if there was an issue.

Input Schema

NameRequiredDescriptionDefault
account_idYes
cloudtrail_bucketYes
databaseNodefault
is_org_trailYes
output_bucketYes
output_regionYes
partition_regionYes

Input Schema (JSON Schema)

{ "properties": { "account_id": { "title": "Account Id", "type": "string" }, "cloudtrail_bucket": { "title": "Cloudtrail Bucket", "type": "string" }, "database": { "default": "default", "title": "Database", "type": "string" }, "is_org_trail": { "title": "Is Org Trail", "type": "boolean" }, "output_bucket": { "title": "Output Bucket", "type": "string" }, "output_region": { "title": "Output Region", "type": "string" }, "partition_region": { "title": "Partition Region", "type": "string" } }, "required": [ "cloudtrail_bucket", "is_org_trail", "account_id", "output_bucket", "output_region", "partition_region" ], "title": "athena_create_cloudtrail_tableArguments", "type": "object" }

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/Brucedh/aws-ireveal-mcp'

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