Skip to main content
Glama

Generate test artifacts

wopee_generate_artifact
Destructive

Generate AI-powered test artifacts, including app context, user stories, test cases, and steps, for a Wopee.io suite in the required order.

Instructions

Generate AI-powered test artifacts for a suite using the Wopee.io AI engine. Each call creates one artifact type — call multiple times for different types. Generation order matters: APP_CONTEXT must be generated before user stories, and user stories before test cases. If called out of order, the AI may produce lower quality results. By default the call waits up to 5 minutes for the generation and returns the generated artifact: APP_CONTEXT or GENERAL_USER_STORIES, or the suite's USER_STORIES (stories with their test cases and steps) for every other type. No wopee_fetch_artifact call is needed after it. With async: true, for TEST_CASES and USER_STORIES_WITH_TEST_CASES only, the call returns "Queued: …" at once; read the result later with wopee_fetch_artifact. If the 5 minutes pass first, the call fails with a [TIMEOUT] error while the generation goes on: do not call again (that starts a second generation), read the result later with wopee_fetch_artifact, and pass async: true next time for a long TEST_CASES or USER_STORIES_WITH_TEST_CASES generation. Do NOT use this to hand-edit existing artifacts — use wopee_update_artifact instead. TEST_CASES runs in UPDATE mode by default: existing test cases keep their steps and run history, and instructions says what to add or change. Destructive generations are mode CREATE (replaces the test cases in scope and deletes their steps, runs and code), USER_STORIES_WITH_TEST_CASES (rebuilds every story and test case) and TEST_CASE_STEPS (replaces the steps of the test cases in scope): use them only when the user explicitly asks for that, and scope them with selectedUserStories / selectedTestCases when the user named stories or test cases. Login credentials are project variables, referenced in steps as ${TESTING_USERNAME} / ${TESTING_PASSWORD}: check which exist with wopee_fetch_variables and set missing ones with wopee_update_variables before generating. Never put a password or other secret value in instructions — it would be copied into the artifact.

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": {
      "type": "<type>",
      "suiteUuid": "<suiteUuid>"
    },
    "name": "wopee_generate_artifact"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoTEST_CASES only. UPDATE (default) keeps every existing test case with its steps and run history, and adds or changes test cases around them. CREATE replaces the test cases of the stories in scope — of the whole suite when selectedUserStories is empty — and deletes their steps, run history and Playwright code. Use CREATE only when the user explicitly asks to start over.UPDATE
typeYesType of test artifact to generate. One of: APP_CONTEXT, GENERAL_USER_STORIES, USER_STORIES_WITH_TEST_CASES, TEST_CASES, TEST_CASE_STEPS, REUSABLE_TEST_CASES, REUSABLE_TEST_CASE_STEPS. Start with APP_CONTEXT, then generate stories and test cases from it.
asyncNoTEST_CASES and USER_STORIES_WITH_TEST_CASES only. true returns as soon as the generation is queued instead of waiting for it (a large suite can take several minutes); the content is then read later with wopee_fetch_artifact. Default false: wait and return the generated artifact.
suiteUuidYesUUID of the analysis suite to generate artifacts for. Get this from wopee_create_blank_suite or wopee_fetch_analysis_suites.
instructionsNoWhat the user asked for, in their words, e.g. 'add a negative test for an expired card'. Passed to the AI engine as the change request; without it, UPDATE removes no test case.
selectedTestCasesNoTest case identifiers to limit TEST_CASE_STEPS to, e.g. ['US001:TC002']. Leave empty for every test case in scope. Regenerating steps replaces the steps those test cases have.
selectedUserStoriesNoUser story ids to limit the generation to, e.g. ['US001', 'US003']. Leave empty for every story in the suite. Used by TEST_CASES and TEST_CASE_STEPS.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.32.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / async
      Added value: +{
      +  "description": "TEST_CASES and USER_STORIES_WITH_TEST_CASES only. true returns as soon as the generation is queued instead of waiting for it (a large suite can take several minutes); the content is then read later with wopee_fetch_artifact. Default false: wait and return the generated artifact.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / instructions
      Added value: +{
      +  "description": "What the user asked for, in their words, e.g. 'add a negative test for an expired card'. Passed to the AI engine as the change request; without it, UPDATE removes no test case.",
      +  "type": "string"
      +}
    • addedInput schema / properties / mode
      Added value: +{
      +  "default": "UPDATE",
      +  "description": "TEST_CASES only. UPDATE (default) keeps every existing test case with its steps and run history, and adds or changes test cases around them. CREATE replaces the test cases of the stories in scope — of the whole suite when selectedUserStories is empty — and deletes their steps, run history and Playwright code. Use CREATE only when the user explicitly asks to start over.",
      +  "enum": [
      +    "UPDATE",
      +    "CREATE"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / selectedTestCases
      Added value: +{
      +  "description": "Test case identifiers to limit TEST_CASE_STEPS to, e.g. ['US001:TC002']. Leave empty for every test case in scope. Regenerating steps replaces the steps those test cases have.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / selectedUserStories
      Added value: +{
      +  "description": "User story ids to limit the generation to, e.g. ['US001', 'US003']. Leave empty for every story in the suite. Used by TEST_CASES and TEST_CASE_STEPS.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed2 schema fields changedv1.0.1
    • changedInput schema / properties / suiteUuid / description
      Previous value: -"UUID of the suite to generate file(artifact) for"New value: +"UUID of the analysis suite to generate artifacts for. Get this from wopee_create_blank_suite or wopee_fetch_analysis_suites."
    • changedInput schema / properties / type / description
      Previous value: -"Chosen type of file(artifact) to generate"New value: +"Type of test artifact to generate. One of: APP_CONTEXT, GENERAL_USER_STORIES, USER_STORIES_WITH_TEST_CASES, TEST_CASES, TEST_CASE_STEPS, REUSABLE_TEST_CASES, REUSABLE_TEST_CASE_STEPS. Start with APP_CONTEXT, then generate stories and test cases from it."
  3. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only flag destructiveHint=true; the description earns credit for spelling out exactly what each destructive mode destroys (test cases in scope plus their steps, runs and code; full story rebuild; step replacement), what is returned per type, the 5-minute wait and [TIMEOUT] failure semantics including the warning not to retry, and the secret-handling constraint on `instructions`. This is substantially more than the annotations convey.

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 the destructive-mode warning before the mechanics, and nearly every sentence carries operational information. It is dense and long for a description, and the timeout passage repeats "read the result later with wopee_fetch_artifact" and the do-not-retry warning within a few lines, which costs some tightness.

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 carries the return-value burden itself and does so: it names what comes back for APP_CONTEXT, GENERAL_USER_STORIES and all other types, and what a queued async call returns. Combined with ordering, timeout, credential and destruction coverage, nothing an agent needs to invoke this correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds cross-parameter meaning the schema does not: that `type` is mutually exclusive per call, that `instructions` drives UPDATE-mode change requests, and that selectedUserStories / selectedTestCases are the scoping levers when the user names stories or test cases. The `async` constraint is restated rather than extended, which keeps it off a 5.

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 ("Generate AI-powered test artifacts for a suite") and immediately delimits the tool's role: one artifact type per call, call repeatedly for more. It explicitly separates itself from wopee_update_artifact (hand-editing) and wopee_fetch_artifact (reading results), so an agent can place it among its siblings without opening a schema.

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?

Gives explicit when-to-use ordering (APP_CONTEXT before stories, stories before test cases, with the consequence of getting it wrong), an explicit when-not-to-use route ("Do NOT use this to hand-edit existing artifacts — use wopee_update_artifact instead"), and a gating rule for destructive modes (only when the user explicitly asks, and scope them). It also tells the agent to check credentials via wopee_fetch_variables / wopee_update_variables first, which is a real prerequisite, not decoration.

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