Skip to main content
Glama
Azure DevOps MCP Server

Azure DevOps MCP Server

manage_work_item_link

Add, remove, or update links between Azure DevOps work items to connect dependencies, hierarchy, and related tasks, with optional comments explaining each relationship.

Instructions

Add or remove links between work items

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": {
      "sourceWorkItemId": "<sourceWorkItemId>",
      "targetWorkItemId": "<targetWorkItemId>",
      "operation": "<operation>",
      "relationType": "<relationType>"
    },
    "name": "manage_work_item_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
commentNoOptional comment explaining the link
operationYesThe operation to perform on the link
projectIdNoThe ID or name of the project (Default: MyProject)
relationTypeYesThe reference name of the relation type (e.g., "System.LinkTypes.Hierarchy-Forward")
organizationIdNoThe ID or name of the organization (Default: mycompany)
newRelationTypeNoThe new relation type to use when updating a link
sourceWorkItemIdYesThe ID of the source work item
targetWorkItemIdYesThe ID of the target work item

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.0.0
    • addedInput schema / properties / organizationId
      Added value: +{
      +  "description": "The ID or name of the organization (Default: mycompany)",
      +  "type": "string"
      +}
    • changedInput schema / properties / projectId / description
      Previous value: -"The ID or name of the project"New value: +"The ID or name of the project (Default: MyProject)"
    • changedInput schema / required
      Previous value: -[
      -  "sourceWorkItemId",
      -  "targetWorkItemId",
      -  "projectId",
      -  "operation",
      -  "relationType"
      -]New value: +[
      +  "sourceWorkItemId",
      +  "targetWorkItemId",
      +  "operation",
      +  "relationType"
      +]
  2. First observed

TDQS

C2.9/5.0
Behavior2/5

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

The only annotation is readOnlyHint=false, so the description carries the burden of disclosing mutation behavior, and it does not: it never says whether removal is reversible, whether an existing link is silently replaced on "update", or what happens to links not named. It also fails to mention the "update" operation at all, leaving the agent unaware the tool can retype an existing link via newRelationType.

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 filler, which is structurally sound. Its brevity is the source of the missing information rather than verbosity, so it is efficient but under-specified.

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

Completeness2/5

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

For an 8-parameter mutation tool with a three-value operation enum, no output schema, and only a readOnlyHint=false annotation, a six-word sentence leaves too much unexplained. Key gaps are the unmentioned "update" path, the interaction between relationType and newRelationType, and any note on link removal consequences.

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 the operation enum and the newRelationType field is already documented in the schema. The description adds no meaning beyond that—no explanation of how source/target directionality works or when newRelationType is required—so the baseline 3 applies.

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 gives a specific verb pair and resource ("Add or remove links between work items"), which is enough to distinguish it from siblings like create_work_item or update_work_item. It falls short of a 5 because it omits the "update" operation that the schema's enum supports, so the stated purpose is narrower than the actual capability.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus editing a work item directly, no prerequisites (project/organization context, permissions), and no mention that removing a link is a mutation. The agent must infer all usage conditions from the parameter names.

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