score_response
Evaluate any text by applying a named scorer to obtain risk, confidence, and explanation scores.
Instructions
Score arbitrary text (e.g. a target response) with a named PyRIT scorer.
Returns success/confidence/risk/explanation/raw_score/metadata per PRD contract.
Scorers that require an LLM judge (see list_capabilities) reuse the engagement's
configured target as the judge model.
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": {
"engagement_id": "<engagement_id>",
"scorer_name": "<scorer_name>",
"text": "<text>"
},
"name": "score_response"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| scorer_name | Yes | ||
| engagement_id | Yes | ||
| scorer_params | No | ||
| conversation_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| success | Yes |