Skip to main content
Glama

get_test_cycle_executions

Retrieve all test case executions for a test cycle using its internal ID. Get testCycleTestCaseMapId and testCaseExecutionId for updates, plus key, status, and priority per case.

Instructions

List all test case executions linked to a test cycle. Requires the internal cycle id (from get_test_cycle, not the key). Returns testCycleTestCaseMapId (needed for bulk_update), testCaseExecutionId (needed for update_test_execution), key, status, and priority per test case.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesTest cycle ID (internal ID from search_test_cycles)
startAtNoPage offset (default 0)
maxResultsNoItems per page (max 100, default 50)
sortNoSort e.g. "id:asc" or "updated:desc"
fieldsNoComma-separated fields to return

Implementation Reference

  • The tool handler for 'get_test_cycle_executions'. It accepts an internal cycle ID and pagination params, then POSTs to /testcycles/{id}/testcases/search with an empty filter to list all test case executions linked to a test cycle.
    tool(
      "get_test_cycle_executions",
      "List all test case executions linked to a test cycle. Requires the internal cycle id (from get_test_cycle, not the key). Returns testCycleTestCaseMapId (needed for bulk_update), testCaseExecutionId (needed for update_test_execution), key, status, and priority per test case.",
      {
        id: ID.describe("Test cycle ID (internal ID from search_test_cycles)"),
        ...Pagination,
      },
      async ({ id, startAt, maxResults, sort, fields }) =>
        ok(
          await qtmFetch(`/testcycles/${id}/testcases/search${qs({ startAt, maxResults, sort, fields })}`, {
            method: "POST",
            body: JSON.stringify({ filter: {} }),
          })
        )
    );
  • Input schema for get_test_cycle_executions: requires an internal cycle ID and accepts optional pagination params (startAt, maxResults, sort, fields).
    {
      id: ID.describe("Test cycle ID (internal ID from search_test_cycles)"),
      ...Pagination,
    },
  • src/index.ts:425-439 (registration)
    Registration of the tool via the 'tool' helper, which wraps server.registerTool from the MCP SDK.
    tool(
      "get_test_cycle_executions",
      "List all test case executions linked to a test cycle. Requires the internal cycle id (from get_test_cycle, not the key). Returns testCycleTestCaseMapId (needed for bulk_update), testCaseExecutionId (needed for update_test_execution), key, status, and priority per test case.",
      {
        id: ID.describe("Test cycle ID (internal ID from search_test_cycles)"),
        ...Pagination,
      },
      async ({ id, startAt, maxResults, sort, fields }) =>
        ok(
          await qtmFetch(`/testcycles/${id}/testcases/search${qs({ startAt, maxResults, sort, fields })}`, {
            method: "POST",
            body: JSON.stringify({ filter: {} }),
          })
        )
    );
  • Helper function 'qs' used to build query strings from pagination params (startAt, maxResults, sort, fields) for the API call.
    function qs(params: Record<string, string | number | undefined>): string {
      const p = new URLSearchParams();
      for (const [k, v] of Object.entries(params)) {
        if (v !== undefined) p.set(k, String(v));
      }
      const s = p.toString();
      return s ? `?${s}` : "";
    }
  • Helper function 'ok' used to wrap API responses into MCP tool content.
    function ok(data: unknown) {
      return {
        content: [{ type: "text" as const, text: JSON.stringify(data, null, 2) }],
      };
    }
Behavior3/5

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

No annotations; description adds context by specifying required internal ID and returned fields. However, does not disclose pagination limits, rate limits, or read-only nature beyond what schema implies. Adequate but not exhaustive.

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 concise sentences with no redundancy. First sentence states purpose, second provides prerequisites and output. Ideal front-loading.

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

Completeness4/5

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

No output schema, but description lists returned fields. Covers purpose, prerequisite, and output. Lacks mention of pagination behavior or error cases, but sufficient for typical use.

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

Parameters4/5

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

Schema coverage is 100%, so baseline 3. Description adds significant value for the 'id' parameter by clarifying it must be internal cycle ID from get_test_cycle. Other params are adequately described in schema. Overall adds meaning beyond schema.

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?

Description clearly states 'List all test case executions linked to a test cycle' with specific verb and resource, and distinguishes from sibling tools like get_test_cycle or search_test_cycles.

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?

Explicitly requires internal cycle id from get_test_cycle, providing clear prerequisite. Mentions returned IDs useful for bulk_update and update_test_execution, guiding subsequent tool use. No explicit when-not or alternatives, but guidance is strong.

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