get_case
Retrieve a specific test case by providing the code and ID, enabling precise access to test details within the QASE test management platform.
Instructions
Get a specific test case
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| id | Yes |
Implementation Reference
- src/index.ts:346-349 (handler)MCP tool handler for 'get_case': parses input args with GetCaseSchema and delegates to getCase(code, id)..with({ name: 'get_case' }, ({ arguments: args }) => { const { code, id } = GetCaseSchema.parse(args); return getCase(code, id); })
- src/operations/cases.ts:39-42 (schema)Zod input schema for get_case tool: requires project code (string) and case id (number).export const GetCaseSchema = z.object({ code: z.string(), id: z.number(), });
- src/index.ts:175-179 (registration)Registration of 'get_case' tool in the list of tools provided to MCP clients, including name, description, and JSON schema.{ name: 'get_case', description: 'Get a specific test case', inputSchema: zodToJsonSchema(GetCaseSchema), },
- src/operations/cases.ts:149-149 (helper)Core getCase helper: wraps client.cases.getCase with pipe and toResult for result handling.export const getCase = pipe(client.cases.getCase.bind(client.cases), toResult);