get_suites
Retrieve all test suites from a Qase project to organize and manage testing workflows efficiently.
Instructions
Get all test suites in a project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| search | No | ||
| limit | No | ||
| offset | No |
Implementation Reference
- src/index.ts:404-407 (handler)Handler for the 'get_suites' tool call: parses arguments using GetSuitesSchema and delegates to the getSuites function..with({ name: 'get_suites' }, ({ arguments: args }) => { const { code, search, limit, offset } = GetSuitesSchema.parse(args); return getSuites(code, search, limit, offset); })
- src/operations/suites.ts:5-10 (schema)Zod schema defining the input parameters for the get_suites tool: code (required), search, limit, offset (optional).export const GetSuitesSchema = z.object({ code: z.string(), search: z.string().optional(), limit: z.number().optional(), offset: z.number().optional(), });
- src/index.ts:220-224 (registration)Registration of the 'get_suites' tool in the ListToolsRequestSchema handler, including name, description, and input schema.{ name: 'get_suites', description: 'Get all test suites in a project', inputSchema: zodToJsonSchema(GetSuitesSchema), },
- src/operations/suites.ts:34-37 (helper)Core getSuites function: pipes the client.suites.getSuites method to toResult utility for handling the API call and response.export const getSuites = pipe( client.suites.getSuites.bind(client.suites), toResult, );