Skip to main content
Glama

Link test case to issue

link_to_issue
Idempotent

Link a test case to an external issue (e.g. a Linear/Jira issue) for traceability. Resolve sourceId/relation via get_external_sources. This writes the link in TestOrchestrator only; it does not modify the external tracker.

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": {
      "project": "<project>",
      "caseId": "<caseId>",
      "sourceId": "<sourceId>",
      "issueKey": "<issueKey>"
    },
    "name": "link_to_issue"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoOptional issue title for display.
caseIdYesTest case id to link.
projectYesProject id the case belongs to. Numeric project id as returned by get_projects (the number in the app URL); a project name is not accepted.
issueKeyYesExternal issue key, e.g. 'ENG-123'.
issueUrlNoOptional issue URL (derived from the source when omitted).
sourceIdYesIntegration source id (from get_external_sources).
relationTypeNoWhat the link means. COVERS = the case covers this requirement (counts as coverage); DEFECT = this issue is a defect found by the case. Omitted defaults to RELATED, which is unclassified — the link shows but counts as neither. Resolve available relations via get_external_sources.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project / description
      Previous value: -"Project id the case belongs to. Numeric id from get_projects (same as in the app URL); not the project name."New value: +"Project id the case belongs to. Numeric project id as returned by get_projects (the number in the app URL); a project name is not accepted."
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=true, and destructiveHint=false. The description usefully narrows the open-world scope by clarifying that the write happens only inside TestOrchestrator and never touches the external tracker, which is the key risk an agent needs to understand. It does not describe the return payload or failure modes, so it is good but not complete.

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 short sentences with no wasted words. The core action comes first, the prerequisite second, and the scope disclaimer last, which is the right order for an agent skimming the definition.

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 7-parameter mutation with no output schema, the description covers the action, the prerequisite resolution step, and the write boundary. It leaves the return value and what happens on duplicate links unstated (idempotency is only implied via annotations), so it is strong but not exhaustive.

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 every parameter, including relationType's COVERS/DEFECT/RELATED semantics, is already documented. The description only echoes the get_external_sources pointer that the schema itself already contains for sourceId and relationType, so it adds little new meaning.

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?

The description opens with a specific verb and resource: 'Link a test case to an external issue (e.g. a Linear/Jira issue) for traceability.' It states the effect and the purpose, which distinguishes it from siblings like create_test_case or get_cases_for_issue.

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?

It gives clear operational guidance by naming get_external_sources as the way to resolve sourceId and relation, which tells the agent the required prerequisite call. It does not state when not to link, or name an alternative tool for related intents, so it falls short of full when/when-not coverage.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.