IA-QA — 17 QA judges for AI agents

v2.0.0
io.github.JcJamet/ia-qa-toolbox Checked 4 days ago Published 13 days ago

17 QA judges for agents: LLM outputs, agent runs, PR diffs, APIs, MCP servers.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_testing_guidelines

Query the IA-QA methodology knowledge base. Returns structured testing guidelines, assertion strategies, thresholds, best practices, and relevant MCP tools for a given topic. Call without a topic to list all available topics. Topics: llm-unit-testing, rag-pipeline, prompt-stability, prompt-ab-testing, embedding-quality, eval-framework, semantic-testing, auto-testing, security, api-testing, ci-cd, multimodal, llm-data-security, agent-observability, pro-tips, learning-paths, golden-dataset, selector-drift, qa-recipes, playbooks. Not sure where to start testing an LLM, RAG pipeline or agent? Call…

ParameterTypeDescription
categorystringTool category filter.
limitnumberNews: max articles (default 20).
max_resultsnumber
metricstring
newsboolean | string
querystringKeywords for the tool you need.
scorenumber
topicstringThe testing topic to retrieve guidelines for. Omit to get the start-here map and the full list of available topics.
with_schemaboolean

run_pr_gate_pipeline

When: a diff is ready for review. Gives: likely bugs in the added lines (with the diff line), risk score with every factor named, impacted areas, test cases to add, credentials added by the diff (BLOCK, masked previews), and with commit_message its Conventional Commits check. PASS / CONDITIONAL / BLOCK. Deterministic, no model call. Does not prove: that the change is correct; only a credential is a hard rule, the rest is triage.

ParameterTypeDescription
git_diff *stringUnified git diff (output of `git diff HEAD` or copied from GitHub diff view)
commit_messagestringChecked against Conventional Commits; an invalid one makes the verdict CONDITIONAL at most.
contextstringOptional PR title or description for richer analysis

generate_test_cases

Generate a set of test cases (valid, edge, invalid, pairwise) for a given feature description. Declared constraints drive the boundaries: a length or numeric bound ("[8-64]", "min 8 chars", "at least 8 characters" — read from inputs, and from the feature prose when a sentence names exactly one field) yields the last accepted value AND the first rejected one; a composition rule ("1 uppercase", "1 digit", "1 special character") yields one case that breaks only it. With no inputs, the fields the feature names next to a constraint are used, and inputsSource and warnings say so (or that none coul…

ParameterTypeDescription
api_keystringYour provider key, used for this call only.
confluence_pagesarrayWith ticket: documentation pages.
featurestringFeature or function to test: inputs, expected behaviour, context. A constraint stated here ("password must be at least 8 characters") applies when its sentence names exactly one field.
gherkinstringGherkin to fix.
inputsstringOptional: list of input parameters (one per line, e.g. "email: string [required]", "password: string [required, min 8 chars]", "age: number [18-99]")
max_tokensinteger
modelstringe.g. "gpt-4o-mini", "claude-haiku-4-5-20251001", "openai/gpt-oss-20b".
ticketobjectThe ticket's text: {key, summary, description, …} or Jira's issue shape (fields, ADF). This server never reads Jira.
warningsarrayWith gherkin: the warnings to fix.

analyze_test_results

Reads JUnit XML reports of test runs (Playwright, Cypress, Jest, Vitest, pytest, Surefire…), oldest first, and tells regressions from flaky tests. Each test gets a status (regression, broken, new_failure, failing, flaky, recovered), a confidence (confirmed, probable, undecided) and its evidence; failures sharing a cause are grouped, environment errors flagged. Deterministic. verdict FAIL = regression or broken in the latest run, INCONCLUSIVE = undecidable.

ParameterTypeDescription
reports *array | stringJUnit XML text of each run, oldest first (1 to 50).
commitsarrayOptional: the commit of each report, same order. Same-commit pass+fail proves a flake.

web_security_audit

When: a public site or API is about to ship, or a CORS call fails in the browser. Gives: headers (CSP, HSTS…), TLS certificate of the port the URL names, CORS policy and cookie flags, in parallel, one grade capped by the weakest link (an unmeasured check is listed, never counted as passing); checks runs only some; headers grades a pasted response header block for a server this one cannot reach; origin (+ method, request_headers, credentials) answers whether a page on that origin may call the URL, as the browser would decide. Optional AI review with model (BYOK). Does not prove: anything abou…

ParameterTypeDescription
api_keystringYour Groq API key, used for this request only. Without it the server key is used, 10 reviews a day.
checksarrayDefault: all four.
credentialsbooleanfetch with credentials: "include".
headersstring | objectPasted response headers (e.g. curl -sI output), instead of url.
methodstringMethod the page uses (default GET).
modelstringGroq model for the optional AI review (e.g. "openai/gpt-oss-20b"). Default "none": deterministic checks only, nothing sent to a model.
originstringOrigin of the calling page.
request_headersarrayHeader names the page sets.
urlstringFull URL to audit.

run_eval_contract

Run an IA-EVAL test suite (.ia-eval.yaml contract): call the model per scenario; return passed (true, false, null if undecided) and a verdict (PASS, FAIL, PARTIAL). Expectations are assertions that fail a scenario whatever its score; evaluators give the score. Hosted: pass inline_contract. validate_only calls no model. draft ({description, system_prompt?, scenario_count?, task_type?}) writes a contract from a plain-language description instead (server model, nothing to run yet): read it, add real inputs that are not in the description, then run it.

ParameterTypeDescription
api_keysobjectYour keys per provider. Only Groq falls back to the server key; any other provider needs yours.
contract_pathstringA .ia-eval.yaml under the server's working directory (local use).
draftobjectWrite a contract instead of running one.
inline_contractobjectThe contract as an object: "metadata" ({name, version, model?, provider?}), "expectations", "evaluators" and "scenarios" ([{id, input, expectations?}]). draft writes one.
overridesobjectOverride contract defaults
validate_onlybooleanCheck the contract against the IA-EVAL schema and stop: no model call, no key, deterministic. Returns valid + issues instead of throwing. Gate a PR that edits a contract on valid.

agent_checkout_eval

Judges a shopping agent's run in Sandbox Bazaar, a fictional shop whose scenarios hide known traps (injected instructions, last-step fees, pre-checked subscription, fake discount, cheaper listing, look-alike merchant, forced substitute). No arguments lists scenarios (task, policy, URL); run is the journal the shop exports. Deterministic, no model. verdict PASS, FAIL (each broken rule with step and trap) or INCONCLUSIVE (incomplete, a journal the shop cannot write, or an ending the policy did not ask for). A run that is not JSON or has no events list is refused (-32602), not judged.

ParameterTypeDescription
policyobjectPurchase policy, shaped like a scenario's default_policy. Default: the scenario's.
runThe journal: window.__checkoutRun, or its copied text.
scenariostringScenario id (bz-100…). Default: the journal's.

mcp_server_evaluate

When: building or choosing an MCP server. Gives: url → a live server over Streamable HTTP is checked as a client would meet it (handshake or server/discover, tools/list and every definition against the spec, error codes, one read-only tools/call, structuredContent against outputSchema, latency): PASS / FIX / BLOCK with a 0-100 score, INCONCLUSIVE when authorization is required. tools_list → a server it cannot reach (stdio, local, undeployed) is judged on its pasted tools/list answer, an array of tools or one tool, with the same definition rules; strict also requires documentation. Does not…

ParameterTypeDescription
strictbooleanWith tools_list: every description ≥ 20 characters and every parameter described.
test_tool_argsobjectReal arguments, sent to the tested server. Without them, required ones are invented.
test_tool_namestringTool to call. Default: a read-only one, preferring no required arg.
tools_liststring | object | arrayPasted answer to tools/list (JSON-RPC or its result), an array of tools or one tool, instead of url.
urlstringPublic URL of the MCP endpoint (e.g. https://mcp.example.com/mcp). An origin alone (https://www.ia-qa.com) tries /mcp, then /.

test_skill

Test a SKILL.md. No model, every call: lint (gate on lint.valid) and review (description lacks what/when, words shared with other_skills, leftovers, no done-check, missing files; why + fix each). Unless lint_only, a model picks a skill per request from names+descriptions: trigger_accuracy PASS ≥80, FIX ≥50, else BLOCK; your scenarios = gate, generated = signal; unanswered = INCONCLUSIVE. Server key 10 runs/day. mode "interview" (no skill_md): the questions to put to the person (never answer them yourself), then with answers: remarks per answer, the SKILL.md, scenarios for this tool and a s…

ParameterTypeDescription
answersobjectKeyed by question id; each step can be sent alone.
api_keystringUsed once, not stored.
dir_namestringIts folder.
filesarrayPaths in its folder.
lint_onlyboolean
modestringDefault test.
modelstringDefault openai/gpt-oss-20b.
namestringInterview: the skill name.
other_skillsarrayInstalled next to it.
scenario_countnumber
scenariosarrayMax 20, near misses included.
skill_mdstringFull SKILL.md, frontmatter included.

generate_ci_workflow

Generate a ready-to-commit GitHub Actions workflow that gates a build on IA-QA: "eval_contract" runs a .ia-eval.yaml through ia-qa-com/eval-action@v1 (provider key as a repo secret), "cli_checks" runs listed tools via npx @ia-qa/cli and fails on their gate field (review too: not decided is not a pass), "selector_drift" gates E2E selectors with @ia-qa/self-healing. Deterministic template, no LLM; returns the YAML, the secrets and the next steps. Pair with run_eval_contract (draft).

ParameterTypeDescription
app_base_urlstring[selector_drift] Default http://127.0.0.1:3000; must match .ia-qa/config.json.
app_start_commandstring[selector_drift] Boots the app, e.g. "npm run start:ci". Never guessed: omitted, the step is a TODO.
cli_toolsarrayTools to gate on. Recipes: screen_text and run_pr_gate_pipeline (the diff), package_check (package-lock.json), check_api_contract (openapi.yaml), web_security_audit (vars.TARGET_URL), mcp_server_evalu…
contract_pathstringDefault evals/smoke.ia-eval.yaml.
cronstringFor schedule (default '0 6 * * 1').
fail_on_failbooleanDefault true; false reports without gating.
gatestringDefault eval_contract. both = CLI checks + eval; all = CLI checks, drift, eval.
min_scorenumberOverride the contract min_score (0-100).
node_versionstringDefault "20".
providerstringDecides which repo secret is wired (default groq).
triggersarrayDefault push + pull_request.
workflow_namestring

package_check

Before installing a dependency: does the npm or PyPI package exist, is the version published, deprecated or yanked, which known vulnerabilities (OSV.dev, with fix version) it and its latest carry. Catches invented names. A lockfile audits every package, transitive ones too, with the chain pulling each flaw in. Names and versions go to OSV.dev, npm, PyPI. FAIL = missing package/version or high/critical flaw.

ParameterTypeDescription
ecosystemstringFor bare names (default npm).
lockfilestringOr alone: package-lock.json, pnpm-lock.yaml, yarn.lock, uv.lock, poetry.lock or pinned requirements.
manifeststringOr the text of a package.json or requirements.txt.
packagesarray | string"name@version" (npm), "name==version" (PyPI), or {name, version, ecosystem}. Up to 50.

rate_tool

Give honest usage feedback on an IA-QA MCP tool. Give a score (1-5) and a comment. Rate low (1-2) if the tool was wrong, irrelevant, or a poor fit; rate high (4-5) only if it genuinely solved your need. Maintainers read ratings, one vote per agent and tool a month: comments and per-tool scores are not published, only the overall average and vote count. Comments are screened: one carrying a credential is not stored, personal data becomes placeholders — describe what happened, not what a model should do. Skip routine successes: signal, not praise.

ParameterTypeDescription
score *numberRating from 1 (poor) to 5 (excellent)
tool_name *stringName of the MCP tool to rate (e.g. "format_json", "shield_analyze")
commentstringStrongly encouraged: what you were trying to do, whether the tool got you there, and what was missing, wrong or a poor fit. Up to 2000 chars are stored; beyond, the response says truncated: true — s…

screen_text

When: a text is about to enter an LLM (user input, retrieved document, tool result) or leaves one (an answer, a log line). Gives: one gate per check, the worst on top: injection (prompt injection, jailbreaks, attempts to override the system instructions), secrets (API keys, tokens, passwords), PII (emails, phones, card numbers), toxicity (hate speech, threats, insults, self-harm); findings never repeat a secret or a personal value (masked previews only). redact: true also returns the text with secrets and personal data masked ([REDACTED_SECRET_OPENAI_KEY], [REDACTED_EMAIL]…), to log or forwa…

ParameterTypeDescription
text *stringThe text to screen (up to 500 000 characters).
checksarrayDefault: all four.
redactbooleanAlso return redacted_text: the text with secrets (the secrets check's patterns), emails, phones, card numbers, IBANs and IPs replaced by [REDACTED_TYPE], e.g. before logging it.
sensitivitystringInjection patterns to report (default medium): low keeps only critical ones, high adds low-severity ones such as a continuation attack ("as I was saying").

evaluate_llm_output

When: you hold outputs a model already produced and want them judged without calling the model again. Each check runs when its input is given: source → grounding: is the model making things up, claims, numbers or negations its source does not support; reference → similarity to an expected answer (cosine + ROUGE-L); rules → guardrails on what the assistant may or may not say (must include, must not include, length, format, regex, no PII); schema → JSON Schema; outputs (the same question asked several times) → consistency; variants ({variantId, answer}, e.g. answers for men and for wom…

ParameterTypeDescription
baseobjectMetamorphic: {question?, output} of the original question.
checksarrayDefault: every check whose input is given.
metamorphic_thresholdsobjectPer-relation overrides, 0-1.
outputstringThe model output to judge.
outputsarraySeveral outputs of the same prompt.
referencestringExpected answer.
rulesarray[{type, value}]: must_include, must_not_include, max_length, min_length, word_count_max, word_count_min, starts_with, ends_with, format (json, markdown, bullet_list), regex_match, regex_not_match; or…
schemaobjectJSON Schema the output (as JSON) must satisfy.
sourcestringText the output must be grounded in.
thresholdsobjectFor similarity: {cosine, rouge_l} (defaults 0.75, 0.5).
transformedarrayMetamorphic: [{relation: case|typo|paraphrase|reorder|translation|specialization, output}], answers to transformed questions.
variantsarray[{variantId, answer}], one per variant of the prompt.

evaluate_agent_run

When: an agent ran and you have what it did. Gives: trajectory (trace + assertions: order, must_call, must_not_call, max/min calls, no_error, recovery, no_injection in tool results, no_pii in the final answer; OpenAI, Anthropic, LangChain or ReAct traces) and tool calls (calls + tools: the arguments of each function call or tool_use, even a single one, checked against its declared definition in OpenAI, MCP or Anthropic form: name allowed, required arguments, types, enums, no extra argument). One gate per check, the worst on top; an unreadable trace is INCONCLUSIVE, never PASS. Deterministic, n…

ParameterTypeDescription
assertionsarray[{type: "order", before, after} | {type: "must_call", tool} | …].
callsarrayTool calls the agent made: {name, arguments} (or Anthropic {name, input}).
toolsarrayThe tool definitions it was given (OpenAI parameters, MCP inputSchema or Anthropic input_schema).
traceMessages array, run tree, or a Thought/Action/Observation log.

check_api_contract

When: you hold an API contract and want it checked. Gives: spec → is this OpenAPI 3.x document valid (required fields, unique operationIds, undeclared $ref, missing 2xx; errors with JSON pointers); schema + value or values → does each JSON value satisfy this JSON Schema (draft-07 subset; a keyword it cannot evaluate reads INCONCLUSIVE, never valid). One gate per check, the worst on top. Deterministic, no network. Does not prove: that the running API returns what the spec says (pass a real response as value against its schema), nor anything about keywords outside the subset.

ParameterTypeDescription
schemastring | objectJSON Schema, text or object.
specstring | objectOpenAPI 3.x document, JSON or YAML text, or the parsed object.
valuestring | object | arrayOne JSON value to check against schema (a scalar as JSON text, e.g. "0").
valuesarraySeveral values, e.g. responses captured from the API; each checked.

model_catalogue

When: choosing a model, estimating a cost or checking a context window. Prices and context windows are read daily from each provider's own pricing page (prices_as_of, price_status on every price). Gives, by what you pass: models → their facts, side by side when 2-5; models + input_tokens (+ output_tokens) → cost per model; models + messages → does the conversation fit each window (the one gated answer); provider → the catalogue; use_case / features / max_budget / vram_gb → a shortlist on facts; text → its token count. Does not prove: which model is best for your task: only running…

ParameterTypeDescription
featuresarrayvision, function_calling, json_mode, streaming, reasoning
input_tokensnumber
max_budgetnumberUSD per month, with tokens_per_day.
max_output_tokensnumberReserved for the answer (default 4096).
messagesarray[{role, content}]: checked against each model's window.
modestringcloud or local
modelsarray | stringModel ids, e.g. ["claude-sonnet-5-5", "gpt-4o"].
output_tokensnumber
providerstringList one provider's models ("all" for every one).
quantizationstring
textstringCount its tokens.
tokens_per_daynumber
top_nnumberHow many models the shortlist returns (it comes in "shortlist", beside the catalogue when provider is given).
use_casestring
vram_gbnumber