create_result
Use this tool to generate test run results by providing essential details like code, ID, and result data for seamless integration with the QASE test management platform.
Instructions
Create test run result
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| id | Yes | ||
| result | Yes |
Implementation Reference
- src/index.ts:298-301 (handler)MCP tool handler for 'create_result': parses input arguments using CreateResultSchema and delegates to the createResult helper function..with({ name: 'create_result' }, ({ arguments: args }) => { const { code, id, result } = CreateResultSchema.parse(args); return createResult(code, id, result); })
- src/operations/results.ts:26-30 (schema)Zod schema defining the input for the create_result tool: project code, test case ID, and result data.export const CreateResultSchema = z.object({ code: z.string(), id: z.number(), result: z.record(z.any()).transform((v) => v as ResultCreate), });
- src/index.ts:156-158 (registration)Registration of the 'create_result' tool in the MCP server's tool list, including name, description, and input schema reference.name: 'create_result', description: 'Create test run result', inputSchema: zodToJsonSchema(CreateResultSchema),
- src/operations/results.ts:55-58 (helper)Helper function createResult that pipes the client.results.createResult call through toResult transformation for API interaction.export const createResult = pipe( client.results.createResult.bind(client.results), toResult, );