SQL
v0.1.0Read-only SQL querying + schema introspection over Postgres & SQLite, with a gated write mode.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_connections List connections
Configured database connections (name + type). No credentials are returned.
list_schemas List schemas
Schemas available in a connection (SQLite returns 'main').
| Parameter | Type | Description |
|---|---|---|
connection * | string | Configured connection name (see list_connections) |
list_tables List tables
Tables and views in a schema.
| Parameter | Type | Description |
|---|---|---|
connection * | string | Configured connection name (see list_connections) |
schema | string |
describe_table Describe table
Columns (type/nullable/default), primary key, foreign keys, and indexes for a table.
| Parameter | Type | Description |
|---|---|---|
connection * | string | Configured connection name (see list_connections) |
table * | string | |
schema | string |
list_indexes List indexes
Indexes on a table (name, columns, uniqueness).
| Parameter | Type | Description |
|---|---|---|
connection * | string | Configured connection name (see list_connections) |
table * | string | |
schema | string |
relationships Relationships
Foreign-key relationships in a schema (from table.column → to table.column).
| Parameter | Type | Description |
|---|---|---|
connection * | string | Configured connection name (see list_connections) |
schema | string |
query Run query
Run a read-only SELECT (only SELECT/WITH/VALUES). Use positional params. Results are row/cell-capped.
| Parameter | Type | Description |
|---|---|---|
connection * | string | Configured connection name (see list_connections) |
sql * | string | |
params | array | Positional bind parameters |
explain Explain query
Query plan for a SELECT (the server prepends EXPLAIN; no query is executed).
| Parameter | Type | Description |
|---|---|---|
connection * | string | Configured connection name (see list_connections) |
sql * | string | |
params | array | Positional bind parameters |
sample_table Sample table
Return up to `limit` rows from a table (SELECT * … LIMIT).
| Parameter | Type | Description |
|---|---|---|
connection * | string | Configured connection name (see list_connections) |
table * | string | |
limit | integer | |
schema | string |