create_score_config
create_score_configDefine score configurations to validate and structure future evaluations in Langfuse, supporting numeric, categorical, and boolean data types with optional constraints.
Instructions
Creates a score config definition used to validate or structure future scores. name and dataType are required. For categorical configs, categoriesJson should be a JSON array of {label,value} objects. For numeric configs, minValue and maxValue are optional bounds.
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": {
"name": "<name>",
"dataType": "<dataType>",
"categoriesJson": "<categoriesJson>",
"minValue": "<minValue>",
"maxValue": "<maxValue>",
"description": "<description>"
},
"name": "create_score_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Score config name. Required. | |
| dataType | Yes | Data type: NUMERIC | CATEGORICAL | BOOLEAN. Required. | |
| categoriesJson | Yes | Optional categorical options as a JSON array of {label,value} objects. | |
| minValue | Yes | Optional minimum numeric value. | |
| maxValue | Yes | Optional maximum numeric value. | |
| description | Yes | Optional description shown in Langfuse. |