Check an AI answer against its prompt
check_answerDid the AI do what the prompt asked? Give the prompt and the answer it got. Finds every rule in the prompt that can be checked by reading (length in words, characters, sentences or lines, how many items, a list, a table and its columns, JSON and its keys, sections, plain text, what to include, start or end with, sign off as, what to leave out, no introduction, the language and spelling, first person, plain words, asking first, marking what is missing) and says for each whether the answer kept or broke it, with where. Also lists numbers, names, links and quotes in the answer that the prompt never gave it, which is where made-up facts hide, and for each broken rule the line that makes it hold. Use it before an AI answer is used or sent, and to make a prompt more reliable.
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": {
"prompt": "<prompt>",
"answer": "<answer>"
},
"name": "check_answer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answer | Yes | The answer the AI gave, exactly as it came. | |
| prompt | Yes | The prompt that was sent, with any material pasted into it. | |
| system | No | Optional system prompt or custom instructions it had. | |
| target | No | The model the fixed prompt should be laid out for. | any |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| facts | Yes | What the answer added: numbers, names, links, quotes, sources it claims and blanks it left, each with where. | |
| rules | Yes | Every rule found in the prompt, with what the answer did. | |
| tests | Yes | The rules as Prompt Tester checks. | |
| answer | Yes | Counts for the answer: words, sentences, paragraphs, list items, language, reading grade. | |
| summary | Yes | ||
| has_material | Yes |