Skip to main content
Glama

Unlink Automated Test

unlink_automated_test
Destructive

Remove an automated-test link from a manual test case using its linkId; removing the last link reverts the case automation status to Manual.

Instructions

Remove one automated-test link from a manual test case by its linkId (the _id of a linkedTests entry — from get_test_case_links or get_manual_test_case). Requires write permission; not gated by plan so a downgraded org can still detach. When the last link is removed the case automationStatus reverts to Manual. 404 when the linkId is not on that case.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "projectId": "<projectId>",
      "caseId": "<caseId>",
      "linkId": "<linkId>"
    },
    "name": "unlink_automated_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
caseIdYesManual case: internal _id or "TC-123" style ID
linkIdYeslinkedTests[]._id, e.g. "tcm_link_…"
projectIdYesProject ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv2.2.0
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / caseId / description
      Previous value: -"Manual test case ID (Required). Internal _id or 'TC-123' style ID."New value: +"Manual case: internal _id or \"TC-123\" style ID"
    • changedInput schema / properties / linkId / description
      Previous value: -"linkedTests[]._id (Required), e.g. 'tcm_link_…'."New value: +"linkedTests[]._id, e.g. \"tcm_link_…\""
    • addedInput schema / properties / linkId / maxLength
      Added value: +80
    • addedInput schema / properties / linkId / minLength
      Added value: +1
    • changedInput schema / properties / projectId / description
      Previous value: -"Project ID (Required). The TestDino project identifier."New value: +"Project ID"
  2. Addedv2.0.3

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: the annotations only flag destructive=true, while the description discloses the write-permission requirement, the plan-gating detail, the downstream effect that automationStatus reverts to Manual when the last link is removed, and the specific 404 failure mode. These are exactly the operational traits an agent needs before invoking a destructive mutation.

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 sentences, each carrying a distinct payload: identity and scope first, prerequisites and side effect second, error behavior last. No restatement of the title and no filler.

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 three-parameter destructive tool with no output schema, the description covers identity, prerequisites, side effects, and error semantics thoroughly. It does not say what the call returns on success (e.g. remaining links or updated automationStatus), which is the only meaningful gap.

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 the schema already documents the _id format of linkId and the case-identifier forms. The description still adds value by naming the retrieval tools that produce a valid linkId, which is provenance the schema cannot express. No extra meaning is added for projectId, keeping it below 5.

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?

States a specific verb ('Remove'), resource ('one automated-test link'), scope ('from a manual test case'), and the identifier used ('linkId'). This clearly distinguishes it from link_automated_test and bulk_link_automated_tests, which operate in the opposite direction or at bulk scale.

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 tells the agent where the linkId comes from (get_test_case_links or get_manual_test_case) and states the write-permission prerequisite plus the fact that plan downgrades don't block it. It lacks an explicit 'use X instead when unlinking many links' routing to bulk tools, so it falls just short of full when/when-not guidance.

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