get_table_info
Get comprehensive information about a database table including schema, documentation, and usage examples.
This tool combines database schema (DESCRIBE) with context files documentation to give you everything needed to write queries against a table.
Returns:
Column names, types, and constraints
Business context and metric definitions from documentation
Common query patterns and examples
Tips about reserved keywords and gotchas
Use this BEFORE execute_sql when:
You need to understand what columns are available
You're unsure how to calculate a metric
You want to see example queries for a table
You need to know which columns to JOIN on
Example: "Get info about campaign_performance table" Returns schema + documentation about advertising metrics + example ACoS calculation
Common tables to explore:
fba_inventory: FBA stock levels and availability
sl_daily_sku_profit: SKU-level profitability metrics
campaign_performance: Advertising campaign data
product_ad_performance: Product-level ad metrics
order_items: Order line item details
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": {
"tableName": "<tableName>"
},
"name": "get_table_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tableName | Yes | Name of the table to get information about |