Skip to main content
Glama

AI test case builder

build_test_pack
Read-onlyIdempotent

Validate 1-20 response tests and return JSON text to save as tests.json for PromptBrake CI. Use when the user has prompts and expected or forbidden response text; use map_owasp_llm_risk for risk-based test ideas. No account or API key required to create a pack; running it separately requires a PromptBrake runner and CI access with PB_CUSTOM_TESTS_FILE set to the saved file. Checks are case-insensitive text comparisons; they do not judge meaning or verify backend actions. Invalid packs return a tool error explaining the validation problem. Test content is not stored or executed; operational request metadata is logged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
testsYes1-20 response tests with unique names.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / tests / items / properties / name / description
      Previous value: -"Unique name: letters, numbers, spaces, . _ -"New value: +"Nonempty ASCII name starting with a letter or number; then letters, numbers, spaces, . _ -. Unique ignoring case."
    • changedInput schema / properties / tests / items / properties / prompt / description
      Previous value: -"Message to send to the chatbot."New value: +"Nonblank message for the user's chatbot; this tool does not send it."
    • changedInput schema / properties / tests / items / properties / value / description
      Previous value: -"Text the response is compared with."New value: +"Nonblank expected or forbidden text; comparisons ignore case and surrounding whitespace."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), yet the description adds substantial context beyond them: no account/API key needed to build, runner + CI access + PB_CUSTOM_TESTS_FILE required to run, checks are case-insensitive text comparisons that do not judge meaning or verify backend actions, invalid packs raise a validation error, and test content is not stored or executed while request metadata is logged.

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 purpose and output, then usage, then prerequisites, then check semantics. Every sentence carries content, though the density of constraints makes it longer than strictly necessary for a one-parameter tool.

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

Completeness5/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 explains the return value (JSON text to save as tests.json) and the failure mode (tool error on invalid packs). Combined with the prerequisites and check semantics, an agent has everything needed to call it correctly.

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 description coverage is 100% and there is a single parameter, so the schema already documents items, required fields, maxItems, and case-insensitive comparison. The description restates the 1-20 bound and the case-insensitive/whitespace behavior but adds no syntax or format detail the schema lacks.

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 resource ('Validate 1-20 response tests') plus the concrete output ('return JSON text to save as tests.json for PromptBrake CI'). It explicitly distinguishes itself from the sibling map_owasp_llm_risk, so an agent can route correctly without opening schemas.

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

Usage Guidelines5/5

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

Names the triggering condition ('when the user has prompts and expected or forbidden response text') and the alternative for the other case ('use map_owasp_llm_risk for risk-based test ideas'). It also clarifies the no-account path versus the separate execution prerequisites, which is real routing information.

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