langchain-ai avatar

Schema Exploration

Catalog summary of database schema exploration: listing tables, column types, and foreign keys before querying.

CCM score
68 of 100
skills.sh installs
1.3K
GitHub stars
31.5K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the schema workflow: list all tables, inspect columns and types, identify keys, and map entity relationships
  • Includes sql_db_list_tables for the full table inventory and sql_db_schema for columns, types, three sample rows, and key details
  • Maps relationships by reading Id suffix columns and tracing parent-child links through a join path before answering
  • Designed for analysts and developers who need to understand unfamiliar database structure before writing queries

Install

$ npx -y skills add langchain-ai/deepagents --skill schema-exploration -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Schema Exploration Skill

Workflow

1. List All Tables

Use sql_db_list_tables tool to see all available tables in the database.

This returns the complete list of tables you can query.

2. Get Schema for Specific Tables

Use sql_db_schema tool with table names to examine:

  • Column names - What fields are available
  • Data types - INTEGER, TEXT, DATETIME, etc.
  • Sample data - 3 example rows to understand content
  • Primary keys - Unique identifiers for rows
  • Foreign keys - Relationships to other tables

3. Map Relationships

Identify how tables connect:

  • Look for columns ending in "Id" (e.g., CustomerId, ArtistId)
  • Foreign keys link to primary keys in other tables
  • Document parent-child relationships

4. Answer the Question

Provide clear information about:

  • Available tables and their purpose
  • Column names and what they contain
  • How tables relate to each other
  • Sample data to illustrate content

Example: "What tables are available?"

Step 1: Use sql_db_list_tables

Details

Repository
github.com/langchain-ai/deepagents
Categories
Databases, Data Science & Analytics
First seen
May 16, 2026

More from langchain-ai/deepagents

All 12

Similar to Schema Exploration

More Databases