Skip to main content
Glama

get_cases

Retrieve all test cases within a project by filtering based on criteria like milestone, suite, severity, priority, automation, status, or external issues using QASE MCP Server.

Instructions

Get all test cases in a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
automationNo
behaviorNo
codeYes
externalIssuesIdsNo
externalIssuesTypeNo
includeNo
limitNo
milestoneIdNo
offsetNo
priorityNo
searchNo
severityNo
statusNo
suiteIdNo
typeNo

Implementation Reference

  • MCP tool handler for 'get_cases': parses arguments using GetCasesSchema and calls the getCases helper function with the extracted parameters.
    .with({ name: 'get_cases' }, ({ arguments: args }) => { const { code, search, milestoneId, suiteId, severity, priority, type, behavior, automation, status, externalIssuesType, externalIssuesIds, include, limit, offset, } = GetCasesSchema.parse(args); return getCases([ code, search, milestoneId, suiteId, severity, priority, type, behavior, automation, status, externalIssuesType, externalIssuesIds, include, limit, offset, ]); })
  • Zod schema defining the input parameters for the get_cases tool, including project code and various filters.
    export const GetCasesSchema = z.object({ code: z.string(), search: z.string().optional(), milestoneId: z.number().optional(), suiteId: z.number().optional(), severity: z.string().optional(), priority: z.string().optional(), type: z.string().optional(), behavior: z.string().optional(), automation: z.string().optional(), status: z.string().optional(), externalIssuesType: z .enum([ 'asana', 'azure-devops', 'clickup-app', 'github-app', 'gitlab-app', 'jira-cloud', 'jira-server', 'linear', 'monday', 'redmine-app', 'trello-app', 'youtrack-app', ]) .optional(), externalIssuesIds: z.array(z.string()).optional(), include: z.string().optional(), limit: z.number().optional(), offset: z.number().optional(), });
  • src/index.ts:170-174 (registration)
    Tool registration in the MCP server's listTools handler, specifying name, description, and input schema.
    { name: 'get_cases', description: 'Get all test cases in a project', inputSchema: zodToJsonSchema(GetCasesSchema), },
  • Core helper function that wraps the Qase client call to fetch cases and converts to result format.
    export const getCases = pipe( apply(client.cases.getCases.bind(client.cases)), 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