Skip to main content
Glama

unlink_test_cycles_from_plan

Unlink specified test cycles from a test plan. Provide the test plan ID and an array of test cycle IDs. The cycles remain intact. Returns 204 on successful removal.

Instructions

Remove the link between one or more test cycles and a test plan. Does not delete the cycles themselves. Returns 204 on success.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesTest plan ID
testcycleIdsYesTest cycle IDs to unlink

Implementation Reference

  • src/index.ts:603-617 (registration)
    Tool registration via the `tool()` wrapper (which calls `server.registerTool`). Registers 'unlink_test_cycles_from_plan' with name, description, input schema, and handler callback.
    tool(
      "unlink_test_cycles_from_plan",
      "Remove the link between one or more test cycles and a test plan. Does not delete the cycles themselves. Returns 204 on success.",
      {
        id: ID.describe("Test plan ID"),
        testcycleIds: z.array(z.number().int()).describe("Test cycle IDs to unlink"),
      },
      async ({ id, testcycleIds }) => {
        await qtmFetch(`/testplans/${id}/testcycles`, {
          method: "DELETE",
          body: JSON.stringify({ testcycleIds }),
        });
        return ok({ message: `Test cycles unlinked from plan ${id}` });
      }
    );
  • The handler function that executes the tool logic. It sends a DELETE request to /testplans/{id}/testcycles with the test cycle IDs to unlink, then returns a success message.
    async ({ id, testcycleIds }) => {
      await qtmFetch(`/testplans/${id}/testcycles`, {
        method: "DELETE",
        body: JSON.stringify({ testcycleIds }),
      });
      return ok({ message: `Test cycles unlinked from plan ${id}` });
    }
  • Input schema for the tool: 'id' (test plan ID, string or number) and 'testcycleIds' (array of integers).
    {
      id: ID.describe("Test plan ID"),
      testcycleIds: z.array(z.number().int()).describe("Test cycle IDs to unlink"),
    },
Behavior3/5

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

With no annotations, description carries burden. It notes 'Does not delete the cycles' and 'Returns 204 on success', but does not describe error handling, idempotency, or what happens if link does not exist. Partial behavioral disclosure.

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?

Three concise sentences, no redundancy. Purpose, behavioral note, and return code are front-loaded. Each sentence earns its place.

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?

For a simple unlinking operation, description covers key behavior and return status. Schema documents all parameters. Could mention error handling, but overall adequate.

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?

Schema coverage is 100%, so baseline is 3. Description does not add extra meaning beyond schema descriptions. Parameter purposes are clear from 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 verb (remove link), resource (test cycles and test plan), and clarifies that cycles are not deleted. This distinguishes it from siblings like link_test_cycles_to_plan and get_linked_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 Guidelines3/5

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

No explicit guidance on when to use vs alternatives. Usage is implied by name and description, but lacks statements about prerequisites or conditions.

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