/postgresql | Type: Application | PCID required: Yes
SQL queries and schema management
Tools
| Tool | Description |
|---|---|
postgresql_execute_query | Execute a SQL query on PostgreSQL database |
postgresql_select_data | Select data from a PostgreSQL table |
postgresql_insert_data | Insert data into a PostgreSQL table |
postgresql_update_data | Update data in a PostgreSQL table |
postgresql_delete_data | Delete data from a PostgreSQL table |
postgresql_describe_table | Get table structure and column information |
postgresql_list_tables | List all tables in the database |
postgresql_create_table | Create a new table in PostgreSQL |
postgresql_execute_query
Execute a SQL query on PostgreSQL database Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | — | SQL query to execute |
parameters | string[] | No | — | Query parameters for parameterized queries |
postgresql_select_data
Select data from a PostgreSQL table Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
table | string | Yes | — | Table name |
columns | string[] | No | — | Columns to select (defaults to all) |
where | string | No | — | WHERE clause conditions |
whereParams | string[] | No | — | Parameters for WHERE clause |
orderBy | string | No | — | ORDER BY clause |
limit | number | No | — | LIMIT number of results |
offset | number | No | — | OFFSET for pagination |
postgresql_insert_data
Insert data into a PostgreSQL table Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
table | string | Yes | — | Table name |
data | object | Yes | — | Data to insert as key-value pairs (supports nested objects and arrays for JSON/JSONB columns) |
postgresql_update_data
Update data in a PostgreSQL table Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
table | string | Yes | — | Table name |
data | object | Yes | — | Data to update as key-value pairs (supports nested objects and arrays for JSON/JSONB columns) |
where | string | Yes | — | WHERE clause |
whereParams | string[] | No | — | Parameters for WHERE clause |
postgresql_delete_data
Delete data from a PostgreSQL table Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
table | string | Yes | — | Table name |
where | string | Yes | — | WHERE clause to identify rows to delete |
whereParams | string[] | No | — | Parameters for WHERE clause |
postgresql_describe_table
Get table structure and column information Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
table | string | Yes | — | Table name to describe |
postgresql_list_tables
List all tables in the databasepostgresql_create_table
Create a new table in PostgreSQL Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
tableName | string | Yes | — | Name of the table to create |
columns | object[] | Yes | — | Table column definitions |

