Skip to main content
Glama

Describe a database table

describe_table
Read-only

One table of the connected database in full: every field's name, kind, database type, whether a new entry must give it, its default, the key, what a link points at, an option's values, and whether a page can show it; who can see and change entries; and how the site's code reads it with the data kit (DataList table, useRow, data-field). 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: also the indexes a list can filter and sort along, and how a server task reads it (env.XODIA_DATA). 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": {
      "table": "<table>",
      "projectId": "<projectId>"
    },
    "name": "describe_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYesThe table's name as list_tables gives it (bookings)
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

A3.6/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and destructiveHint=false, and the description consistently adds that it 'Reads only, never entries or keys,' clarifying the safety boundary. It also discloses what is returned beyond annotations: field details, visibility and mutation permissions, code-reading conventions, and Xodia indexes. It stops short of discussing errors or limits, but the behavioral picture is strong.

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

Conciseness3/5

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

The description is front-loaded with the core purpose, but it is a dense semicolon-heavy sentence that is harder to parse than necessary. Every clause carries some information, yet the packaging could be clearer and more concise.

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?

There is no output schema, so the description must explain what the tool returns, and it does so extensively: fields, defaults, keys, links, options, visibility, code access, and Xodia indexes. It is nearly complete for a complex read-only metadata tool, with only minor gaps around failure modes or pagination.

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

Parameters3/5

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

Schema coverage is 100%, and the schema already explains table, source, and projectId. The description mostly reiterates the source fallback behavior and the table-name source, adding little meaning beyond the structured parameter definitions.

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

Purpose4/5

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

The description states a specific resource, 'one table of the connected database in full,' and enumerates the metadata returned: fields, keys, permissions, code access, and Xodia-specific indexes. It clearly scopes the operation to a single table and distinguishes the two database sources, though it does not name a sibling alternative for describing tables.

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

Usage Guidelines3/5

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

Usage is implied: use this to inspect one table's full schema and access rules. The description gives conditional guidance for the source parameter, including the default via get_project, but it does not explicitly say when to choose this over related tools or when not to use it.

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