Skip to main content
Glama

List tables

list_tables
Read-onlyIdempotent

Call first to discover queryable tables, allowed columns, SQL dialect, row limit, and access rules before generating SQL, so hidden or restricted fields are avoided.

Instructions

List the tables you may query, with the columns you can use, the SQL dialect and the row limit. Call this first. Columns that aren't listed are hidden and rejected anywhere in a query. Tables may also show masked columns (selectable, but they come back masked), aggregate_only (only aggregates and GROUP BY, groups of at least that many rows) and required_filters (filter on one of those columns).

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

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0-alpha.8

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description contributes real behavior beyond that: unlisted columns are hidden and rejected globally, and returned metadata flags masked, aggregate_only, and required_filters columns with their query-time consequences. That is meaningful operational context layered on top of the annotations.

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?

Four sentences, front-loaded with the scope and the ordering directive, then the constraint and the column-flag glossary. No filler, no repetition of annotations, and the densest sentence is the one carrying the most non-obvious information.

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?

Because an output schema exists, the description need not restate return structure, yet it still explains the semantics of masked, aggregate_only and required_filters, which the schema alone would not convey. It is complete enough for a zero-parameter discovery tool whose main risk is misreading the returned metadata.

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?

The tool takes zero parameters, so there is nothing to disambiguate and the baseline applies. The description instead spends its words on the semantics of the returned fields, which is the more useful payload here.

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 the tables you may query") and additionally enumerates what the answer contains: columns, SQL dialect, and row limit. That scope plus the "Call this first" ordering makes it clearly distinguishable from describe_table or query even 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 Guidelines4/5

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

Gives an explicit sequencing rule ("Call this first") that anchors it relative to the sibling query tools, and warns that unlisted columns are rejected anywhere in a query. It stops short of naming a specific alternative such as describe_table for per-table detail, so it is clear context rather than full when/when-not routing.

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

Deploy Server

Other Tools