describe_schema_tool
Call first to read a database's real schema (tables, columns, indexes, row counts) for cost-aware queries that use indexes, not full scans. Read-only; returns need_from_user if schema unavailable.
Instructions
Read a database's REAL schema — tables/collections, columns/fields,
INDEXES, and row counts — so you can write a grounded, cost-aware query
BEFORE guessing. Call this FIRST when a user asks for data and you don't
already know the schema; it tells you which columns are indexed so your
query hits an index, not a full scan. READ-ONLY catalog access — never
reads data rows. If the schema can't be read it returns need_from_user
naming what to ask the user for. Pass target= in a multi-DB setup;
combine with list_targets to find which DB has the data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |