Rulebench

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

使うべきか

品質と安全性

A
説明の品質
96%
スキーマの完全性
79%
命名の品質
91%
ポイズニングのリスク
100%
権限の一致
100%
プロトコルへの準拠
100%

ツール定義とプロトコルへの準拠に関する自動分析に基づいています。

コンテキストコスト

~1,162トークン数(ツール定義)
~607 B一般的なレスポンスサイズ
注意への影響は中程度(128k コンテキストの 0.91%)

これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。

インストール

ワンクリックインストール

これを `claude_desktop_config.json` ファイルに追加してください:

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

リモートエンドポイント

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

できること

ツール一覧

ツール(9)

🟢 読み取り専用🟡 書き込み🔴 削除⚪ 不明
⚪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.

入力スキーマ

{
  "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.

入力スキーマ

{
  "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.

入力スキーマ

{
  "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.

入力スキーマ

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

入力スキーマ

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

入力スキーマ

{
  "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.

入力スキーマ

{
  "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.

入力スキーマ

{
  "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.

入力スキーマ

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

コミュニティ

このサーバーを評価する

エビデンス

最近の観測

検証済みバージョンは記録されていませんツール 9 件