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개