Skip to content

API Reference parrot_tools.aws.rds

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.aws.rds

View source

AWS RDS Toolkit for AI-Parrot.

Provides inspection and management of RDS instances, snapshots, logs, events, and Performance Insights.

Alias AbstractToolkit

Re-exported from parrot_tools.toolkit.AbstractToolkit.

Class CreateSnapshotInput

Input for creating a manual DB snapshot.

Fields:

Field Type Default Description
instance_identifier str RDS instance identifier to snapshot
snapshot_identifier str Name for the new DB snapshot
tags Optional[Dict[str, str]] Tags to assign to the snapshot

Class DescribeEventsInput

Input for listing RDS operational events.

Fields:

Field Type Default Description
source_identifier Optional[str] Instance or cluster identifier to filter events
source_type str Source type: db-instance, db-cluster, db-parameter-group, db-security-group, db-snapshot
duration_minutes int How far back to look in minutes (default 1440 = 24h, max ~14 days)
event_categories Optional[List[str]] Filter by event categories (e.g. ['availability', 'failure', 'notification'])
limit int Maximum number of events to return

Class DownloadLogFilteredInput

Input for downloading and filtering RDS log file content by severity.

Fields:

Field Type Default Description
instance_identifier str RDS instance identifier
log_file_name str Log file name from list_log_files (e.g. 'error/postgresql.log.2026-02-16-18')
severity_filter Optional[str] Raw case-insensitive regex applied per line on LogFileData (e.g. r'ERROR|FATAL'). If set, overrides severity_levels.
severity_levels Optional[List[str]] Convenience list of severity tokens (e.g. ['ERROR','WARNING','FATAL']). Converted to a case-insensitive word-bounded regex when severity_filter is not provided.
marker Optional[str] Pagination marker for large log files
number_of_lines int Maximum number of lines to download before filtering

Class DownloadLogInput

Input for downloading RDS log file content.

Fields:

Field Type Default Description
instance_identifier str RDS instance identifier
log_file_name str Log file name from list_log_files (e.g. 'error/postgresql.log.2026-02-16-18')
marker Optional[str] Pagination marker for large log files
number_of_lines int Maximum number of lines to download

Class GetInstanceDetailsInput

Input for getting RDS instance details.

Fields:

Field Type Default Description
instance_identifier str RDS instance identifier

Class ListInstancesInput

Input for listing RDS instances.

Fields:

Field Type Default Description
limit int Maximum number of instances to return (AWS allows 20-100)
next_token Optional[str] Pagination token from a previous response

Class ListLogFilesInput

Input for listing available DB log files.

Fields:

Field Type Default Description
instance_identifier str RDS instance identifier
filename_contains Optional[str] Filter log files by filename substring (e.g. 'slowquery', 'error', 'postgresql')
last_written_after Optional[int] Only return files written after this POSIX timestamp (milliseconds)
limit int Maximum number of log files to return

Class ListSnapshotsInput

Input for listing RDS snapshots.

Fields:

Field Type Default Description
instance_identifier Optional[str] Filter snapshots by instance identifier
snapshot_type Optional[str] Filter by snapshot type (automated, manual, shared, public, awsbackup)
limit int Maximum number of snapshots to return (AWS allows 20-100)
next_token Optional[str] Pagination token from a previous response

Class PerformanceInsightsInput

Input for fetching Performance Insights metrics.

Fields:

Field Type Default Description
instance_identifier str RDS instance identifier (PI must be enabled on this instance)
metric_queries Optional[List[str]] Metric types to query (defaults to ['db.load.avg'])
start_time str Start time (ISO format or relative like '-1h', '-30m', '-7d')
end_time str End time (ISO format or 'now')
period_seconds int Period in seconds for data points

Class RDSToolkit

Toolkit for managing AWS RDS instances, snapshots, logs, and diagnostics.

Each public method is exposed as a separate tool with the aws_rds_ prefix.

Available Operations:

  • aws_rds_list_instances: List RDS instances
  • aws_rds_get_instance_details: Get instance details
  • aws_rds_start_instance: Start an RDS instance
  • aws_rds_stop_instance: Stop an RDS instance
  • aws_rds_reboot_instance: Reboot an RDS instance
  • aws_rds_list_snapshots: List DB snapshots
  • aws_rds_create_snapshot: Create a manual DB snapshot
  • aws_rds_list_log_files: List available DB log files
  • aws_rds_download_log: Download DB log file content
  • aws_rds_download_log_filtered: Download log content filtered by severity (ERROR/WARN/...)
  • aws_rds_describe_events: List RDS operational events/alerts
  • aws_rds_get_logs: Alias for aws_rds_describe_events
  • aws_rds_get_performance_insights: Fetch PI metrics (blocking queries, waits)
Parameter Type Default Description
aws_id str 'default'
region_name Optional[str] None
**kwargs {}

Method RDSToolkit.aws_rds_list_instances

List RDS instances with pagination.

aws_rds_list_instances(limit: int = 100, next_token: Optional[str] = None) -> Dict[str, Any]

Parameter Type Default Description
limit int 100
next_token Optional[str] None

Returns: Dict[str, Any]

Method RDSToolkit.aws_rds_get_instance_details

Get detailed information about a specific RDS instance.

aws_rds_get_instance_details(instance_identifier: str) -> Dict[str, Any]

Parameter Type Default Description
instance_identifier str

Returns: Dict[str, Any]

Method RDSToolkit.aws_rds_start_instance

Start a stopped RDS instance.

aws_rds_start_instance(instance_identifier: str) -> Dict[str, Any]

Parameter Type Default Description
instance_identifier str

Returns: Dict[str, Any]

Method RDSToolkit.aws_rds_stop_instance

Stop a running RDS instance.

aws_rds_stop_instance(instance_identifier: str, snapshot_identifier: Optional[str] = None) -> Dict[str, Any]

Parameter Type Default Description
instance_identifier str
snapshot_identifier Optional[str] None

Returns: Dict[str, Any]

Method RDSToolkit.aws_rds_reboot_instance

Reboot an RDS instance.

aws_rds_reboot_instance(instance_identifier: str, force_failover: bool = False) -> Dict[str, Any]

Parameter Type Default Description
instance_identifier str
force_failover bool False

Returns: Dict[str, Any]

Method RDSToolkit.aws_rds_list_snapshots

List RDS snapshots with optional filtering.

aws_rds_list_snapshots(instance_identifier: Optional[str] = None, snapshot_type: Optional[str] = None, limit: int = 100, next_token: Optional[str] = None) -> Dict[str, Any]

Parameter Type Default Description
instance_identifier Optional[str] None
snapshot_type Optional[str] None
limit int 100
next_token Optional[str] None

Returns: Dict[str, Any]

Method RDSToolkit.aws_rds_create_snapshot

Create a manual DB snapshot.

aws_rds_create_snapshot(instance_identifier: str, snapshot_identifier: str, tags: Optional[Dict[str, str]] = None) -> Dict[str, Any]

Parameter Type Default Description
instance_identifier str
snapshot_identifier str
tags Optional[Dict[str, str]] None

Returns: Dict[str, Any]

Method RDSToolkit.aws_rds_list_log_files

List available DB log files for an RDS instance.

aws_rds_list_log_files(instance_identifier: str, filename_contains: Optional[str] = None, last_written_after: Optional[int] = None, limit: int = 100) -> Dict[str, Any]

Parameter Type Default Description
instance_identifier str
filename_contains Optional[str] None
last_written_after Optional[int] None
limit int 100

Returns: Dict[str, Any]

Method RDSToolkit.aws_rds_download_log

Download a portion of an RDS log file.

aws_rds_download_log(instance_identifier: str, log_file_name: str, marker: Optional[str] = None, number_of_lines: int = 500) -> Dict[str, Any]

Parameter Type Default Description
instance_identifier str
log_file_name str
marker Optional[str] None
number_of_lines int 500

Returns: Dict[str, Any]

Method RDSToolkit.aws_rds_download_log_filtered

Download a portion of an RDS log file and keep only lines matching a severity pattern.

Useful for fishing out ERROR/WARNING/FATAL lines without parsing the full log client-side. If neither severity_filter nor severity_levels is provided, defaults to common error severities across PostgreSQL/MySQL/SQL Server engines.

aws_rds_download_log_filtered(instance_identifier: str, log_file_name: str, severity_filter: Optional[str] = None, severity_levels: Optional[List[str]] = None, marker: Optional[str] = None, number_of_lines: int = 500) -> Dict[str, Any]

Parameter Type Default Description
instance_identifier str
log_file_name str
severity_filter Optional[str] None
severity_levels Optional[List[str]] None
marker Optional[str] None
number_of_lines int 500

Returns: Dict[str, Any]

Method RDSToolkit.aws_rds_describe_events

List RDS operational events and alerts.

aws_rds_describe_events(source_identifier: Optional[str] = None, source_type: str = 'db-instance', duration_minutes: int = 1440, event_categories: Optional[List[str]] = None, limit: int = 100) -> Dict[str, Any]

Parameter Type Default Description
source_identifier Optional[str] None
source_type str 'db-instance'
duration_minutes int 1440
event_categories Optional[List[str]] None
limit int 100

Returns: Dict[str, Any]

Method RDSToolkit.aws_rds_get_logs

Alias for aws_rds_describe_events — list RDS operational events/alerts.

aws_rds_get_logs(source_identifier: Optional[str] = None, source_type: str = 'db-instance', duration_minutes: int = 1440, event_categories: Optional[List[str]] = None, limit: int = 100) -> Dict[str, Any]

Parameter Type Default Description
source_identifier Optional[str] None
source_type str 'db-instance'
duration_minutes int 1440
event_categories Optional[List[str]] None
limit int 100

Returns: Dict[str, Any]

Method RDSToolkit.aws_rds_get_performance_insights

Fetch Performance Insights metrics for blocking queries and wait events.

aws_rds_get_performance_insights(instance_identifier: str, metric_queries: Optional[List[str]] = None, start_time: str = '-1h', end_time: str = 'now', period_seconds: int = 60) -> Dict[str, Any]

Parameter Type Default Description
instance_identifier str
metric_queries Optional[List[str]] None
start_time str '-1h'
end_time str 'now'
period_seconds int 60

Returns: Dict[str, Any]

Class RebootInstanceInput

Input for rebooting an RDS instance.

Fields:

Field Type Default Description
instance_identifier str RDS instance identifier to reboot
force_failover bool Whether to force a failover (for Multi-AZ instances)

Class StartInstanceInput

Input for starting an RDS instance.

Fields:

Field Type Default Description
instance_identifier str RDS instance identifier to start

Class StopInstanceInput

Input for stopping an RDS instance.

Fields:

Field Type Default Description
instance_identifier str RDS instance identifier to stop
snapshot_identifier Optional[str] Name of the DB snapshot to create before stopping

Alias tool_schema

Re-exported from parrot_tools.decorators.tool_schema.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally