Skip to main content
Glama

create_work_package_relation

Destructive

Create a relation between two OpenProject work packages by setting their IDs and relation type, with a preview step before applying.

Instructions

Create a relation between work packages.

relation_type: relates, duplicates, duplicated, blocks, blocked, precedes, follows, includes, partof, requires, required. work_package_id becomes from_id and related_to_work_package_id becomes to_id, but OpenProject stores only one canonical type per pair and silently rewrites the other: creating with relation_type='precedes' (or 'blocked', 'duplicated', 'partof', 'required') is stored as the paired canonical type ('follows', 'blocks', 'duplicates', 'includes', 'requires' respectively) with from_id/to_id SWAPPED relative to work_package_id/related_to_work_package_id. The canonical types themselves ('follows', 'blocks', 'duplicates', 'includes', 'requires', and non-directional 'relates') are stored exactly as given, with from_id/to_id unswapped. This happens once at creation and does not depend on which work package's relations you later query; always read the actual type/from_id/to_id from the response rather than assuming they match what you requested.

Input Schema

NameRequiredDescriptionDefault
lagNo
confirmNofalse: preview only, nothing changes. true: applies it; get the user's approval of the preview first.
descriptionNo
relation_typeYes
work_package_idYesWork package id (e.g. 952) or display id (e.g. "PROJ-51"), not the bare number 51.
related_to_work_package_idYesWork package id (e.g. 952) or display id (e.g. "PROJ-51"), not the bare number 51.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.4

TDQS

A3.8/5.0
Behavior5/5

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

Beyond the annotations, the description discloses critical non-obvious behavior: OpenProject stores only one canonical relation type per pair, silently rewrites certain requested types, and may swap from_id/to_id relative to the input. It also instructs the agent to read the actual type and IDs from the response rather than assume they match the request. This is exactly the kind of behavioral context annotations cannot provide.

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?

The description is front-loaded with the core action and then provides dense, relevant detail about relation_type behavior. It is appropriately sized for a mutation with surprising canonicalization semantics, though the long run-on sentence about rewriting and swapping could be structured more readably.

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 output schema, the description covers the most important behavioral risk: canonical type rewriting and ID swapping. The schema already documents the confirm preview behavior, but the description omits usage guidance and does not explain the lag parameter, leaving minor gaps.

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?

The description adds substantial meaning beyond the schema by enumerating the accepted relation_type values and explaining how work_package_id and related_to_work_package_id map to from_id/to_id, including the swap behavior. It does not explain the lag or description parameters, so there is still a gap, but the most consequential parameter semantics are covered.

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 opens with a specific verb and resource: 'Create a relation between work packages.' That clearly identifies the operation. It does not explicitly differentiate itself from siblings such as update_relation, delete_relation, or get_work_package_relations, so it falls short of the top score.

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?

The description does not state when to use this tool versus alternatives such as update_relation or delete_relation. It also does not mention prerequisites, when to avoid creating a relation, or the preview/confirmation workflow described in the schema. Usage must be inferred from the verb alone.

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

Deploy Server

Other Tools