test_prompt_rules
Test whether a chatbot or LLM feature keeps the rules in its system prompt. Rulebench reads the rules out of the prompt, writes everyday and adversarial test messages, runs them on the chosen models with the prompt as the system prompt, and grades every reply rule by rule. Returns the score per model, the rules that broke with example replies, and a report link. Use it after writing or changing a system prompt, or before switching models.
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>"
},
"name": "test_prompt_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A short name for the bot. | |
| models | No | OpenRouter model ids to test, up to 6 (default: three popular chat models). Call list_models for suggestions. | |
| prompt | Yes | The full system prompt to test. | |
| messages | No | How many test messages to write (default 24). |