Skip to main content
Glama

Link Automated Test

link_automated_test

Links one Playwright automated test to a manual test case so automation results appear on that case. Get pwTestId and fullTitle from list_automated_tests first.

Instructions

Link one automated (Playwright) test to one manual test case so automation results surface on the case. Requires write permission and the automation_linking plan feature (403 otherwise). Get pwTestId + fullTitle from list_automated_tests (or list_testcase, whose pw_test_id matches pwTestId — but fullTitle must still come from list_automated_tests). Rejects with 400 when the identity is unknown to this project, the pwTestId is already linked to the case, or the case already has 50 links. Linking sets the case automationStatus to Automated. For many cases in one call use bulk_link_automated_tests.

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>",
      "pwTestId": "<pwTestId>",
      "fullTitle": "<fullTitle>"
    },
    "name": "link_automated_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
caseIdYesManual case: internal _id or "TC-123" style ID
pwTestIdYesStable Playwright test id (pw_test_id)
fullTitleYesServer join key from list_automated_tests — never hand-built
projectIdYesProject ID
displayTitleNoOptional label shown on the case; defaults to the test title

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 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 / displayTitle / description
      Previous value: -"Optional label shown on the case; defaults to the test title."New value: +"Optional label shown on the case; defaults to the test title"
    • addedInput schema / properties / displayTitle / maxLength
      Added value: +500
    • addedInput schema / properties / displayTitle / minLength
      Added value: +1
    • changedInput schema / properties / fullTitle / description
      Previous value: -"Server join key from list_automated_tests (Required) — never hand-built."New value: +"Server join key from list_automated_tests — never hand-built"
    • addedInput schema / properties / fullTitle / maxLength
      Added value: +2000
    • addedInput schema / properties / fullTitle / minLength
      Added value: +1
    • changedInput schema / properties / projectId / description
      Previous value: -"Project ID (Required). The TestDino project identifier."New value: +"Project ID"
    • changedInput schema / properties / pwTestId / description
      Previous value: -"Stable Playwright test id (pw_test_id) (Required)."New value: +"Stable Playwright test id (pw_test_id)"
    • addedInput schema / properties / pwTestId / maxLength
      Added value: +200
    • addedInput schema / properties / pwTestId / minLength
      Added value: +1
  2. Addedv2.0.3

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations (which only declare a non-read-only, non-destructive, closed-world mutation) by disclosing auth/plan gating with 403, three distinct 400 rejection conditions including the 50-link cap, and the side effect of setting automationStatus to Automated. This is exactly the mutation context 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 sentences with zero filler, front-loading the action and outcome, then prerequisites, then parameter sourcing rules, then error conditions and the bulk alternative. Every clause carries operational information.

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 5-parameter mutation with no output schema, the definition covers permissions, error paths, side effects, parameter provenance, and the sibling alternative. Nothing an agent needs to invoke it successfully is missing.

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 is 3, but the description adds real meaning the schema lacks: fullTitle is a server join key that must come from list_automated_tests and must never be hand-built, and pwTestId is described as interchangeable with list_testcase's pw_test_id. It does not explain displayTitle's default, but the schema already covers that.

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?

Opens with a specific verb+resource pair ('Link one automated (Playwright) test to one manual test case') and states the resulting outcome ('automation results surface on the case'). It is clearly distinguishable from bulk_link_automated_tests and unlink_automated_test named in the description and sibling list.

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

Usage Guidelines5/5

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

Gives explicit prerequisites (write permission, automation_linking plan feature), the data-source path (get pwTestId + fullTitle from list_automated_tests), and an explicit alternative for volume ('For many cases in one call use bulk_link_automated_tests'). It even clarifies the subtle case of using list_testcase for pw_test_id while still sourcing fullTitle elsewhere.

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