Skip to main content
Glama

get_runs

Retrieve all test runs within a project using specific filters like status, milestone, environment, and date range for efficient test management and tracking.

Instructions

Get all test runs in a project

Input Schema

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

Implementation Reference

  • MCP tool handler for 'get_runs': parses 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 input schema for the 'get_runs' tool, defining parameters like code, search, status, etc.
    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)
    Tool registration in ListToolsRequestSchema handler, specifying name, description, and input schema for 'get_runs'.
    { name: 'get_runs', description: 'Get all test runs in a project', inputSchema: zodToJsonSchema(GetRunsSchema), },
  • Helper function getRuns that wraps the client.runs.getRuns API call using pipe, apply, and 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