Test a chatbot's system prompt: find which rules each model breaks, fix the prompt and retest.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Bearer followed by your Weightship API key (ws_...). Get one free at https://weightship.com/rulebench/start
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Check a model change before it ships: a fine-tune, a weight edit, a merge, or switching to a different model. The current model (base) and the changed one (candidate) answer the same audit messages with the bot's instructions, plus a fixed set of everyday-skill prompts (facts, arithmetic, formats, other languages, refusals, coherence). The gate fails if the candidate is measurably worse on any rule or skill, and returns the replies that got worse. Each side is {"model": id} (with key_id for a connected key), {"ref": "handle/model"} for a model hosted on Weightship, or {"replies": {message_id: text}} for a model you ran yourself (get the messages with get_gate_messages).
The model in use now.
The changed model.
Or the bot's system prompt, to make a new audit for the gate.
Also check everyday skills (default true).
An existing audit whose messages to use.
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http rulebench https://api.weightship.com/mcp \ --header 'Authorization: Bearer YOUR_TOKEN'
Headers
Authorization (required): Bearer followed by your Weightship API key (ws_...). Get one free at https://weightship.com/rulebench/startCheck a model change before it ships: a fine-tune, a weight edit, a merge, or switching to a different model. The current model (base) and the changed one (candidate) answer the same audit messages with the bot's instructions, plus a fixed set of everyday-skill prompts (facts, arithmetic, formats, other languages, refusals, coherence). The gate fails if the candidate is measurably worse on any rule or skill, and returns the replies that got worse. Each side is {"model": id} (with key_id for a connected key), {"ref": "handle/model"} for a model hosted on Weightship, or {"replies": {message_id: text}} for a model you ran yourself (get the messages with get_gate_messages).
| Argument | Type | Description |
|---|---|---|
| base* | object | The model in use now. |
| prompt | string | Or the bot's system prompt, to make a new audit for the gate. |
| skills | boolean | Also check everyday skills (default true). |
| audit_id | string | An existing audit whose messages to use. |
| candidate* | object | The changed model. |
{
"type": "object",
"required": [
"base",
"candidate"
],
"properties": {
"base": {
"type": "object",
"description": "The model in use now."
},
"prompt": {
"type": "string",
"description": "Or the bot's system prompt, to make a new audit for the gate."
},
"skills": {
"type": "boolean",
"description": "Also check everyday skills (default true)."
},
"audit_id": {
"type": "string",
"description": "An existing audit whose messages to use."
},
"candidate": {
"type": "object",
"description": "The changed model."
}
}
}Every message a gate will ask, with the system prompt to use, so you can run a local or private model on them and send its replies to gate_model_change. Makes an audit from prompt if you don't pass audit_id.
| Argument | Type | Description |
|---|---|---|
| prompt | string | |
| skills | boolean | |
| audit_id | string |
{
"type": "object",
"properties": {
"prompt": {
"type": "string"
},
"skills": {
"type": "boolean"
},
"audit_id": {
"type": "string"
}
}
}The verdict of a gate, waiting up to wait_seconds while it runs.
| Argument | Type | Description |
|---|---|---|
| gate_id* | string | |
| wait_seconds | integer |
{
"type": "object",
"required": [
"gate_id"
],
"properties": {
"gate_id": {
"type": "string"
},
"wait_seconds": {
"type": "integer",
"maximum": 55,
"minimum": 0
}
}
}Get the results of a Rulebench audit, waiting up to wait_seconds for runs still in progress.
| Argument | Type | Description |
|---|---|---|
| audit_id* | string | |
| wait_seconds | integer |
{
"type": "object",
"required": [
"audit_id"
],
"properties": {
"audit_id": {
"type": "string"
},
"wait_seconds": {
"type": "integer",
"maximum": 55,
"minimum": 0
}
}
}Suggested chat models to test (OpenRouter ids). Any OpenRouter model id works.
No arguments.
{
"type": "object",
"properties": {}
}Run an audit's same test messages on the same models again, either unchanged (to check a model update) or with a revised prompt, and report before versus after.
| Argument | Type | Description |
|---|---|---|
| prompt | string | Revised system prompt. Leave out to rerun the original. |
| audit_id* | string |
{
"type": "object",
"required": [
"audit_id"
],
"properties": {
"prompt": {
"type": "string",
"description": "Revised system prompt. Leave out to rerun the original."
},
"audit_id": {
"type": "string"
}
}
}Rerun an audit daily or weekly and email the account owner when a rule starts breaking more often (for example after a provider updates a model).
| Argument | Type | Description |
|---|---|---|
| audit_id* | string | |
| schedule* | string |
{
"type": "object",
"required": [
"audit_id",
"schedule"
],
"properties": {
"audit_id": {
"type": "string"
},
"schedule": {
"enum": [
"daily",
"weekly",
"off"
],
"type": "string"
}
}
}Draft a revised system prompt that fixes the rules an audit found broken. Returns the new prompt and what changed; run retest_prompt with it to check.
| Argument | Type | Description |
|---|---|---|
| audit_id* | string |
{
"type": "object",
"required": [
"audit_id"
],
"properties": {
"audit_id": {
"type": "string"
}
}
}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.
| Argument | Type | Description |
|---|---|---|
| name | string | A short name for the bot. |
| models | array | OpenRouter model ids to test, up to 6 (default: three popular chat models). Call list_models for suggestions. |
| prompt* | string | The full system prompt to test. |
| messages | integer | How many test messages to write (default 24). |
{
"type": "object",
"required": [
"prompt"
],
"properties": {
"name": {
"type": "string",
"description": "A short name for the bot."
},
"models": {
"type": "array",
"items": {
"type": "string"
},
"description": "OpenRouter model ids to test, up to 6 (default: three popular chat models). Call list_models for suggestions."
},
"prompt": {
"type": "string",
"description": "The full system prompt to test."
},
"messages": {
"type": "integer",
"maximum": 60,
"minimum": 6,
"description": "How many test messages to write (default 24)."
}
}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Dec 2, 2026.