Write an answer and score it
clearrun_chatGenerate a new answer and score whether its confidence is backed by reasoning through the hosted ClearRun API. Use for new answers, not existing text or fact checks.
Instructions
Ask the hosted ClearRun API to write an answer and score it. Use this when you want a new answer, not a score of text you already have. Use clearrun_score or clearrun_evaluate for text that was already written. Use clearrun_verify to look up a verdict id you already have. Do not use this to check whether an existing answer is true. ClearRun scores whether an answer's confidence is backed by its reasoning, from 0 to 100. It does not check facts. A high score does not mean the answer is true. Needs CLEARRUN_API_KEY. Calls POST https://api.clearrun.net/api/chat, which spends credits, writes an answer, and stores a verdict. Without a key, the tool returns an error and does not call the API. The tool is an error when the body has no answer and no verdict.
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": {
"message": "<message>"
},
"name": "clearrun_chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | The user message for the hosted API to answer and then score. Required. This is a prompt, not text to score as-is. Use clearrun_score or clearrun_evaluate for text that was already written. | |
| modelId | No | Optional model id for the hosted API to use when writing the answer. Omit it to let the API choose. | |
| sessionId | No | Optional session id to continue an earlier hosted chat. Omit it to start without a session. |