Skip to main content
Glama

create_plan

Create a new test plan in QASE by specifying code, title, and test cases to organize testing activities.

Instructions

Create a new test plan

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
titleYes
descriptionNo
casesYes

Implementation Reference

  • MCP tool handler for 'create_plan' that parses input arguments using CreatePlanSchema and delegates to the createPlan helper function.
    .with({ name: 'create_plan' }, ({ arguments: args }) => {
      const { code, ...planData } = CreatePlanSchema.parse(args);
      return createPlan(code, planData);
    })
  • Zod input schema for the create_plan tool, defining required fields: code (string), title (string), optional description (string), and cases (array of numbers).
    export const CreatePlanSchema = z.object({
      code: z.string(),
      title: z.string(),
      description: z.string().optional(),
      cases: z.array(z.number()),
    });
  • src/index.ts:210-214 (registration)
    Registration of the 'create_plan' tool in the ListToolsRequestSchema handler, including name, description, and converted input schema.
    {
      name: 'create_plan',
      description: 'Create a new test plan',
      inputSchema: zodToJsonSchema(CreatePlanSchema),
    },
  • Helper function that wraps the client.plans.createPlan method with pipe and toResult for execution and result handling.
    export const createPlan = pipe(
      client.plans.createPlan.bind(client.plans),
      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