Skip to main content
Glama

create_test_cycle

Create a new test cycle in QMetry by providing project ID and summary. Optionally assign folder, dates, assignee, priority, status, and custom fields. Retrieves the cycle's key and internal ID.

Instructions

Create a new test cycle in QMetry. Returns the created cycle with its internal id and key (e.g. FS-TR-123). Use list_folders with folderType=TESTCYCLE to find valid folderId values.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYesJira project numeric ID (e.g. 10011)
summaryYesTest cycle name/summary
descriptionNo
priorityNo
statusNo
assigneeNoAssignee Jira account ID
folderIdNoTarget folder ID
plannedStartDateNoISO 8601 planned start date
plannedEndDateNoISO 8601 planned end date
customFieldsNo

Implementation Reference

  • Tool handler for create_test_cycle. Calls qtmFetch POST to /testcycles with the input object (projectId, summary, description, priority, status, assignee, folderId, plannedStartDate, plannedEndDate, customFields). Returns the created cycle with id and key via ok().
    tool(
      "create_test_cycle",
      "Create a new test cycle in QMetry. Returns the created cycle with its internal id and key (e.g. FS-TR-123). Use list_folders with folderType=TESTCYCLE to find valid folderId values.",
      {
        projectId: z.union([z.string(), z.number()]).describe("Jira project numeric ID (e.g. 10011)"),
        summary: z.string().describe("Test cycle name/summary"),
        description: z.string().optional(),
        priority: z.string().optional(),
        status: z.string().optional(),
        assignee: z.string().optional().describe("Assignee Jira account ID"),
        folderId: z.number().int().optional().describe("Target folder ID"),
        plannedStartDate: z.string().optional().describe("ISO 8601 planned start date"),
        plannedEndDate: z.string().optional().describe("ISO 8601 planned end date"),
        customFields: z.array(CustomField).optional(),
      },
      async (input) =>
        ok(await qtmFetch("/testcycles", { method: "POST", body: JSON.stringify(input) }))
    );
  • Input schema for create_test_cycle: projectId (string|number), summary (string), and optional description, priority, status, assignee, folderId, plannedStartDate, plannedEndDate, customFields.
    {
      projectId: z.union([z.string(), z.number()]).describe("Jira project numeric ID (e.g. 10011)"),
      summary: z.string().describe("Test cycle name/summary"),
      description: z.string().optional(),
      priority: z.string().optional(),
      status: z.string().optional(),
      assignee: z.string().optional().describe("Assignee Jira account ID"),
      folderId: z.number().int().optional().describe("Target folder ID"),
      plannedStartDate: z.string().optional().describe("ISO 8601 planned start date"),
      plannedEndDate: z.string().optional().describe("ISO 8601 planned end date"),
      customFields: z.array(CustomField).optional(),
    },
  • src/index.ts:348-365 (registration)
    Registration via the custom 'tool' wrapper which calls server.registerTool (defined at line 172).
    tool(
      "create_test_cycle",
      "Create a new test cycle in QMetry. Returns the created cycle with its internal id and key (e.g. FS-TR-123). Use list_folders with folderType=TESTCYCLE to find valid folderId values.",
      {
        projectId: z.union([z.string(), z.number()]).describe("Jira project numeric ID (e.g. 10011)"),
        summary: z.string().describe("Test cycle name/summary"),
        description: z.string().optional(),
        priority: z.string().optional(),
        status: z.string().optional(),
        assignee: z.string().optional().describe("Assignee Jira account ID"),
        folderId: z.number().int().optional().describe("Target folder ID"),
        plannedStartDate: z.string().optional().describe("ISO 8601 planned start date"),
        plannedEndDate: z.string().optional().describe("ISO 8601 planned end date"),
        customFields: z.array(CustomField).optional(),
      },
      async (input) =>
        ok(await qtmFetch("/testcycles", { method: "POST", body: JSON.stringify(input) }))
    );
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Mentions return value (id and key), which is helpful given no output schema. Does not disclose side effects, permissions, or error conditions. Without annotations, basic behavioral disclosure is present but incomplete.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences pack purpose, return, and a usage tip without extraneous text. Efficient and front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema or annotations make it essential to cover behavior and parameters. Covers return and a key parameter but lacks detail on required fields beyond schema and potential errors. Adequate for a straightforward creation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 60% schema coverage, description adds value for folderId (explains prerequisite) and hints at return fields, but other parameters (priority, status, assignee) remain undescribed beyond the schema. Adequate but not enriching.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states the verb 'Create' and resource 'new test cycle in QMetry', with return details. Distinguishes from sibling tools like update, delete, and get.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit prerequisite guidance for folderId by referencing list_folders. Does not explicitly contrast with alternatives like create_test_case or create_test_plan, but sufficiently narrows usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/salehrifai42/qmetrymcp'

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