Query and change Data tables and records
databaseLists, creates, or deletes tables and lists, polls, gets, creates, batch-creates, updates, or deletes records on one Data project this account owns. Actions are list_tables, create_table, delete_table, list_records, list_changes, get_record, create_record, update_record, and delete_record. Use database for tables and records. Use files for private file bytes, export for a JSON snapshot, and project for Studio or Mobile source. list_records applies filter, search, and order to the latest 250 rows. list_changes polls rows updated after since. create_record takes one data object or a records batch of 1 to 250. Field changes stay in the Data app. This is not a websocket, Supabase Realtime, Auth, or Edge Functions.
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": {
"action": "<action>",
"projectId": "<projectId>"
},
"name": "database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | list_records text search across the record id and JSON. | |
| op | No | list_records comparison. greater-than and less-than require a number field. Boolean fields allow equals, not-equals, is-empty, and is-not-empty. | |
| data | No | One record for create_record, or a field patch for update_record. Do not send data together with records. | |
| name | No | Table name for create_table. A letter, then up to 47 letters, numbers, or underscores. | |
| limit | No | list_records page size, from 1 to 100. Default 100. | |
| order | No | list_records sort: id, created_at, updated_at, or field:NAME. Default created_at. | |
| since | No | ISO-8601 timestamp for list_changes. Returns rows with a later updated_at. This is a poll, not a websocket. | |
| value | No | list_records filter value. Numbers are decimal text. Booleans are true or false. Empty checks omit value. | |
| action | Yes | list_tables, create_table, delete_table, list_records, list_changes, get_record, create_record, update_record, or delete_record. delete_table removes the table and its records. | |
| cursor | No | list_records cursor from next_cursor. Do not combine with offset. | |
| filter | No | list_records column name. Send op and value with it. Empty checks omit value. | |
| offset | No | list_records offset, from 0 to 249. Do not combine with cursor. | |
| columns | No | create_table fields, from 1 to 24. Names must be unique. | |
| records | No | Batch of 1 to 250 records for create_record. Do not also send data. | |
| recordId | No | Record UUID for get_record, update_record, and delete_record. | |
| direction | No | list_records sort direction. Default asc. | |
| projectId | Yes | UUID of a Data project this account owns. | |
| tableName | No | Existing table name for record actions, delete_table, and list_changes. Same shape as name. | |
| expectedUpdatedAt | No | Optional update_record check. Must match the record updated_at you read. A mismatch returns 409 and does not write. |