> ## Documentation Index
> Fetch the complete documentation index at: https://docs.danubeai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AWS SQS

> Let agents check queue depth, message age and dead-letter queues without touching a message

The SQS connector answers "is this queue backing up, and where do failed messages go" without reading, sending or deleting a message. Setup and the IAM policy are on the [AWS page](/connectors/aws#sqs).

## Tools

| Tool                        | What it returns                                                                                                                                                                         |
| --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Test Connection**         | The AWS account and identity, and whether it may list queues                                                                                                                            |
| **List Queues**             | Queue names and URLs, by prefix                                                                                                                                                         |
| **Queue Attributes**        | Visible, in-flight and delayed message counts, the age of the oldest message (CloudWatch `ApproximateAgeOfOldestMessage`), visibility timeout, retention, encryption and redrive policy |
| **Dead Letter Queue Depth** | For a queue: its dead-letter queue and how many messages are in it. For a dead-letter queue: its depth and the source queues that feed it                                               |

Queues can be named by name, URL or ARN.

## Safety

* No tool receives a message: `ReceiveMessage` would hide it from your consumers for the visibility timeout. No tool sends or deletes one either.
* Counts are approximate, as SQS reports them.

## Example prompts

* "How deep is `orders` and how old is its oldest message?"
* "Are messages piling up in the dead-letter queue for `orders`?"
* "Which queues send failed messages to `payments-dlq`?"
