Skip to content

explore

Unified tool for exploring database objects. Replaces list_tables, list_databases, list_stored_procedures and search_objects.

ParameterTypeDescription
typestringWhat to explore: tables (default), databases, procedures, search
filterstringName filter (LIKE). Valid for tables and procedures
schemastringSchema filter. Only for procedures (optional)
patternstringSearch pattern. Required when type=search
search_instringWhere to search: name (default) or definition (source code)
{ "name": "explore", "arguments": {} }

With filter:

{ "name": "explore", "arguments": { "filter": "Order" } }
{ "name": "explore", "arguments": { "type": "databases" } }
{ "name": "explore", "arguments": { "type": "procedures" } }

With name and schema filter:

{ "name": "explore", "arguments": { "type": "procedures", "schema": "dbo", "filter": "Truck" } }
{ "name": "explore", "arguments": { "type": "search", "pattern": "OrderTruck" } }
{ "name": "explore", "arguments": { "type": "search", "pattern": "OrderTruck", "search_in": "definition" } }

All results are capped at 500 rows. If there are more, the last element will include a _truncated warning key.