# Create Table Tool

Creates a new Feather table.

## When to Use

Use this tool when workspace data needs durable tabular storage. An initial schema can be supplied with `columns`, and schema can be altered later with `modify_table_schema` or table UI column editing.

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | No | Slug in kebab-case, for example `weekly-metrics`. Derived from `name` when omitted. |
| `name` | string | No | Display name. Supply this instead of `id` to have the slug derived from it; a request naming neither is refused. |
| `id_format` | string | Yes | Row ID type: `string` or `number`. Generated string IDs are ULIDs. Generated numeric IDs are sequential. |
| `columns` | array | No | Optional initial columns, each `{ name, column_type, nullable, indexed, description }`. `column_type` is tagged by `kind`: `text`, `long_text`, `block`, `json`, `select` (with `options`), `resource` (with `resource`), `integer`, `decimal`, `boolean`, `date`, `date_time`, `list` (with `element`), `object` (with `fields`), `tool_group` (with `surface`). `indexed` defaults to `true`, and may be `false` only on a top-level column stored outside JSON: an index speeds up `eq` and `in` filters on the column, and range filters and sorts on number and date columns (not text sorts or text ranges), at a storage and write cost; indexes are built in the background shortly after the table is created. Include `id` only when its type matches `id_format`. |

## Returns

| Field | Type | Description |
|-------|------|-------------|
| `success` | boolean | Whether the creation succeeded |
| `table_id` | string | The table identifier |
| `id_format` | string | Configured row ID format |
| `columns` | array | Initial schema columns, usually empty |
| `public_url` | string | URL to the created table |

## Example

Create a table and let the first JSON import define the schema:

```json
{
  "id": "website-metrics",
  "id_format": "number"
}
```

## Notes

- Tables start with no user columns unless `columns` is supplied.
- Insert can supply `id`, or omit it and let the table generate one.
- Use string row IDs when callers need deterministic keys, such as Discord message IDs, Notion document IDs, webhook IDs, or compound session keys.
- Use numeric row IDs for append-style tables where callers do not need to know the ID before insert.
- Row writes do not create columns.
- JSON import into an empty table can infer and persist the first schema if field types do not conflict.
- After a schema exists, inserts and upserts must match it.
- Use `modify_table_schema` or the table UI add-column control before writing new columns.
- Pick the narrowest column type that fits: a `select` teaches a caller its allowed values, where free `text` does not. Load the `tables` skill for the judgement.
