Skip to main content
Glama
database-mcp

database-mcp

list_tables

Retrieve tables and views from a PostgreSQL or MySQL database, optionally filtered by schema, to inspect available data structures before writing queries.

Instructions

List tables and views in a database (optionally filtered by schema).

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

Input Schema

NameRequiredDescriptionDefault
schemaNo
connectionYesNamed connection from list_connections (preferred) or a raw connection string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it says nothing beyond the name-plus-resource. It does not disclose whether results are paginated, whether the caller needs permissions on the database, whether system tables are included, or what shape the returned list takes.

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?

A single front-loaded sentence with zero filler; the optional filter caveat is placed immediately after the core action. It is efficient, though its terseness leaves little room for the missing behavioral detail.

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

Completeness3/5

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

The tool is simple (two parameters, one required) and the connection parameter is covered by the schema, but with no annotations and no output schema the description should clarify what a result entry contains and whether the listing is scoped to a permission boundary. It is adequate but leaves real gaps for an agent deciding what it will receive.

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 50%: the required connection parameter is well documented in the schema (including the pointer to list_connections), while the schema parameter has no schema description. The description partially compensates by identifying the schema parameter as an optional filter, but adds no detail on its expected format, case sensitivity, or default behavior.

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 uses a specific verb ("List") with a specific resource ("tables and views in a database"), which is meaningfully different from siblings like describe_table or get_schema. It stops short of naming any sibling to reinforce the distinction, so it is clear but not maximally differentiated.

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?

The parenthetical "optionally filtered by schema" implies the filtering use case, but there is no explicit statement of when to choose this over get_schema, describe_table, or run_query. Usage is inferable but never stated.

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