Skip to main content
Glama

link_work_items

Create relationships between two Jira or Azure DevOps work items to define dependencies, hierarchy, duplicates, or related links.

Instructions

Create a relationship between two work items (blocks, is-blocked-by, relates-to, parent-child, duplicate, etc.).

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": {
      "platform": "<platform>",
      "sourceId": "<sourceId>",
      "targetId": "<targetId>",
      "linkType": "<linkType>"
    },
    "name": "link_work_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
commentNoOptional comment for the link
linkTypeYesLink type. Jira: "blocks", "is blocked by", "relates to", "duplicates", "is duplicated by", "clones", "is cloned by". ADO: "System.LinkTypes.Hierarchy-Forward", "System.LinkTypes.Related", "System.LinkTypes.Dependency-Forward".
platformYesThe platform
sourceIdYesThe source work item ID
targetIdYesThe target work item ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and largely drops it. It does not say whether linking is directional, what happens if the link already exists, whether permissions are required on both items, or whether the operation is reversible; only the platform-specific link-type vocabulary hints at behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no wasted preamble. The trailing 'etc.' is a minor softness, but the sentence is appropriately sized for the tool.

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

Completeness3/5

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

The schema fully covers the parameters, which offsets some of the description's silence. However, this is a mutation with no annotations and no output schema, and the description never tells the agent what a successful link looks like or how conflicts are surfaced, leaving real gaps for a write operation.

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 the schema already documents all five parameters including the enum and the per-platform link values. The description's parenthetical ('blocks, is-blocked-by, relates-to, parent-child, duplicate, etc.') restates and slightly broadens that vocabulary but adds no syntax or format detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Create a relationship between two work items') and enumerates the relationship kinds, which tells an agent exactly what the tool produces. It does not name a sibling such as update_work_item or clone_work_item to draw the boundary, so it stops short of a 5.

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?

Usage is only implied: the parenthetical list of link kinds signals the intended scenario of connecting two existing items. There is no explicit when-to-use versus when-not-to-use guidance, no mention of prerequisites (both IDs must already exist), and no alternative named for read-only relationship discovery.

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