schemacrawler-ai
vv18.0.4-1Enables natural language schema queries — explore tables, keys, procedures, and get SQL help fast
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
diagram Generate database diagram
Generates a database diagram in the specified format.
| Parameter | Type | Description |
|---|---|---|
diagram_type * | string | Indicates database schema diagram format - Graphviz DOT format, PlantUML, Mermaid or DBML from dbdiagram.io. |
include_child_tables | boolean | If true, also include child (or dependent) tables for the selected tables. |
include_referenced_tables | boolean | If true, also include tables that are referenced by the selected tables. (These are sometimes known as parent tables.) |
table_name | string | Name of database table or view to describe. May be specified as a regular expression, matching the fully qualified table name (including the schema). Try not to match all tables, but instead use a reg… |
describe_routines Describe stored procedures and functions
Generates detailed documentation for database routines (stored procedures and functions), including parameter metadata (input/ output parameters, data types, default values), return types, dependencies (on tables, views, or other routines), and full DDL definitions. Supports regular expression based routine name filtering and configurable detail levels to optimize tool performance. Returns data as a JSON object.
| Parameter | Type | Description |
|---|---|---|
description_scope | array | Indicates what details of the database stored procedure or function to return - parameters (including return types), attributes, and routine definition. Parameters, return types, and remarks or commen… |
routine_name | string | Name of database routine (stored procedure or function) to describe. May be specified as a regular expression matching the fully qualified stored procedure or function names (including the schema). Tr… |
lint Validate database schema
Analyzes and validates database schema structure and design. Detects missing or redundant indexes, foreign keys without supporting indexes, and unique indexes with nullable columns. Checks data type consistency across similarly named columns, validates key patterns, and enforces naming conventions. Assesses design quality by inspecting documentation completeness, reserved word usage, and structural anomalies like single-column or all-nullable tables. Returns data as a JSON object.
| Parameter | Type | Description |
|---|---|---|
table_name | string | May be specified as a regular expression, matching the fully qualified table name (including the schema). Use an empty string if all tables are requested. If not specified, all tables will be processe… |
table_importance Report table and view importance
Returns schema graph importance metrics, composite scores, counts, and traits for tables and views to identify key entities and structural hubs. The entry for each table includes: 1) Importance score: composite integer (0-100) combining structural graph metrics (50%) and data-modeling attributes (50%) 2) Importance metrics: graph topology metrics including in-degree, out-degree, betweenness centrality, and "impact reachability count"(blast radius for changes to the table) 3) Table counts: Attribute column (columns with data values) count, total column_count, and foreign key, index, trigger, an…
| Parameter | Type | Description |
|---|---|---|
max_important_tables | integer | Maximum number of tables to include in the report. Defaults to 5. Use -1 to return all matching tables. |
table_name | string | Name of database table or view to report importance for. May be specified as a regular expression, matching the fully qualified table name (including the schema). Try not to match all tables, but inst… |
table_path Find table dependency path
Finds the shortest forward dependency path from a source table or view to a target table or view in the schema graph. Requires source table name and target table name, each specified as a regular expression matching a fully qualified table or view name (each must resolve to exactly one match). Foreign-key relationships are preferred; implied associations (from column name matching) are used as a fallback. Searches are limited to 5 relationship hops by default; use `max_path_depth` to select another limit. A -1 value allows an unlimited search. Returns an ordered array of fully qualified table…
| Parameter | Type | Description |
|---|---|---|
source_table_name * | string | Name of source database table or view for the dependency path. May be specified as a regular expression, matching the fully qualified table name (including the schema). Must match exactly one table or… |
target_table_name * | string | Name of target database table or view for the dependency path. May be specified as a regular expression, matching the fully qualified table name (including the schema). Must match exactly one table or… |
max_path_depth | integer | Maximum number of relationship hops in the path. Defaults to 5. Use -1 for an unlimited path depth. |
describe_tables Describe tables and views
Generates detailed documentation for database tables and views, including column definitions (names, data types, constraints, nullability), primary and foreign key relationships, index and trigger information, table attributes, and complete DDL definitions. Supports regular expression based table name filtering and configurable detail levels to optimize tool performance. Includes entity type information, such as whether the table is a strong or weak entity, a sub-entity, or a bridge-table. For relationship cardinality and other ER relationship concepts, use `describe_er_relatio…
| Parameter | Type | Description |
|---|---|---|
description_scope | array | Indicates what details of the database table or view to return - columns, primary key, foreign keys, indexes, triggers, attributes, and table definition. Also returns which objects reference a given t… |
table_name | string | Name of database table or view to describe. May be specified as a regular expression, matching the fully qualified table name (including the schema). Try not to match all tables, but instead use a reg… |
detect_clusters Detect table clusters
Detects table clusters - also known as communities, cliques, modules, or subsystems - of tightly related tables and views, based on how they are connected by foreign keys and other relationships. Use this tool to discover system domains, bounded contexts, or functional areas within a database schema, without having to know table names in advance. Table clusters can be filtered by a regular expression matching any member's fully qualified name. Each table cluster includes the full names of its member tables and views, and the anchor table (its most important, or representative, member).
| Parameter | Type | Description |
|---|---|---|
max_cluster_size | integer | Maximum number of member tables and views to include per table cluster. Defaults to 5. -1 returns all members without limiting. |
max_clusters | integer | Maximum number of table clusters to return. Defaults to 5. -1 returns all matching table clusters without limiting. |
table_name | string | Name of a database table or view used to select table clusters. A table cluster is returned when any member matches. May be specified as a regular expression, matching the fully qualified table name (… |
table_sample Sample table data
Profiles and samples table data by retrieving random rows for quick content analysis without full scans. Helps infer data patterns, validate types, and assess quality. Results vary per run (they are random picks) and offer insight for ETL, query design, and pipeline planning. Returns data as a JSON object.
| Parameter | Type | Description |
|---|---|---|
table_name | string | May be specified as a regular expression, matching the fully qualified table name (including the schema). Use an empty string if all tables are requested. If not specified, all tables will be processe… |
list List database objects
Makes an inventory of database schema objects such as tables, views, stored procedures, functions, sequences, synonyms, and more. This is an essential starting point for database exploration, database asset management, and schema analysis. The tool supports object type filtering and pattern-based searching. Use `list_members_of_tables` instead when you need columns, indexes, foreign keys, or triggers belonging to one or more tables. Returns JSON data.
| Parameter | Type | Description |
|---|---|---|
database_object_name | string | Name of database object to list. Is a regular expression, matching the fully qualified database object name (including the schema). May match more than one database object. Use an empty string if all… |
database_object_type | string | Type of database object to list, like tables (including views), routines (that is, stored procedures and functions), schemas (that is, databases or catalogs), sequences, or synonyms. If the parameter… |
list_members_of_tables List members of one or more tables
Lists members belonging to one or more database tables across the schema, including columns, indexes, foreign keys, and triggers. Use this tool when you need members belonging to one or more tables, not when you need to discover tables or other schema objects; use `list` for that. Supports regular expression based table and member name filtering. For complete physical table details, use `describe_tables`. Returns JSON data.
| Parameter | Type | Description |
|---|---|---|
member_type * | string | Type of table member to list, such as columns, indexes, foreign keys, or triggers. |
member_name | string | Name of table member (or members). May be a regular expression, matching the fully qualified member name (including the schema, table and member name). May match more than one member. Use an empty str… |
table_name | string | Name of a database table (or tables) whose members are listed. May be a regular expression, matching the fully qualified table name (including the schema), in which case, multiple tables may be select… |
describe_er_relationships Describe relationships in the ER model
Generates detailed documentation for relationships in the ER model, including 1..1, 1..M, M..N and optional relationships. Supports regular expression based relationship name filtering to optimize tool performance. Returns conceptual ER-model relationships. For raw physical schema details such as columns, constraints, and DDL, use `describe_tables`. Returns data as a JSON object.
| Parameter | Type | Description |
|---|---|---|
cardinality | string | Indicates the types of relationships to return - for example, 1..1, 1..M, M..N and optional relationships. Defaults to all types of relationships. |
relationship_name | string | Name of a relationship (or relationships) to describe from the ER model. May be specified as a regular expression, matching the fully qualified relationship name (including the schema). Try not to mat… |
about_database Show database server information
Provides database environment and server configuration metadata, including engine type and version, collation, encoding, parameters, capabilities, and platform details. Also reports database identity, including alias, product, and server fingerprint.
mcp-server-health Show SchemaCrawler AI MCP Server health
Gets the SchemaCrawler AI MCP Server version and uptime status.