get_plan
Retrieve a specific test plan by providing a unique code and ID, enabling efficient test management within the QASE test management platform.
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)MCP tool handler for 'get_plan' that parses the input arguments using GetPlanSchema and delegates to the getPlan helper function with project code and plan ID..with({ name: 'get_plan' }, ({ arguments: args }) => { const { code, id } = GetPlanSchema.parse(args); return getPlan(code, id); })
- src/operations/plans.ts:11-14 (schema)Zod schema for validating input to the get_plan tool: requires project 'code' (string) and 'id' (number).export const GetPlanSchema = z.object({ code: z.string(), id: z.number(), });
- src/index.ts:206-209 (registration)Tool registration in the MCP server's ListToolsRequestHandler, defining the 'get_plan' tool name, description, and JSON schema derived from GetPlanSchema.name: 'get_plan', description: 'Get a specific test plan', inputSchema: zodToJsonSchema(GetPlanSchema), },
- src/operations/plans.ts:36-36 (helper)Core helper function for fetching a plan: binds the client.plans.getPlan method and applies toResult transformation using Ramda pipe.export const getPlan = pipe(client.plans.getPlan.bind(client.plans), toResult);