Skip to main content
Glama

List database tables

list_tables
Read-only

Lists the tables of the Supabase project connected to the site (get_project database shows whether one is): each table's name, its fields with their kinds (text, number, yes or no, date, date and time, link to another table, option, list, data, id), which fields a new entry must give, about how many entries it has, and who can see and change entries (one of Xodia's eight rules, rules Xodia didn't write, or row rules off, which lets anyone with the public key read and change it). Read it before binding a list or form to a table or adding one. With source "xodia" (or when get_project database.source is "xodia") it works on the site's own Xodia database, whose tables and rules are the file xodia/data-rules.json in the repo: each table's fields with their types, its rule, its indexes, test entries per table and the sign-in ways. Reads only, never entries or keys.

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": {
      "projectId": "<projectId>"
    },
    "name": "list_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
freshNotrue: read the tables again now instead of the copy Xodia keeps for a minute. Default false
sourceNoWhich database: "xodia" (the site's own Xodia database, kept by Xodia) or "supabase" (the Supabase project the owner connected). Leave out to use the one get_project database.source names
projectIdYesProject id from list_projects

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / source
      Added value: +{
      +  "description": "Which database: \"xodia\" (the site's own Xodia database, kept by Xodia) or \"supabase\" (the Supabase project the owner connected). Leave out to use the one get_project database.source names",
      +  "enum": [
      +    "xodia",
      +    "supabase"
      +  ],
      +  "type": "string"
      +}
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, open-world, so the description's job is additive and it delivers: it clarifies scope limits ("Reads only, never entries or keys"), names the underlying source of truth for Xodia tables (xodia/data-rules.json), and explains the meaning of each access-rule category. It does not restate the minute-long cache behavior that the schema's `fresh` param covers.

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

Conciseness2/5

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

Front-loading is fine, but the body is a single sprawling sentence dense with nested parentheses enumerating field kinds and the eight rule states. The return-value detail crowds out the usage instruction, making the definition hard to scan; it should be broken into short, separated sentences.

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?

With no output schema, the description carries the return-value burden and does so thoroughly—field kinds, required fields, approximate entry counts, and access rules are all described. Only the caching/`fresh` interaction and pagination-style concerns are left implicit, which is minor for a metadata read.

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; the description earns more by elaborating what `source: "xodia"` actually returns (fields, rule, indexes, test entries, sign-in ways) and by explaining the default resolution through get_project database.source. That gives the agent meaning the enum label alone does not convey.

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?

States a specific verb and resource ("Lists the tables of the Supabase project") and then enumerates exactly what each entry contains—name, fields and their kinds, required fields, entry counts, access rules. An agent can distinguish it from list_entries, list_projects, and make_block_tables without opening another schema.

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

Usage Guidelines4/5

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

Gives an explicit trigger: "Read it before binding a list or form to a table or adding one," which routes the agent ahead of add_block/make_block_tables. It also explains the source-selection fallback via get_project database.source. It stops short of naming sibling tools or stating when the tool is not appropriate.

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