update_suite
Modify an existing test suite in QASE test management by updating its code, title, description, preconditions, or parent relationship.
Instructions
Update an existing test suite
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| id | Yes | ||
| title | No | ||
| description | No | ||
| preconditions | No | ||
| parent_id | No |
Implementation Reference
- src/index.ts:416-419 (handler)Handler for the 'update_suite' tool: parses input arguments using UpdateSuiteSchema and delegates to the updateSuite function..with({ name: 'update_suite' }, ({ arguments: args }) => { const { code, id, ...suiteData } = UpdateSuiteSchema.parse(args); return updateSuite(code, id, suiteData); })
- src/operations/suites.ts:25-32 (schema)Zod schema defining the input structure for updating a suite: requires code and id, optional title, description, preconditions, parent_id.export const UpdateSuiteSchema = z.object({ code: z.string(), id: z.number(), title: z.string().optional(), description: z.string().optional(), preconditions: z.string().optional(), parent_id: z.number().optional(), });
- src/index.ts:236-239 (registration)Tool registration in the MCP server's tool list, specifying name, description, and input schema.name: 'update_suite', description: 'Update an existing test suite', inputSchema: zodToJsonSchema(UpdateSuiteSchema), },
- src/operations/suites.ts:49-52 (helper)Helper function that pipes the client.suites.updateSuite call through toResult for result handling.export const updateSuite = pipe( client.suites.updateSuite.bind(client.suites), toResult, );