Skip to main content
Glama

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

NameRequiredDescriptionDefault
nameNoA short name for the bot.
modelsNoOpenRouter model ids to test, up to 6 (default: three popular chat models). Call list_models for suggestions.
promptYesThe full system prompt to test.
messagesNoHow many test messages to write (default 24).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare readOnlyHint=false and openWorldHint=true, so the agent already knows this is a non-read operation that reaches external services. The description adds useful context — that it calls chosen models with the prompt as system prompt and returns per-model scores, broken rules with example replies, and a report link — but omits cost, latency, and rate-limit implications of an external multi-model run.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core question the tool answers, followed by mechanism, then output, then usage timing. Every sentence carries content, though the mechanism sentence is dense and could be split for scanability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description correctly fills the gap by summarizing the return payload (per-model score, broken rules with examples, report link). For a four-parameter tool that spends real model calls, missing notes on run duration or cost keep it short of full completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all four parameters are already documented in the schema, including model count limits and the list_models cross-reference. The description adds only indirect meaning (models receive the system prompt, messages are everyday and adversarial, grading is per rule), which is baseline-level value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and object ('test whether a chatbot or LLM feature keeps the rules in its system prompt') and then explains the mechanism — rule extraction, generated messages, per-model runs, rule-by-rule grading. This is clearly distinct from siblings like retest_prompt or suggest_prompt_fix.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-to-use conditions: 'after writing or changing a system prompt, or before switching models.' It does not name when to prefer siblings such as retest_prompt or gate_model_change instead, so the routing guidance is clear but not complete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources