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

# Perplexity

> Agentic Search

## Description

Enable your agent to perform queries directly on a database

<Note>
  There is no built-in sandboxing using this tool. Agents may perform destructive queries that may be irreversible.
</Note>

## Installation

```bash theme={null}
agentstack tools add sql
```

Set the API keys

```env theme={null}
POSTGRES_DB=...
POSTGRES_USER=...
POSTGRES_PASSWORD=...
POSTGRES_HOST=...
POSTGRES_PORT=...
```
