create_table
Create a new PostgreSQL table by supplying a table name and a set of columns with their data types and constraints, such as primary keys and defaults.
Instructions
Create a table with custom columns.
Example: table_name = "users" columns = { "id": "SERIAL PRIMARY KEY", "name": "TEXT NOT NULL", "age": "INT", "created_at": "TIMESTAMP DEFAULT CURRENT_TIMESTAMP" }
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"table_name": "<table_name>",
"columns": "<columns>"
},
"name": "create_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| columns | Yes | ||
| table_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |