Database
databaseList or create Data tables, delete a table, and list, query, get, create, batch-create, update, or delete records on a Data project this account owns. list_records accepts the same filter, search, order, and cursor as the project Data API and applies them to the latest 250 rows. list_changes polls records updated after since. Field changes stay in the Data app. This is not a websocket, Supabase Realtime, Auth, or Edge Functions. Private files are the files tool.
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 | ||
| data | No | One record for create_record, or a field patch for update_record. | |
| name | No | Table name for create_table. | |
| 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. Booleans are true or false. Empty checks omit value. | |
| action | Yes | ||
| cursor | No | list_records cursor from next_cursor. Do not combine with offset. | |
| filter | No | list_records field name. Send op and value with it. | |
| offset | No | list_records offset, from 0 to 249. Do not combine with cursor. | |
| columns | No | ||
| records | No | Batch of 1 to 250 records for create_record. Do not also send data. | |
| recordId | No | ||
| direction | No | list_records sort direction. Default asc. | |
| projectId | Yes | ||
| tableName | No | ||
| expectedUpdatedAt | No | Optional update_record check. Must match the record updated_at you read. |