Skip to main content
Glama

get_results

Retrieve test run results for a project to analyze performance and identify issues.

Instructions

Get all test run results for a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
limitNo
offsetNo
statusNo
fromNo
toNo

Implementation Reference

  • The core handler function implementing the logic for the 'get_results' tool. It pipes the bound Qase client results.getResults method through the toResult transformer utility.
    export const getResults = pipe(
      apply(client.results.getResults.bind(client.results)),
      toResult,
    );
  • Zod schema defining the input parameters for the 'get_results' tool: project code, optional limit, offset, status filter, and date range.
    export const GetResultsSchema = z.object({
      code: z.string(),
      limit: z.string().optional(),
      offset: z.string().optional(),
      status: z.nativeEnum(TestStepResultCreateStatusEnum).optional(),
      from: z.string().optional(),
      to: z.string().optional(),
    });
  • src/index.ts:145-149 (registration)
    Registration of the 'get_results' tool in the MCP server's ListToolsRequestSchema response, specifying name, description, and JSON schema derived from Zod schema.
    {
      name: 'get_results',
      description: 'Get all test run results for a project',
      inputSchema: zodToJsonSchema(GetResultsSchema),
    },
  • MCP CallToolRequestSchema handler dispatch case for 'get_results': validates input with schema, builds query filters, and delegates to the getResults implementation.
    .with({ name: 'get_results' }, ({ arguments: args }) => {
      const parsedArgs = GetResultsSchema.parse(args);
      const filters =
        parsedArgs.status || parsedArgs.from || parsedArgs.to
          ? `status=${parsedArgs.status || ''}&from=${parsedArgs.from || ''}&to=${parsedArgs.to || ''}`
          : undefined;
      return getResults([
        parsedArgs.code,
        parsedArgs.limit,
        parsedArgs.offset,
        filters,
      ]);
    })

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/rikuson/mcp-qase'

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