create_table_from_data
Create a SQLite table from your data and insert all rows immediately. Automatically infers column names and types from the first record, overwriting any existing table to store API data in one step.
Instructions
Creates a new SQLite table from the provided data AND immediately inserts all rows. Infers column names and types from the first item in the data list. WARNING: Overwrites the table if it already exists.
Use this as a single step to store fetched API data — no need to call insert_data_into_table afterwards. Use insert_data_into_table only to append more rows to an already-existing table.
Args: table_input: Object containing table_name and data (list of dicts).
Returns: Dict[str, Any]: A summary with table name, columns created, and rows inserted.
IMPORTANT: The database is persistent and does NOT clean itself automatically. This tool overwrites the table if it exists, giving you a clean slate each call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Data to insert, as a list of dictionaries. | |
| table_name | Yes | Name for the SQL table (alphanumeric and underscores recommended). |