Skip to main content
Glama

update_shared_step

Modify existing shared test steps in QASE test management to maintain consistent testing procedures across multiple test cases.

Instructions

Update an existing shared step

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
hashYes
titleYes
actionYes
expected_resultNo
dataNo
stepsNo

Implementation Reference

  • MCP tool handler for 'update_shared_step' that parses input arguments using the schema and delegates to the updateSharedStep helper function.
    .with({ name: 'update_shared_step' }, ({ arguments: args }) => { const { code, hash, stepData } = UpdateSharedStepSchema.parse(args); return updateSharedStep(code, hash, stepData); })
  • src/index.ts:255-259 (registration)
    Tool registration in the ListToolsRequestHandler, defining the tool name, description, and input schema.
    { name: 'update_shared_step', description: 'Update an existing shared step', inputSchema: zodToJsonSchema(UpdateSharedStepSchema), },
  • Input schema validation using Zod, transforms to the format expected by the client: {code, hash, stepData: SharedStepUpdate}.
    export const UpdateSharedStepSchema = z .object({ code: z.string(), hash: 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(), }) .transform((data) => ({ code: data.code, hash: data.hash, stepData: { title: data.title, action: data.action, expected_result: data.expected_result, data: data.data, steps: data.steps, } as SharedStepUpdate, }));
  • Helper function that wraps the Qase client call to updateSharedStep and applies result transformation.
    export const updateSharedStep = pipe( client.sharedSteps.updateSharedStep.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