Skip to main content
Glama
mcp-hydrolix

mcp-hydrolix

Official
by hydrolix

List Tables

list_tables
Read-onlyIdempotent

List all tables in a database for exploration and discovery.

Instructions

List all tables in a database for exploration and discovery.

Use this tool to:

  • Discover what tables exist in a database

  • Filter tables by name pattern (like/not_like)

  • Get basic table metadata (name, engine, row counts, sizes, primary keys)

Custom views are listed as their own rows named table#view. Query one as database.table#view, quoting the table and view together.

Returns basic table information WITHOUT column details for performance. Tables are returned with empty columns lists and is_summary_table not set.

IMPORTANT: Always call get_table_info(database, table) before querying a specific table. Column metadata (types, categories, merge functions) is required to build correct queries, especially for summary tables which need special -Merge function syntax. list_tables() is intentionally lightweight to avoid loading schema for all tables at once.

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

Input Schema

NameRequiredDescriptionDefault
likeNo
databaseYes
not_likeNo

Output Schema

NameRequiredDescriptionDefault
tablesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.3.2
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / database / title
      Removed value: -"Database"
    • addedInput schema / properties / like / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / like / title
      Removed value: -"Like"
    • removedInput schema / properties / like / type
      Removed value: -"string"
    • addedInput schema / properties / not_like
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • removedInput schema / title
      Removed value: -"list_tablesArguments"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Result of `list_tables` — wraps a list of tables so the structured\npayload is a JSON object (as MCP requires) with an explicit field name\ninstead of fastmcp's generic `result` wrapper.",
      +  "properties": {
      +    "tables": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "tables"
      +  ],
      +  "type": "object"
      +}
  2. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description still adds real behavior beyond them: results carry empty column lists, is_summary_table is not set, the call is deliberately lightweight, and custom views appear as table#view rows queried with backtick quoting. The only gap is that pattern-matching behavior (case sensitivity, wildcard syntax) is left unstated.

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?

Front-loaded with the core action and organized as a short bullet list, so it scans well. The closing sentence restates the lightweight/performance point already made earlier ("WITHOUT column details for performance" vs "intentionally lightweight"), a minor redundancy.

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

Completeness5/5

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

An output schema exists, so return values need no prose. Given that, the description covers the discovery purpose, filtering, the empty-columns caveat, the custom-view naming quirk, and the mandatory follow-up call — everything needed to invoke it correctly.

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 description coverage is 0%, so the description must carry all three parameters. It names like/not_like as name-pattern filters but never explains pattern syntax, case sensitivity, or whether the two are mutually exclusive, and the required database parameter is only implied. Partial compensation, not full.

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 ("List all tables in a database") plus the scope of use ("exploration and discovery"), which cleanly separates it from get_table_info (single-table detail) and list_databases (different resource). An agent can pick this tool 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?

Provides an explicit "Use this tool to" list of three concrete use cases and then an IMPORTANT directive to call get_table_info before querying a table, naming the sibling and the reason. This is close to a complete routing rule.

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