db_list_tables
Lists all tables and views in the database, providing an overview of available data structures for building queries.
Instructions
List all tables and views in the database
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Lists all tables and views in the database, providing an overview of available data structures for building queries.
List all tables and views in the database
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Changes observed during successful MCP inspections.
v1.0.0Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must carry the disclosure burden. It clarifies that both tables and views are included and implies a read-only listing, but it does not describe output shape, ordering, schema qualification, or whether system objects are returned.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, focused sentence with no wasted words. It front-loads the core operation and scope effectively.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple zero-parameter listing tool, the description is nearly complete and callable. The only notable gaps are lack of contrast with db_schema_snapshot and no statement of the return format, both relatively minor for this use case.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has zero parameters, so there is no parameter meaning for the description to clarify. The baseline of 4 for a zero-parameter tool applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb ('List') and a clear resource ('all tables and views in the database'), making the tool's scope unambiguous. It is easy to distinguish from siblings like db_query, db_execute, db_table_indexes, and db_foreign_keys, which target different operations.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No explicit when-to-use or alternative routing is provided, but the purpose is self-evident: an agent can infer this tool is for enumerating tables and views. It does not distinguish itself from db_schema_snapshot, leaving some ambiguity about which listing tool to choose.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.