MySQL JSON Normalize
mysql_json_normalizeExtract all unique keys across JSON documents in a column to normalize and standardize the structure for analysis.
Instructions
Normalize JSON column structure by extracting all unique keys across documents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| col | No | Alias for column | |
| name | No | Alias for table | |
| limit | No | Maximum rows to process | |
| rowId | No | Alias for where (used with idColumn) | |
| table | No | Table name. Note: This tool normalizes an existing JSON column in a table, it does not normalize raw JSON strings. | |
| where | No | WHERE clause | |
| column | No | JSON column name | |
| filter | No | Alias for where | |
| idColumn | No | Alias for where (used with rowId) | |
| tableName | No | Alias for table |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Error code (e.g. VALIDATION_ERROR, QUERY_ERROR) | |
| data | No | ||
| error | No | Error message if operation failed | |
| details | No | Additional error context | |
| metrics | No | Token estimation metrics | |
| success | Yes | Whether the operation succeeded | |
| category | No | Error category (validation, query, connection, internal) | |
| suggestion | No | Suggested fix for the error | |
| recoverable | No | Whether the error is recoverable |