Skip to main content
Glama
DataPilot MCP

DataPilot MCP

List tables

list_tables
Read-only

Find tables and views in the discovered schema, returning qualified names, kind, primary keys, approximate row counts, and column counts so you can choose one to inspect.

Instructions

Find tables and views in the discovered schema before choosing one to inspect. Returns qualified names, kind, primary keys, approximate row counts, and column counts. Use describe_table for column details or get_database_overview for totals.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
aliasNoAlias from list_connections. Omit only when exactly one database is open.
patternNoCase-insensitive glob on the qualified name, e.g. public.sales_*.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.0
    • addedInput schema / properties / alias / description
      Added value: +"Alias from list_connections. Omit only when exactly one database is open."
    • changedInput schema / properties / pattern / description
      Previous value: -"Glob filter, e.g. 'fact_*'"New value: +"Case-insensitive glob on the qualified name, e.g. public.sales_*."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuine context beyond them: results come from the already-discovered schema (implying connect_database/refresh_schema must run first) and row counts are only approximate. It says nothing about result limits or pagination, which keeps it from a 5.

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

Conciseness5/5

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

Three short sentences, each doing distinct work: purpose, returned fields, and routing to alternatives. The most decision-relevant content (what to do before inspecting) is front-loaded with no filler.

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?

With only two optional, fully documented parameters, an output schema already present, and annotations covering the safety profile, the description supplies everything an agent needs to select and call this tool 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 coverage is 100%, and both parameters (alias, pattern) carry their own descriptions including the glob example and the single-database default. The description adds no further meaning about either, so the baseline 3 applies.

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 description gives a specific verb and resource ("Find tables and views") plus a scope ("in the discovered schema"), and explicitly separates this tool from describe_table and get_database_overview. An agent can pick it out of the sibling list without opening a 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 states the sequencing rule ("before choosing one to inspect") and names two alternatives with the condition that selects each: describe_table for column details, get_database_overview for totals. Nothing about when-to-use is left to inference.

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