Skip to main content
Glama

list_tests

Retrieve and filter test runs from the QIT CLI for WordPress/WooCommerce plugins. Use status, test type, or extension filters to find specific results.

Instructions

List test runs with optional filters. Default per_page is 10 to reduce response size.

⚠️ QIT CLI not detected. QIT CLI not found. Please install it using one of these methods:

  1. Via Composer (recommended): composer require woocommerce/qit-cli --dev

  2. Set QIT_CLI_PATH environment variable: export QIT_CLI_PATH=/path/to/qit

  3. Ensure 'qit' is available in your system PATH

For more information, visit: https://github.com/woocommerce/qit-cli

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusNoFilter by test status
test_typeNoFilter by test type (e.g., 'security', 'e2e')
extensionNoFilter by extension slug
per_pageNoMaximum number of results to return (default: 10)

Implementation Reference

  • Handler function that constructs flags from input arguments and invokes the underlying 'list-tests' CLI command via executeAndFormat.
    handler: async (args: {
      status?: string;
      test_type?: string;
      extension?: string;
      per_page?: number;
    }) => {
      // Default per_page to 10 to prevent large responses
      const perPage = args.per_page ?? 10;
    
      const flags: Record<string, string | boolean | undefined> = {
        test_status: args.status,
        test_types: args.test_type,
        extensions: args.extension,
        per_page: perPage.toString(),
      };
    
      const cmdArgs = buildArgs("list-tests", [], flags);
      return executeAndFormat(cmdArgs);
    },
  • Zod schema for input validation, defining optional filters for status, test_type, extension, and per_page limit.
    inputSchema: z.object({
      status: z
        .enum(["pending", "running", "success", "failed", "warning"])
        .optional()
        .describe("Filter by test status"),
      test_type: z
        .string()
        .optional()
        .describe("Filter by test type (e.g., 'security', 'e2e')"),
      extension: z
        .string()
        .optional()
        .describe("Filter by extension slug"),
      per_page: z
        .number()
        .optional()
        .describe("Maximum number of results to return (default: 10)"),
    }),
  • Complete definition of the 'list_tests' tool, including name, description, input schema, and handler, within the testResultsTools export.
    list_tests: {
      name: "list_tests",
      description: "List test runs with optional filters. Default per_page is 10 to reduce response size.",
      inputSchema: z.object({
        status: z
          .enum(["pending", "running", "success", "failed", "warning"])
          .optional()
          .describe("Filter by test status"),
        test_type: z
          .string()
          .optional()
          .describe("Filter by test type (e.g., 'security', 'e2e')"),
        extension: z
          .string()
          .optional()
          .describe("Filter by extension slug"),
        per_page: z
          .number()
          .optional()
          .describe("Maximum number of results to return (default: 10)"),
      }),
      handler: async (args: {
        status?: string;
        test_type?: string;
        extension?: string;
        per_page?: number;
      }) => {
        // Default per_page to 10 to prevent large responses
        const perPage = args.per_page ?? 10;
    
        const flags: Record<string, string | boolean | undefined> = {
          test_status: args.status,
          test_types: args.test_type,
          extensions: args.extension,
          per_page: perPage.toString(),
        };
    
        const cmdArgs = buildArgs("list-tests", [], flags);
        return executeAndFormat(cmdArgs);
      },
    },
  • Aggregation of all tools including testResultsTools (which contains list_tests) into allTools export.
    export const allTools = {
      ...authTools,
      ...testExecutionTools,
      ...testResultsTools,
  • src/server.ts:29-29 (registration)
    Final registration of all tools (including list_tests) into the MCP server tools array.
    const tools = Object.entries(allTools).map(([_, tool]) => ({

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/woocommerce/qit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server