Skip to main content
Glama

create_shared_step

Create reusable test steps in QASE test management by defining actions, expected results, and data to streamline test case development and maintenance.

Instructions

Create a new shared step

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
titleYes
actionYes
expected_resultNo
dataNo
stepsNo

Implementation Reference

  • MCP tool handler for 'create_shared_step': parses input using schema and delegates to createSharedStep function.
    .with({ name: 'create_shared_step' }, ({ arguments: args }) => {
      const { code, ...stepData } = CreateSharedStepSchema.parse(args);
      return createSharedStep(code, stepData);
    })
  • Zod schema defining input for create_shared_step tool.
    export const CreateSharedStepSchema = z.object({
      code: z.string(),
      title: z.string(),
      action: z.string(),
      expected_result: z.string().optional(),
      data: z.string().optional(),
      steps: z
        .array(
          z.object({
            action: z.string(),
            expected_result: z.string().optional(),
            data: z.string().optional(),
            position: z.number().optional(),
          }),
        )
        .optional(),
    });
  • src/index.ts:250-254 (registration)
    Tool registration in ListToolsRequestSchema handler, specifying name, description, and input schema.
    {
      name: 'create_shared_step',
      description: 'Create a new shared step',
      inputSchema: zodToJsonSchema(CreateSharedStepSchema),
    },
  • Wrapper function for the Qase client sharedSteps.createSharedStep, piped with toResult for result handling.
    export const createSharedStep = pipe(
      client.sharedSteps.createSharedStep.bind(client.sharedSteps),
      toResult,
    );

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