Rulebench

Test a chatbot's system prompt: find which rules each model breaks, fix the prompt and retest.

Should I use this

Quality & Safety

A
Description quality
96%
Schema completeness
79%
Naming quality
91%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~1,162Tokens (tool definitions)
~607 BTypical response size
Moderate attention impact (0.91% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "rulebench": {
      "url": "https://api.weightship.com/mcp"
    }
  }
}

Remote endpoints

https://api.weightship.com/mcpstreamable-http

What it can do

Tool inventory

Tools (9)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
⚪test_prompt_rules(prompt, models, messages, name)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "prompt": {
      "type": "string",
      "description": "The full system prompt to test."
    },
    "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."
    },
    "messages": {
      "type": "integer",
      "minimum": 6,
      "maximum": 60,
      "description": "How many test messages to write (default 24)."
    },
    "name": {
      "type": "string",
      "description": "A short name for the bot."
    }
  },
  "required": [
    "prompt"
  ]
}
🟢get_rulebench_report(audit_id, wait_seconds)

Get the results of a Rulebench audit, waiting up to wait_seconds for runs still in progress.

Input Schema

{
  "type": "object",
  "properties": {
    "audit_id": {
      "type": "string"
    },
    "wait_seconds": {
      "type": "integer",
      "minimum": 0,
      "maximum": 55
    }
  },
  "required": [
    "audit_id"
  ]
}
🟢suggest_prompt_fix(audit_id)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "audit_id": {
      "type": "string"
    }
  },
  "required": [
    "audit_id"
  ]
}
🟢retest_prompt(audit_id, prompt)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "audit_id": {
      "type": "string"
    },
    "prompt": {
      "type": "string",
      "description": "Revised system prompt. Leave out to rerun the original."
    }
  },
  "required": [
    "audit_id"
  ]
}
⚪schedule_monitoring(audit_id, schedule)

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).

Input Schema

{
  "type": "object",
  "properties": {
    "audit_id": {
      "type": "string"
    },
    "schedule": {
      "type": "string",
      "enum": [
        "daily",
        "weekly",
        "off"
      ]
    }
  },
  "required": [
    "audit_id",
    "schedule"
  ]
}
🟡gate_model_change(audit_id, prompt, base, candidate, skills)

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).

Input Schema

{
  "type": "object",
  "properties": {
    "audit_id": {
      "type": "string",
      "description": "An existing audit whose messages to use."
    },
    "prompt": {
      "type": "string",
      "description": "Or the bot's system prompt, to make a new audit for the gate."
    },
    "base": {
      "type": "object",
      "description": "The model in use now."
    },
    "candidate": {
      "type": "object",
      "description": "The changed model."
    },
    "skills": {
      "type": "boolean",
      "description": "Also check everyday skills (default true)."
    }
  },
  "required": [
    "base",
    "candidate"
  ]
}
🟡get_gate_messages(audit_id, prompt, skills)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "audit_id": {
      "type": "string"
    },
    "prompt": {
      "type": "string"
    },
    "skills": {
      "type": "boolean"
    }
  }
}
🟢get_gate_result(gate_id, wait_seconds)

The verdict of a gate, waiting up to wait_seconds while it runs.

Input Schema

{
  "type": "object",
  "properties": {
    "gate_id": {
      "type": "string"
    },
    "wait_seconds": {
      "type": "integer",
      "minimum": 0,
      "maximum": 55
    }
  },
  "required": [
    "gate_id"
  ]
}
🟢list_models

Suggested chat models to test (OpenRouter ids). Any OpenRouter model id works.

Input Schema

{
  "type": "object",
  "properties": {}
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded9 tools