Skip to main content
Glama

get_runs

Retrieve test runs from a Qase project using filters like status, milestone, or time range to analyze testing progress and results.

Instructions

Get all test runs in a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
searchNo
statusNo
milestoneNo
environmentNo
fromStartTimeNo
toStartTimeNo
limitNo
offsetNo
includeNo

Implementation Reference

  • Handler for the 'get_runs' tool: parses input arguments using GetRunsSchema and invokes the getRuns helper function with the unpacked parameters.
    .with({ name: 'get_runs' }, ({ arguments: args }) => { const { code, search, status, milestone, environment, fromStartTime, toStartTime, limit, offset, include, } = GetRunsSchema.parse(args); return getRuns([ code, search, status, milestone, environment, fromStartTime, toStartTime, limit, offset, include, ]); })
  • Zod schema defining the input parameters for the 'get_runs' tool, including required code and optional filters.
    export const GetRunsSchema = z.object({ code: z.string(), search: z.string().optional(), status: z.string().optional(), milestone: z.number().optional(), environment: z.number().optional(), fromStartTime: z.number().optional(), toStartTime: z.number().optional(), limit: z.number().optional(), offset: z.number().optional(), include: z.string().optional(), });
  • src/index.ts:190-194 (registration)
    Registration of the 'get_runs' tool in the MCP server's tool list, specifying name, description, and input schema.
    { name: 'get_runs', description: 'Get all test runs in a project', inputSchema: zodToJsonSchema(GetRunsSchema), },
  • Helper function implementing the core logic of 'get_runs': applies the Qase client API call to retrieve runs and converts the result using toResult utility.
    export const getRuns = pipe( apply(client.runs.getRuns.bind(client.runs)), toResult, );

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