Skip to main content
Glama
Redmine MCP Server

Redmine MCP Server

by popper2710

create_issue_relation

Link two Redmine issues with a chosen relation type—such as blocks, duplicates, precedes, or relates—to track dependencies, duplicates, and sequencing in your project.

Instructions

Create a relation between two issues.

Args:
    issue_id: Source issue ID (required)
    issue_to_id: Target issue ID to relate to (required)
    relation_type: Type of relation (required). Valid values:
        - "relates" - Related to
        - "duplicates" - Duplicates (source duplicates target)
        - "duplicated" - Duplicated by (source is duplicated by target)
        - "blocks" - Blocks (source blocks target)
        - "blocked" - Blocked by (source is blocked by target)
        - "precedes" - Precedes (source must finish before target)
        - "follows" - Follows (source starts after target finishes)
        - "copied_to" - Copied to
        - "copied_from" - Copied from
    delay: Optional delay in days (only for "precedes" or "follows" relations)

Returns:
    Dictionary containing the created relation information including relation ID

Note:
    Some relation types automatically create their inverse:
    - "duplicates" creates "duplicated" on the other side
    - "blocks" creates "blocked" on the other side
    - "precedes" creates "follows" on the other side

    The Redmine REST API has no update operation for relations.
    To change an existing relation, delete it with
    delete_issue_relation() and create a new one.

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": {
      "issue_id": "<issue_id>",
      "issue_to_id": "<issue_to_id>",
      "relation_type": "<relation_type>"
    },
    "name": "create_issue_relation"
  }
}

Input Schema

NameRequiredDescriptionDefault
delayNo
issue_idYes
issue_to_idYes
relation_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description does the heavy lifting: it discloses the return shape (a dictionary with the relation ID), the fact that some relation types auto-create their inverse, and the constraint that relations cannot be updated. It does not cover failure modes such as duplicate or circular relations, or the permission requirements for creating relations.

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?

It is well structured and front-loaded: purpose, then Args, then Returns, then Notes. The nine-value enumeration is long, but each entry earns its place because the schema has no enum and the directionality matters. Nothing is redundant.

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 mutation tool with no annotations and no output schema, the definition covers the return value, inverse-relation side effects, and the lack of an update path. It would be complete if it added permission or error expectations, but everything needed for a correct call is present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, yet the definition fully compensates: it explains the source/target directionality of issue_id and issue_to_id, enumerates all nine valid relation_type values with their semantics, and notes that delay is in days and only applies to 'precedes' or 'follows'. This is meaning the agent cannot get from the schema.

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 and resource: 'Create a relation between two issues.' It clearly distinguishes this from delete_issue_relation, which is named as the way to change an existing relation.

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?

Explicitly explains the delete-then-recreate pattern because the Redmine REST API has no update operation for relations. That is strong context, but the definition never states when a relation should be created or what the preconditions are (for example, issue visibility or permission requirements), so it falls short of full when/when-not guidance.

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