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,
    );
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden but offers minimal behavioral insight. It implies a read operation ('Get') but doesn't disclose critical traits like pagination behavior (hinted by 'limit' and 'offset' parameters), rate limits, authentication needs, or whether results are sorted. This leaves significant gaps for agent decision-making.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence that efficiently conveys the core purpose without unnecessary words. It's front-loaded and wastes no space, making it easy for an agent to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (15 parameters, no output schema, no annotations), the description is severely incomplete. It doesn't address parameter usage, return values, error conditions, or behavioral constraints, leaving the agent with insufficient context to use the tool effectively beyond basic intent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate but fails to do so. It mentions 'all test cases in a project' but doesn't explain any of the 15 parameters, including the required 'code' parameter or filtering options like 'search' or 'severity'. This leaves parameters largely undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Get') and resource ('test cases in a project'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like 'get_case' (singular) or explain the scope of 'all' versus filtered results, which prevents a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'get_case' (singular) or 'get_suites' (for related resources). It lacks context about prerequisites, such as needing a project code, or when filtering might be preferred over retrieving all cases.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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