table_create
Create a new data table in the workspace.
Do not use data tables for standard finance objects: vendor, customer, employee, subsidiary, gl_account, expense_category, ledger_entry, invoice, invoice_line, credit_note, payment, bill, bill_line, purchase_order, po_line, receipt_note, receipt_note_line. These are Business Context entity types stored in the standard tables that reports (report_query, e.g. billing_overview) read. Write them with a workflow that uses an entity_write step (batch mode: name, data and externalId as arrays) with that entityType. Use data tables only for other, custom data.
Accepts a table name and an array of column definitions, executes CREATE TABLE in the tenant's workspace PostgreSQL schema, and registers the table in the catalog.
Auto-managed columns (id, created_at, updated_at) are always added — do not include them.
Allowed pgType values: text, integer, bigint, numeric, boolean, timestamptz, date, uuid, jsonb
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": {
"tableName": "<tableName>"
},
"name": "table_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| columns | No | JSON array of column definitions. Each entry: {"name":"col","pgType":"text","isNullable":true,"defaultExpr":"now()"}. isNullable defaults to true. defaultExpr is optional. | |
| tableName | Yes | Table name — lowercase letters, digits and underscores only, max 63 chars (e.g. "invoices", "ap_lines") |