create_classifier
Define regex patterns and confidence thresholds to create custom classifiers for data types not covered by built-in classifiers, enabling tailored data classification jobs.
Instructions
Create a custom data classifier for detecting specific data patterns.
Use when ALTR's built-in classifiers don't cover your data types. Custom classifiers can be added to collections and used in classification jobs.
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": {
"classifier_name": "<classifier_name>",
"description": "<description>",
"minimum_threshold": "<minimum_threshold>",
"pattern": "<pattern>",
"sample_size": "<sample_size>"
},
"name": "create_classifier"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| classifier_name | Yes | Unique name for the classifier. | |
| description | Yes | Human‑readable explanation of what it detects. | |
| minimum_threshold | Yes | Percent (0-100) confidence required to consider a column a match. | |
| pattern | Yes | Regex pattern used to match values. | |
| sample_size | Yes | Number of values ALTR should sample per column. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||