Skip to main content
Glama

get_suite_run_status

Check the current execution status of a BugBug test suite run using its unique identifier to monitor test progress and completion.

Instructions

Get current status of a BugBug suite run

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
runIdYesSuite run UUID

Implementation Reference

  • The complete tool object definition for 'get_suite_run_status', including the handler function that executes the tool logic by calling the bugbugClient API and formatting the response.
    export const getSuiteRunStatusTool: Tool = { name: 'get_suite_run_status', title: 'Get current status of a BugBug suite run', description: 'Get current status of a BugBug suite run', inputSchema: z.object({ runId: z.string().describe('Suite run UUID'), }).shape, handler: async ({ runId }) => { try { const statusResponse = await bugbugClient.getSuiteRunStatus(runId); if (statusResponse.status !== 200) { return { content: [ { type: 'text', text: `Error: ${statusResponse.status} ${statusResponse.statusText}`, }, ], }; } const status = statusResponse.data; return { content: [ { type: 'text', text: `**Suite Run Status:**\n\n- **ID:** ${status.id}\n- **Status:** ${status.status}\n- **Last Modified:** ${status.modified}\n- **Web App URL:** ${status.webappUrl}`, }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error fetching suite run status: ${error instanceof Error ? error.message : 'Unknown error'}`, }, ], }; } } };
  • Zod input schema for the tool, validating the runId parameter.
    inputSchema: z.object({ runId: z.string().describe('Suite run UUID'), }).shape,
  • Registration function that registers all tools, including get_suite_run_status from suiteRunsTools, using MCP server.registerTool.
    export function registerAllTools(server: McpServer): void { const tools: Record<string, Tool> = { ...configTools, ...testsTools, ...testRunsTools, ...suitesTools, ...suiteRunsTools, ...profilesTools, ...advancedTools, }; for (const t in tools) { server.registerTool( tools[t].name, { description: tools[t].description, inputSchema: tools[t].inputSchema, annotations: { title: tools[t].title }, }, (args: unknown) => tools[t].handler(args as unknown) ); } }
  • Helper method in BugBugApiClient that makes the API request to retrieve suite run status.
    async getSuiteRunStatus(id: string): Promise<ApiResponse<BugBugRunStatusResponse>> { return this.makeRequest(`/suiteruns/${id}/status/`); }
  • src/tools/index.ts:7-7 (registration)
    Import of suiteRuns tools module containing the getSuiteRunStatusTool.
    import * as suiteRunsTools from './suiteRuns.js';

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/simplypixi/bugbug-mcp-server'

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