Skip to main content
Glama

get_cases

Retrieve test cases from a Qase project using filters like search terms, milestone, suite, severity, priority, type, behavior, automation status, and external issue tracking.

Instructions

Get all test cases in a project

Input Schema

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

Implementation Reference

  • MCP tool handler for 'get_cases': parses input args with GetCasesSchema and invokes getCases function with project code and filters.
    .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 input schema (GetCasesSchema) for validating parameters of 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 ListToolsRequestSchema handler: defines name, description, and input schema for 'get_cases'.
    {
      name: 'get_cases',
      description: 'Get all test cases in a project',
      inputSchema: zodToJsonSchema(GetCasesSchema),
    },
  • Core getCases function: pipes client.cases.getCases through apply and toResult utility for execution and result handling.
    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