profile_data
Generate column-level summary statistics, detect data quality issues, and get suggested validation rules from CSV data using AI. Use returned aiRule values in pipeline dataQuality sections.
Instructions
Send data and use AI to generate a comprehensive data profile: summary statistics per column, data quality issues detected, and suggested validation rules. Use the suggested aiRule when building a pipeline's dataQuality section. The server may withhold row values from the model (DATRIS_AI_SAMPLE_VALUES=false): the profile is then built from column statistics or structure only, sampleValues are empty, and the result carries valuesWithheld: true. If the AI model declines the request (a provider safety decline), the result carries aiDeclined: true and holds the server's column statistics only, with empty qualityIssues and recommendations: read that as no AI review, not as a clean file.
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": {
"content": "<content>",
"filename": "<filename>"
},
"name": "profile_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| header | No | Whether CSV has a header row (default: true) | |
| content | Yes | Base64-encoded file content | |
| filename | Yes | Filename (e.g., sample.csv) | |
| delimiter | No | CSV delimiter (default: comma) | |
| sample_size | No | Number of rows to sample for profiling (default: 200) |