Litmiq prompt evals
Run prompt evals, compare prompts and score outputs with assertions and an LLM judge.
Should I use this
Quality & Safety
Findings (2)
- HIGH
- MEDIUMin get_share_link
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
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": {
"litmiq": {
"url": "https://mcp.litmiq.com/mcp"
}
}
}Remote endpoints
https://mcp.litmiq.com/mcpstreamable-httpWhat it can do
Tool inventory
Tools (5)
🟢run_eval(variants, cases, assertions, provider, model, ...)
Run one or more system-prompt variants against test cases and check every output with assertions (contains, not-contains, regex, json-valid, max-length, llm-judge). Use this when the user wants to test or regression-check a prompt. Calls the model with the user's own provider key (sent per call, never stored) or, within a small daily cap, a free Workers AI model. Free plan: 3 runs a day, up to 2 variants and 5 cases. Pro and Team: more.
Input Schema
{
"type": "object",
"properties": {
"variants": {
"type": "array",
"minItems": 1,
"maxItems": 4,
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"system_prompt": {
"type": "string"
}
},
"required": [
"system_prompt"
],
"additionalProperties": false
},
"description": "System prompts to test. Give each a short name."
},
"cases": {
"type": "array",
"minItems": 1,
"maxItems": 20,
"items": {
"type": "object",
"properties": {
"input": {
"type": "string",
"description": "The user message sent to the model."
},
"expected": {
"type": "string",
"description": "Optional expected behavior. With no assertions at all, it becomes an llm-judge check."
},
"assertions": {
"type": "array",
"items": {
"type": "object",
"description": "One check on a model output. contains / not-contains: 'value' is a string (case-insensitive unless case_sensitive is true). regex: 'value' is the pattern, optional 'flags' (i, m, s, u). json-valid: output parses as JSON (a ```json fence is accepted), optional 'required_keys'. max-length: 'value' is a maximum number of characters. llm-judge: 'criteria' text, scored 0-10 by a judge model, passes at or above 'threshold' (default 7).",
"properties": {
"type": {
"type": "string",
"enum": [
"contains",
"not-contains",
"regex",
"json-valid",
"max-length",
"llm-judge"
]
},
"value": {
"description": "String for contains, not-contains and regex; integer for max-length.",
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"case_sensitive": {
"type": "boolean"
},
"flags": {
"type": "string"
},
"required_keys": {
"type": "array",
"items": {
"type": "string"
}
},
"criteria": {
"type": "string"
},
"threshold": {
"type": "number",
"minimum": 0,
"maximum": 10
}
},
"required": [
"type"
],
"additionalProperties": false
},
"maxItems": 8
}
},
"required": [
"input"
],
"additionalProperties": false
},
"description": "Test cases."
},
"assertions": {
"type": "array",
"items": {
"type": "object",
"description": "One check on a model output. contains / not-contains: 'value' is a string (case-insensitive unless case_sensitive is true). regex: 'value' is the pattern, optional 'flags' (i, m, s, u). json-valid: output parses as JSON (a ```json fence is accepted), optional 'required_keys'. max-length: 'value' is a maximum number of characters. llm-judge: 'criteria' text, scored 0-10 by a judge model, passes at or above 'threshold' (default 7).",
"properties": {
"type": {
"type": "string",
"enum": [
"contains",
"not-contains",
"regex",
"json-valid",
"max-length",
"llm-judge"
]
},
"value": {
"description": "String for contains, not-contains and regex; integer for max-length.",
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"case_sensitive": {
"type": "boolean"
},
"flags": {
"type": "string"
},
"required_keys": {
"type": "array",
"items": {
"type": "string"
}
},
"criteria": {
"type": "string"
},
"threshold": {
"type": "number",
"minimum": 0,
"maximum": 10
}
},
"required": [
"type"
],
"additionalProperties": false
},
"maxItems": 8,
"description": "Assertions applied to every case, in addition to any a case lists itself."
},
"provider": {
"type": "string",
"enum": [
"openai",
"anthropic",
"gemini",
"xai",
"mistral",
"deepseek",
"groq",
"openrouter"
],
"description": "Which provider your own key is for. Optional when the model name makes it obvious (gpt-*, claude-*, gemini-*, grok-*, mistral-*, deepseek-*)."
},
"model": {
"type": "string",
"description": "Model id exactly as the provider names it. Required when you bring a key. Leave out, together with the key, to use the free Workers AI model (small Llama; capped; weaker judge)."
},
"provider_key": {
"type": "string",
"description": "Your own provider API key, used for this call only and never stored or logged. Prefer sending it in the X-Litmiq-Provider-Key request header instead: tool arguments are visible to the chat app and the model vendor."
},
"judge_model": {
"type": "string",
"description": "Model id for llm-judge assertions on the same provider. Defaults to 'model'."
},
"share": {
"type": "string",
"enum": [
"scores",
"full"
],
"description": "Also return a Litmiq share link: 'scores' (no text) or 'full' (prompts, inputs, outputs)."
}
},
"required": [
"variants",
"cases"
],
"additionalProperties": false
}⚪compare_prompts(prompt_a, prompt_b, cases, assertions, provider, ...)
A/B test two system prompts on the same test cases and say which one passes more assertions. Same limits and provider-key rules as run_eval. Use this for 'is my new prompt better than the old one?'.
Input Schema
{
"type": "object",
"properties": {
"prompt_a": {
"type": "string",
"description": "The current (baseline) system prompt."
},
"prompt_b": {
"type": "string",
"description": "The candidate system prompt."
},
"cases": {
"type": "array",
"minItems": 1,
"maxItems": 20,
"items": {
"type": "object",
"properties": {
"input": {
"type": "string",
"description": "The user message sent to the model."
},
"expected": {
"type": "string",
"description": "Optional expected behavior. With no assertions at all, it becomes an llm-judge check."
},
"assertions": {
"type": "array",
"items": {
"type": "object",
"description": "One check on a model output. contains / not-contains: 'value' is a string (case-insensitive unless case_sensitive is true). regex: 'value' is the pattern, optional 'flags' (i, m, s, u). json-valid: output parses as JSON (a ```json fence is accepted), optional 'required_keys'. max-length: 'value' is a maximum number of characters. llm-judge: 'criteria' text, scored 0-10 by a judge model, passes at or above 'threshold' (default 7).",
"properties": {
"type": {
"type": "string",
"enum": [
"contains",
"not-contains",
"regex",
"json-valid",
"max-length",
"llm-judge"
]
},
"value": {
"description": "String for contains, not-contains and regex; integer for max-length.",
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"case_sensitive": {
"type": "boolean"
},
"flags": {
"type": "string"
},
"required_keys": {
"type": "array",
"items": {
"type": "string"
}
},
"criteria": {
"type": "string"
},
"threshold": {
"type": "number",
"minimum": 0,
"maximum": 10
}
},
"required": [
"type"
],
"additionalProperties": false
},
"maxItems": 8
}
},
"required": [
"input"
],
"additionalProperties": false
}
},
"assertions": {
"type": "array",
"items": {
"type": "object",
"description": "One check on a model output. contains / not-contains: 'value' is a string (case-insensitive unless case_sensitive is true). regex: 'value' is the pattern, optional 'flags' (i, m, s, u). json-valid: output parses as JSON (a ```json fence is accepted), optional 'required_keys'. max-length: 'value' is a maximum number of characters. llm-judge: 'criteria' text, scored 0-10 by a judge model, passes at or above 'threshold' (default 7).",
"properties": {
"type": {
"type": "string",
"enum": [
"contains",
"not-contains",
"regex",
"json-valid",
"max-length",
"llm-judge"
]
},
"value": {
"description": "String for contains, not-contains and regex; integer for max-length.",
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"case_sensitive": {
"type": "boolean"
},
"flags": {
"type": "string"
},
"required_keys": {
"type": "array",
"items": {
"type": "string"
}
},
"criteria": {
"type": "string"
},
"threshold": {
"type": "number",
"minimum": 0,
"maximum": 10
}
},
"required": [
"type"
],
"additionalProperties": false
},
"maxItems": 8,
"description": "Assertions applied to every case, in addition to any a case lists itself."
},
"provider": {
"type": "string",
"enum": [
"openai",
"anthropic",
"gemini",
"xai",
"mistral",
"deepseek",
"groq",
"openrouter"
],
"description": "Which provider your own key is for. Optional when the model name makes it obvious (gpt-*, claude-*, gemini-*, grok-*, mistral-*, deepseek-*)."
},
"model": {
"type": "string",
"description": "Model id exactly as the provider names it. Required when you bring a key. Leave out, together with the key, to use the free Workers AI model (small Llama; capped; weaker judge)."
},
"provider_key": {
"type": "string",
"description": "Your own provider API key, used for this call only and never stored or logged. Prefer sending it in the X-Litmiq-Provider-Key request header instead: tool arguments are visible to the chat app and the model vendor."
},
"judge_model": {
"type": "string",
"description": "Model id for llm-judge assertions on the same provider. Defaults to 'model'."
},
"share": {
"type": "string",
"enum": [
"scores",
"full"
],
"description": "Also return a Litmiq share link: 'scores' (no text) or 'full' (prompts, inputs, outputs)."
}
},
"required": [
"prompt_a",
"prompt_b",
"cases"
],
"additionalProperties": false
}🟢score_outputs(cases, assertions, share)
Check model outputs you already have against deterministic assertions (contains, not-contains, regex, json-valid, max-length). No model is called and nothing costs tokens, so it is not counted against the daily run cap. Use this to grade outputs from another tool, or to re-check a run_eval result.
Input Schema
{
"type": "object",
"properties": {
"cases": {
"type": "array",
"minItems": 1,
"maxItems": 50,
"items": {
"type": "object",
"properties": {
"input": {
"type": "string",
"description": "Optional: the prompt that produced the outputs, for the report."
},
"outputs": {
"type": "array",
"minItems": 1,
"maxItems": 8,
"items": {
"type": "object",
"properties": {
"variant": {
"type": "string",
"description": "Label such as 'baseline' or 'new'."
},
"text": {
"type": "string"
}
},
"required": [
"text"
],
"additionalProperties": false
}
},
"assertions": {
"type": "array",
"items": {
"type": "object",
"description": "One check on a model output. contains / not-contains: 'value' is a string (case-insensitive unless case_sensitive is true). regex: 'value' is the pattern, optional 'flags' (i, m, s, u). json-valid: output parses as JSON (a ```json fence is accepted), optional 'required_keys'. max-length: 'value' is a maximum number of characters. llm-judge: 'criteria' text, scored 0-10 by a judge model, passes at or above 'threshold' (default 7).",
"properties": {
"type": {
"type": "string",
"enum": [
"contains",
"not-contains",
"regex",
"json-valid",
"max-length",
"llm-judge"
]
},
"value": {
"description": "String for contains, not-contains and regex; integer for max-length.",
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"case_sensitive": {
"type": "boolean"
},
"flags": {
"type": "string"
},
"required_keys": {
"type": "array",
"items": {
"type": "string"
}
},
"criteria": {
"type": "string"
},
"threshold": {
"type": "number",
"minimum": 0,
"maximum": 10
}
},
"required": [
"type"
],
"additionalProperties": false
},
"maxItems": 8
}
},
"required": [
"outputs"
],
"additionalProperties": false
}
},
"assertions": {
"type": "array",
"items": {
"type": "object",
"description": "One check on a model output. contains / not-contains: 'value' is a string (case-insensitive unless case_sensitive is true). regex: 'value' is the pattern, optional 'flags' (i, m, s, u). json-valid: output parses as JSON (a ```json fence is accepted), optional 'required_keys'. max-length: 'value' is a maximum number of characters. llm-judge: 'criteria' text, scored 0-10 by a judge model, passes at or above 'threshold' (default 7).",
"properties": {
"type": {
"type": "string",
"enum": [
"contains",
"not-contains",
"regex",
"json-valid",
"max-length",
"llm-judge"
]
},
"value": {
"description": "String for contains, not-contains and regex; integer for max-length.",
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"case_sensitive": {
"type": "boolean"
},
"flags": {
"type": "string"
},
"required_keys": {
"type": "array",
"items": {
"type": "string"
}
},
"criteria": {
"type": "string"
},
"threshold": {
"type": "number",
"minimum": 0,
"maximum": 10
}
},
"required": [
"type"
],
"additionalProperties": false
},
"maxItems": 8,
"description": "Assertions applied to every case, in addition to any a case lists itself."
},
"share": {
"type": "string",
"enum": [
"scores",
"full"
],
"description": "Also return a Litmiq share link: 'scores' (no text) or 'full' (prompts, inputs, outputs)."
}
},
"required": [
"cases"
],
"additionalProperties": false
}🟢list_templates(id, query)
List Litmiq's free, ready-to-run eval templates (all illustrative, CC BY 4.0), or fetch one by id to get its system prompt, scoring criteria and test cases in the shape run_eval expects.
Input Schema
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "A template id from the list. Omit to list all."
},
"query": {
"type": "string",
"description": "Optional text to filter the list by name."
}
},
"additionalProperties": false
}🟢get_share_link(result, mode)
Turn a run_eval, compare_prompts or score_outputs result into a Litmiq share link (https://litmiq.com/shared-report#report=...). 'scores' mode (default) includes no prompt or output text. Nothing is stored: the link itself carries the report.
Input Schema
{
"type": "object",
"properties": {
"result": {
"type": "object",
"description": "The full result object from a previous run_eval, compare_prompts or score_outputs call."
},
"mode": {
"type": "string",
"enum": [
"scores",
"full"
],
"description": "Default 'scores'."
}
},
"required": [
"result"
],
"additionalProperties": false
}Community
Evidence