Skip to main content
Glama

create_case

Create a new test case in QASE test management platform to document and organize testing procedures for software quality assurance.

Instructions

Create a new test case

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
testCaseYes

Implementation Reference

  • The MCP tool handler for 'create_case' which parses input arguments using CreateCaseSchema and delegates to the createCase helper function.
    .with({ name: 'create_case' }, ({ arguments: args }) => {
      const { code, testCase } = CreateCaseSchema.parse(args);
      return createCase(code, testCase);
    })
  • Zod schema for validating input to the create_case tool: project code and test case data.
    export const CreateCaseSchema = z.object({
      code: z.string(),
      testCase: z.record(z.any()).transform((v) => v as TestCaseCreate),
    });
  • src/index.ts:180-184 (registration)
    Registration of the 'create_case' tool in the MCP server's ListToolsRequestSchema handler, including name, description, and input schema.
    {
      name: 'create_case',
      description: 'Create a new test case',
      inputSchema: zodToJsonSchema(CreateCaseSchema),
    },
  • The core createCase function that pipes the Qase client createCase method through toResult for result handling.
    export const createCase = pipe(
      client.cases.createCase.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