Skip to main content
Glama

link_work_items

Attach one or more work items (issues or epics) as children of a parent epic. Idempotent and uses dry-run mode by default for preview.

Instructions

Attach one or more work items (issues or epics) as children of a parent work item (epic). Uses the Work Items hierarchy widget — the canonical GitLab 17+ replacement for add_issue_to_epic. Idempotent: existing children of the parent are preserved. Resolve GIDs via get_work_item_id. dry_run=true by default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
parent_work_item_idYesParent WorkItem GID (resolve via get_work_item_id with item_type=epic)
child_work_item_idsYesWorkItem GIDs of children to attach (Issue or Epic)
dry_runNoDry run mode (default: true). When true, returns a preview of the action without executing it. Set to false only after user confirmation.
Behavior5/5

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

Beyond annotations (readOnlyHint=false), description adds idempotency, preservation of existing children, and dry_run default, giving full behavioral clarity.

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 concise sentences cover purpose, replacement, idempotency, resolution, and dry_run without redundancy.

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

Completeness5/5

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

Despite no output schema, description covers prerequisites, behavior, and parameter semantics completely for a mutation tool with dry_run support.

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?

All parameters are described with additional context beyond schema: parent requires resolution, child items can be Issue or Epic, dry_run explains default and user confirmation requirement.

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?

Description clearly states it attaches work items as children of a parent epic, specifying verb, resources, and distinguishing itself as the GitLab 17+ replacement for add_issue_to_epic.

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?

Provides guidance on resolving GIDs via get_work_item_id and dry_run usage, but could more explicitly contrast with siblings like add_linked_item.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wanadev/gitlab-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server