Skip to main content
Glama

create_result

Record test execution outcomes in QASE test management by submitting results with case codes and identifiers.

Instructions

Create test run result

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
idYes
resultYes

Implementation Reference

  • Core handler function that executes the creation of a test result by piping the Qase client's createResult method through the toResult utility.
    export const createResult = pipe( client.results.createResult.bind(client.results), toResult, );
  • Zod schema defining the input structure for the create_result tool: project code, test case/run 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)
    Tool registration in the list of available tools returned by ListToolsRequestHandler.
    name: 'create_result', description: 'Create test run result', inputSchema: zodToJsonSchema(CreateResultSchema),
  • Dispatch handler in CallToolRequestHandler that validates arguments with the schema and invokes the createResult function.
    .with({ name: 'create_result' }, ({ arguments: args }) => { const { code, id, result } = CreateResultSchema.parse(args); return createResult(code, id, result); })

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rikuson/mcp-qase'

If you have feedback or need assistance with the MCP directory API, please join our Discord server