create_score
Assign a numeric, boolean, or categorical score to a trace or observation to evaluate quality or faithfulness.
Instructions
Create a score on a trace or observation.
Args: trace_id: The trace to score. name: Score name (e.g. "quality", "faithfulness"). value: Numeric value (or 0/1 for BOOLEAN, category index for CATEGORICAL). observation_id: Optionally attach score to a specific observation. comment: Optional comment. data_type: NUMERIC | BOOLEAN | CATEGORICAL.
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": {
"trace_id": "<trace_id>",
"name": "<name>",
"value": "<value>"
},
"name": "create_score"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| value | Yes | ||
| comment | No | ||
| trace_id | Yes | ||
| data_type | No | NUMERIC | |
| observation_id | No |