Skip to main content
Glama

create_case

Generate a new test case by providing a unique code and test case details, enabling efficient test case management within the QASE test management platform.

Instructions

Create a new test case

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
testCaseYes

Implementation Reference

  • MCP tool handler for 'create_case': parses arguments with CreateCaseSchema and delegates to createCase helper.
    .with({ name: 'create_case' }, ({ arguments: args }) => { const { code, testCase } = CreateCaseSchema.parse(args); return createCase(code, testCase); })
  • Zod schema for validating input to 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 'create_case' tool in ListToolsRequestSchema handler, referencing the schema.
    { name: 'create_case', description: 'Create a new test case', inputSchema: zodToJsonSchema(CreateCaseSchema), },
  • Core implementation of createCase: pipes Qase client createCase call through toResult utility.
    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