> ## 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.

## 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=...
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.