find_columns
Locate columns by name across all tables in a database using fuzzy, case-insensitive matching, so you can find where a concept lives before querying.
Instructions
Find columns by name across all tables of one database (fuzzy, case-insensitive).
e.g. pattern "email" matches user_email, EMAIL_ADDRESS. Use this to locate where
a concept lives before querying. It matches column NAMES only — to find where a
data value appears use search_value; to find a table by name use list_tables.
limit returns at most that many rows — set it when a broad pattern would
otherwise match half the database.
Returns meta and columns, one item per matching column with schema, table,
column, type and nullable; meta.truncated is true when limit cut the list.
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": {
"database": "<database>",
"pattern": "<pattern>"
},
"name": "find_columns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Return at most this many items; `meta.truncated` is then true when more matched. Omit to return every match. | |
| pattern | Yes | Text to look for in column names, case-insensitively: 'email' matches user_email and EMAIL_ADDRESS. | |
| database | Yes | Name of a configured database, exactly as list_databases returns it (case-sensitive). Not a DSN, host or server-side database name. An unknown name is an error that lists the configured names. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| columns | Yes |