get_plans
Retrieve all test plans from a Qase project to organize testing strategies and track progress.
Instructions
Get all test plans in a project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| limit | No | ||
| offset | No |
Implementation Reference
- src/operations/plans.ts:31-34 (handler)Core handler function for the 'get_plans' tool. Wraps the client API call with pipe and toResult utility.export const getPlans = pipe( client.plans.getPlans.bind(client.plans), toResult, );
- src/operations/plans.ts:5-9 (schema)Zod schema for input validation of the 'get_plans' tool parameters: code (required), limit and offset (optional).export const GetPlansSchema = z.object({ code: z.string(), limit: z.number().optional(), offset: z.number().optional(), });
- src/index.ts:200-204 (registration)Tool registration in the list of available tools, specifying name, description, and input schema.{ name: 'get_plans', description: 'Get all test plans in a project', inputSchema: zodToJsonSchema(GetPlansSchema), },
- src/index.ts:388-391 (handler)MCP tool call dispatcher handler that parses arguments using the schema and delegates to the getPlans function..with({ name: 'get_plans' }, ({ arguments: args }) => { const { code, limit, offset } = GetPlansSchema.parse(args); return getPlans(code, limit, offset); })