Skip to main content
Glama

get_group_status

Check the current status of a registered test group in QIT Manager to monitor testing progress and results.

Instructions

Fetch the status of a registered test group from QIT Manager.

⚠️ 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
groupYesName of the test group to fetch status for
jsonNoReturn output in JSON format

Implementation Reference

  • The handler function implementing the core logic of the 'get_group_status' tool. It builds CLI arguments for the 'group:fetch' command using buildArgs and executes it via executeAndFormat, returning the formatted result.
    handler: async (args: { group: string; json?: boolean }) => { const cmdArgs = buildArgs("group:fetch", [args.group], { json: args.json, }); return executeAndFormat(cmdArgs); },
  • Zod schema for input validation: requires 'group' string, optional 'json' boolean.
    inputSchema: z.object({ group: z.string().describe("Name of the test group to fetch status for"), json: z .boolean() .optional() .describe("Return output in JSON format"), }),
  • Tool definition and registration object 'groupsTools' exporting the 'get_group_status' tool with name, description, inputSchema, and handler.
    export const groupsTools = { get_group_status: { name: "get_group_status", description: "Fetch the status of a registered test group from QIT Manager.", inputSchema: z.object({ group: z.string().describe("Name of the test group to fetch status for"), json: z .boolean() .optional() .describe("Return output in JSON format"), }), handler: async (args: { group: string; json?: boolean }) => { const cmdArgs = buildArgs("group:fetch", [args.group], { json: args.json, }); return executeAndFormat(cmdArgs); }, }, };
  • Central registration aggregating all tool sets, including groupsTools containing 'get_group_status', into 'allTools'.
    export const allTools = { ...authTools, ...testExecutionTools, ...testResultsTools, ...groupsTools, ...environmentTools, ...packagesTools, ...configTools, ...utilitiesTools,
  • src/server.ts:25-38 (registration)
    MCP server request handler for listing tools, dynamically generating the tools list from allTools including schemas and descriptions for 'get_group_status'.
    server.setRequestHandler(ListToolsRequestSchema, async () => { // Check if QIT CLI is available const cliInfo = detectQitCli(); const tools = Object.entries(allTools).map(([_, tool]) => ({ name: tool.name, description: cliInfo ? tool.description : `${tool.description}\n\n⚠️ QIT CLI not detected. ${getQitCliNotFoundError()}`, inputSchema: zodToJsonSchema(tool.inputSchema), })); return { tools }; });

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