get_plan
Retrieve a specific test plan from the QASE test management platform using its unique code and ID for project organization and execution.
Instructions
Get a specific test plan
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| id | Yes |
Implementation Reference
- src/index.ts:392-395 (handler)Handler for the 'get_plan' tool: parses arguments using GetPlanSchema and calls the getPlan helper function..with({ name: 'get_plan' }, ({ arguments: args }) => { const { code, id } = GetPlanSchema.parse(args); return getPlan(code, id); })
- src/operations/plans.ts:11-14 (schema)Zod input schema for the 'get_plan' tool, defining required 'code' (string) and 'id' (number) parameters.export const GetPlanSchema = z.object({ code: z.string(), id: z.number(), });
- src/index.ts:206-209 (registration)Tool registration in ListToolsRequestSchema handler, specifying name, description, and input schema for 'get_plan'.name: 'get_plan', description: 'Get a specific test plan', inputSchema: zodToJsonSchema(GetPlanSchema), },
- src/operations/plans.ts:36-36 (helper)Helper function 'getPlan' that pipes the client.plans.getPlan method with error handling via 'toResult'.export const getPlan = pipe(client.plans.getPlan.bind(client.plans), toResult);