Skip to main content
Glama

Unlink Automated Test

unlink_automated_test
Destructive

Remove one automated-test link from a manual test case by linkId; deleting the last link reverts it to Manual. Requires write access.

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.

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.5/5.0
Behavior5/5

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

Goes well beyond the destructiveHint=true annotation by disclosing the side effect that automationStatus reverts to Manual when the last link is removed, the permission requirement, the plan-gating exemption, and the 404 failure mode. This is exactly the mutation behavior an agent needs before calling.

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?

Four short sentences, zero filler, front-loaded with the action and the key parameter. Preconditions follow before the edge-case behavior, which is a sensible ordering.

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

Completeness5/5

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

For a destructive 3-parameter mutation with no output schema, the description covers purpose, prerequisites, side effects, and error behavior. Annotations handle safety signaling and the schema handles parameter formats, so nothing essential is missing.

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 description coverage is 100%, so caseId, linkId, and projectId are already documented in the schema. The description restates that linkId is the linkedTests[]._id and echoes the accepted ID forms without adding syntax or format detail beyond the schema, so baseline 3 applies.

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) plus resource (one automated-test link from a manual test case) and the identifying key (linkId). It is immediately distinguishable from sibling link_automated_test, bulk_link_automated_tests, and get_test_case_links.

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?

Gives clear context: write permission required, plan gating is not a blocker, and 404 fires when the linkId does not belong to the case. It also routes the agent to get_test_case_links / get_manual_test_case for sourcing the linkId, though it does not explicitly contrast itself against a bulk-removal path.

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