pare-db
v0.24.2Pare DB — Structured database CLI operations (psql, mysql, redis-cli, mongosh) as typed JSON.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
psql-query PostgreSQL Query
Executes a PostgreSQL query via psql and returns structured tabular output. WARNING: The query is executed as-is against the target database — do not pass untrusted input.
| Parameter | Type | Description |
|---|---|---|
query * | string | SQL query to execute |
compact | boolean | Prefer compact output |
database | string | Database name to connect to |
host | string | Database host |
port | number | Database port (default: 5432) |
user | string | Database user |
psql-list-databases PostgreSQL List Databases
Lists all PostgreSQL databases via psql with owner, encoding, and size info.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
host | string | Database host |
port | number | Database port (default: 5432) |
user | string | Database user |
mysql-query MySQL Query
Executes a MySQL query and returns structured tabular output. WARNING: The query is executed as-is against the target database — do not pass untrusted input.
| Parameter | Type | Description |
|---|---|---|
query * | string | SQL query to execute |
compact | boolean | Prefer compact output |
database | string | Database name to connect to |
host | string | Database host |
port | number | Database port (default: 3306) |
user | string | Database user |
mysql-list-databases MySQL List Databases
Lists all MySQL databases with structured output.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
host | string | Database host |
port | number | Database port (default: 3306) |
user | string | Database user |
redis-ping Redis Ping
Tests Redis connectivity by sending a PING command.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
host | string | Redis host |
password | string | Redis password (AUTH) |
port | number | Redis port (default: 6379) |
redis-info Redis Info
Gets Redis server info with structured sections (server, clients, memory, etc.).
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
host | string | Redis host |
password | string | Redis password (AUTH) |
port | number | Redis port (default: 6379) |
section | string | Specific info section to retrieve (e.g., server, clients, memory, stats) |
redis-command Redis Command
Executes a Redis command via redis-cli and returns the response. WARNING: The command is executed as-is — do not pass untrusted input.
| Parameter | Type | Description |
|---|---|---|
command * | string | Redis command to execute (e.g., GET, SET, KEYS, DBSIZE) |
args | array | Arguments for the Redis command |
compact | boolean | Prefer compact output |
db | number | Redis database number |
host | string | Redis host |
password | string | Redis password (AUTH) |
port | number | Redis port (default: 6379) |
mongosh-eval MongoDB Eval
Evaluates a MongoDB expression via mongosh and returns the output. WARNING: The expression is executed as-is — do not pass untrusted input.
| Parameter | Type | Description |
|---|---|---|
expression * | string | JavaScript expression to evaluate in mongosh |
compact | boolean | Prefer compact output |
uri | string | MongoDB connection URI (e.g., mongodb://localhost:27017/mydb) |
mongosh-stats MongoDB Stats
Gets MongoDB database statistics (collections, objects, data size, storage, indexes) via mongosh.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
uri | string | MongoDB connection URI (e.g., mongodb://localhost:27017/mydb) |