update_result
Use the tool to modify an existing test run result in the QASE MCP Server. Input code, ID, hash, and result data to update test run outcomes efficiently.
Instructions
Update an existing test run result
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| hash | Yes | ||
| id | Yes | ||
| result | Yes |
Implementation Reference
- src/index.ts:306-309 (handler)The MCP tool handler for 'update_result' which parses input arguments using UpdateResultSchema and delegates to the updateResult function..with({ name: 'update_result' }, ({ arguments: args }) => { const { code, id, hash, result } = UpdateResultSchema.parse(args); return updateResult(code, id, hash, result); })
- src/operations/results.ts:38-43 (schema)Zod schema for validating input to the update_result tool: code, id, hash, result.export const UpdateResultSchema = z.object({ code: z.string(), id: z.number(), hash: z.string(), result: z.record(z.any()).transform((v) => v as ResultUpdate), });
- src/index.ts:166-169 (registration)Registration of the 'update_result' tool in the list of available tools, including name, description, and input schema reference.name: 'update_result', description: 'Update an existing test run result', inputSchema: zodToJsonSchema(UpdateResultSchema), },
- src/operations/results.ts:65-68 (helper)Core updateResult function that pipes the client.results.updateResult call through toResult helper.export const updateResult = pipe( client.results.updateResult.bind(client.results), toResult, );