Skip to main content
Glama

get_case

Retrieve a specific test case from the QASE test management platform by providing its project code and ID to access detailed information.

Instructions

Get a specific test case

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
idYes

Implementation Reference

  • The handler function for the 'get_case' tool. It matches tool calls named 'get_case', parses the input arguments using GetCaseSchema, and delegates to the getCase helper function.
    .with({ name: 'get_case' }, ({ arguments: args }) => { const { code, id } = GetCaseSchema.parse(args); return getCase(code, id); })
  • Zod schema for validating input to the get_case tool: requires project code (string) and case ID (number). Used in both registration and handler.
    export const GetCaseSchema = z.object({ code: z.string(), id: z.number(), });
  • src/index.ts:176-179 (registration)
    Tool registration in ListToolsRequestSchema handler, defining the tool's name, description, and input schema.
    name: 'get_case', description: 'Get a specific test case', inputSchema: zodToJsonSchema(GetCaseSchema), },
  • Core helper function implementing the logic: pipes the QaseIO client.cases.getCase method through toResult for result handling.
    export const getCase = pipe(client.cases.getCase.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