Skip to main content
Glama

Query and change Data tables and records

database
Destructive

Lists, 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

NameRequiredDescriptionDefault
qNolist_records text search across the record id and JSON.
opNolist_records comparison. greater-than and less-than require a number field. Boolean fields allow equals, not-equals, is-empty, and is-not-empty.
dataNoOne record for create_record, or a field patch for update_record. Do not send data together with records.
nameNoTable name for create_table. A letter, then up to 47 letters, numbers, or underscores.
limitNolist_records page size, from 1 to 100. Default 100.
orderNolist_records sort: id, created_at, updated_at, or field:NAME. Default created_at.
sinceNoISO-8601 timestamp for list_changes. Returns rows with a later updated_at. This is a poll, not a websocket.
valueNolist_records filter value. Numbers are decimal text. Booleans are true or false. Empty checks omit value.
actionYeslist_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.
cursorNolist_records cursor from next_cursor. Do not combine with offset.
filterNolist_records column name. Send op and value with it. Empty checks omit value.
offsetNolist_records offset, from 0 to 249. Do not combine with cursor.
columnsNocreate_table fields, from 1 to 24. Names must be unique.
recordsNoBatch of 1 to 250 records for create_record. Do not also send data.
recordIdNoRecord UUID for get_record, update_record, and delete_record.
directionNolist_records sort direction. Default asc.
projectIdYesUUID of a Data project this account owns.
tableNameNoExisting table name for record actions, delete_table, and list_changes. Same shape as name.
expectedUpdatedAtNoOptional update_record check. Must match the record updated_at you read. A mismatch returns 409 and does not write.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changed
    • addedInput schema / properties / action / description
      Added value: +"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."
    • addedInput schema / properties / columns / description
      Added value: +"create_table fields, from 1 to 24. Names must be unique."
    • addedInput schema / properties / columns / items / description
      Added value: +"One table field. name and type are required. required defaults to false."
    • addedInput schema / properties / columns / items / properties / name / description
      Added value: +"Field name: a letter, then up to 31 letters, numbers, or underscores."
    • addedInput schema / properties / columns / items / properties / required / description
      Added value: +"When true, a record must include this field. Omitted means false."
    • addedInput schema / properties / columns / items / properties / type / description
      Added value: +"Field type: text, number, boolean, or json."
    • changedInput schema / properties / data / description
      Previous value: -"One record for create_record, or a field patch for update_record."New value: +"One record for create_record, or a field patch for update_record. Do not send data together with records."
    • changedInput schema / properties / expectedUpdatedAt / description
      Previous value: -"Optional update_record check. Must match the record updated_at you read."New value: +"Optional update_record check. Must match the record updated_at you read. A mismatch returns 409 and does not write."
    • changedInput schema / properties / filter / description
      Previous value: -"list_records field name. Send op and value with it."New value: +"list_records column name. Send op and value with it. Empty checks omit value."
    • changedInput schema / properties / name / description
      Previous value: -"Table name for create_table."New value: +"Table name for create_table. A letter, then up to 47 letters, numbers, or underscores."
    • addedInput schema / properties / op / description
      Added value: +"list_records comparison. greater-than and less-than require a number field. Boolean fields allow equals, not-equals, is-empty, and is-not-empty."
    • addedInput schema / properties / projectId / description
      Added value: +"UUID of a Data project this account owns."
    • addedInput schema / properties / recordId / description
      Added value: +"Record UUID for get_record, update_record, and delete_record."
    • addedInput schema / properties / records / items / description
      Added value: +"One record object whose fields match the table."
    • addedInput schema / properties / tableName / description
      Added value: +"Existing table name for record actions, delete_table, and list_changes. Same shape as name."
    • changedInput schema / properties / value / description
      Previous value: -"list_records filter value. Booleans are true or false. Empty checks omit value."New value: +"list_records filter value. Numbers are decimal text. Booleans are true or false. Empty checks omit value."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds substantive behavior the annotations don't carry: list_records is capped to the latest 250 rows, list_changes is a poll against updated_at, batches cap at 250 records, and changes stay scoped to the Data app. It stops short of spelling out what delete actions wipe beyond the schema's own note and gives no response-shape or failure-mode detail.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with purpose, then routing, then per-action constraints, and nearly every sentence carries information. The action enum is echoed in prose that largely duplicates the schema's action field, which is minor waste in an otherwise dense paragraph.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 19-parameter, nine-action tool with no output schema, the description covers the constraints an agent needs to avoid mistakes: batching caps, polling semantics, row-window limits, and sibling routing. It does not describe return shapes or how cursor/next_cursor relate to results, which the annotations also do not supply.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning beyond the schema by explaining how filter, search, and order combine and by disclosing the 250-row ceiling behind the offset range. The pairing rules for data vs records and the one-object-vs-batch distinction are restated from the schema rather than extended.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names concrete verbs (lists, creates, deletes, polls, gets, updates) against a concrete resource (tables and records on one Data project), then enumerates the nine action values. The final routing sentences make clear how this differs from files, export, and project, so an agent can pick it without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit alternatives with their selecting conditions ('Use files for private file bytes, export for a JSON snapshot, and project for Studio or Mobile source') and explicit exclusions ('not a websocket, Supabase Realtime, Auth, or Edge Functions'). It also implicitly steers polling expectations by noting that list_changes is a poll rather than a subscription.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources