Skip to main content
Glama

update_shared_step

Modify an existing shared step in QASE by updating its code, hash, title, action, expected result, data, or steps, ensuring accurate test management and integration.

Instructions

Update an existing shared step

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
codeYes
dataNo
expected_resultNo
hashYes
stepsNo
titleYes

Implementation Reference

  • Handler function for the update_shared_step tool that parses arguments using the schema and delegates to the updateSharedStep helper.
    .with({ name: 'update_shared_step' }, ({ arguments: args }) => { const { code, hash, stepData } = UpdateSharedStepSchema.parse(args); return updateSharedStep(code, hash, stepData); })
  • Zod input schema for update_shared_step, validates parameters and transforms to {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, }));
  • src/index.ts:256-258 (registration)
    Tool registration in ListToolsRequestHandler, specifying name, description, and input schema.
    name: 'update_shared_step', description: 'Update an existing shared step', inputSchema: zodToJsonSchema(UpdateSharedStepSchema),
  • Wrapper function that calls the Qase client to update a shared step and converts result using toResult utility.
    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