Skip to main content
Glama

get_test

Retrieve detailed information about a specific BugBug test using its unique identifier to access execution status, results, and related data.

Instructions

Get details of a specific BugBug test

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
testIdYesTest UUID

Implementation Reference

  • The handler function that implements the core logic of the 'get_test' tool. It calls bugbugClient.getTest(testId), processes the response, formats it as structured text content, and handles errors.
    handler: async ({ testId }) => { try { const response = await bugbugClient.getTest(testId); if (response.status !== 200) { return { content: [ { type: 'text', text: `Error: ${response.status} ${response.statusText}`, }, ], }; } const test = response.data; return { content: [ { type: 'text', text: `**Test Details:**\n\n- **Name:** ${test.name}\n- **ID:** ${test.id}\n- **Is Active:** ${test.isActive ? 'Yes' : 'No'}\n- **Is Recording:** ${test.isRecording ? 'Yes' : 'No'}`, }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error fetching test: ${error instanceof Error ? error.message : 'Unknown error'}`, }, ], }; } }
  • Input schema for the 'get_test' tool using Zod, validating testId as a required string.
    inputSchema: z.object({ testId: z.string().describe('Test UUID'), }).shape,
  • Registers the 'get_test' tool (imported via testsTools) to the MCP server by name, using its schema, description, and handler.
    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) ); } }

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