Skip to main content
Glama
db-conn-mcp

db-conn-mcp

list_tables

Lists all tables and views in a specified database, with optional case-insensitive pattern filtering and a row limit to keep large schemas manageable.

Instructions

List all tables and views in the named database.

Narrow instead of listing everything: pattern keeps only names containing it (fuzzy, case-insensitive — "order" matches ORDERS, order_items). limit returns at most that many rows, so a huge database can't flood the answer.

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
limitNo
patternNo
databaseYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden, and it does real work: it characterizes matching semantics (fuzzy, case-insensitive, substring, with a worked example) and explains that limit prevents a huge catalog from flooding the response. Gaps remain on read-only confirmation, behavior on a nonexistent database, and whether system tables are included.

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?

The core action is front-loaded in the first sentence, with parameter guidance following in a short block. Every clause earns its place — the rationale about flooding justifies the limit parameter rather than padding the text.

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?

This is a simple read operation and an output schema exists, so return values need not be explained. The description covers the two non-obvious parameters and their failure modes well; the only shortfall is not clarifying when to prefer this over the sibling schema-dump tools.

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

Parameters5/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 compensate, and it does: pattern is defined as fuzzy, case-insensitive substring matching with a concrete example ('order' matches ORDERS, order_items), and limit is defined as a row cap. The only unaddressed item is the database parameter, which is self-evident from the tool's purpose.

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?

States a specific verb and resource plus scope: 'List all tables and views in the named database', so an agent knows exactly what is returned. It is distinguishable from list_databases and get_table_schema, but it never addresses how it differs from overlap-prone siblings like get_database_schema or dump_schema_faithful, which also surface table inventories.

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?

Provides practical usage advice — 'Narrow instead of listing everything' — and tells the agent to apply pattern/limit on large catalogs. However, it names no alternative tool and gives no when-not conditions, so routing between this and the other schema-listing siblings 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.