Skip to main content
Glama

Relate GitHub issues

github_issue_relate
Idempotent

Set an issue's parent, sub-issues, blocked-by, and blocking links in one call; reads current relations and applies only differences, so reruns are safe.

Instructions

Set an issue's parent (parent or remove_parent), sub-issues, blocked-by and blocking issues (add_ and remove_ lists) in one call. It reads the current relations first and sends only the difference, so a rerun is safe; what already holds is listed as unchanged. GitHub allows 100 sub-issues per parent, all of one owner. Every other repository named needs write permission too and is listed in other_repos. An issue is 12, #12, owner/repo#12 or its URL; a bare number means the issue's repository.

Input Schema

NameRequiredDescriptionDefault
repoNoowner/name; defaults to the working tree's repository (its origin). Used for a bare number.
issueYesThe issue, as 12, #12, owner/repo#12 or its URL.
parentNoThe issue to set as the parent: 12, #12, owner/repo#12 or its URL; a bare number means the issue's repository.
add_blockingNoIssues this one blocks, in the same forms.
remove_parentNoTake the issue out of its parent; not with parent.
add_blocked_byNoIssues that block this one, in the same forms.
add_sub_issuesNoIssues to add as sub-issues: 12, #12, owner/repo#12 or its URL; a bare number means the issue's repository.
remove_blockingNo
remove_blocked_byNo
remove_sub_issuesNo

Output Schema

NameRequiredDescriptionDefault
repoYes
issueYes
parentYes
foreignYes
blockingYes
blocked_byYes
sub_issuesYes
other_reposYesThe other repositories the relations name, each checked for write permission.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the supplied annotations it discloses the read-modify-write strategy ('reads the current relations first and sends only the difference'), how the result reports state ('what already holds is listed as unchanged'), and hard platform constraints (100 sub-issues per parent, all of one owner). It also adds an authorization dimension absent from the schema: every other repository named needs write permission and appears in other_repos.

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?

Three dense sentences, front-loaded with the action before the read-diff behavior, the limits and the reference grammar. The final sentence partially restates the schema's issue-format description, which is a small redundancy but also serves to apply that grammar to every list parameter.

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?

For a 10-parameter mutation tool with an output schema, the description covers the operation, idempotency, result reporting, platform caps and cross-repo authorization, which is everything needed to invoke it correctly. Return-value detail is correctly left to the output schema.

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 coverage is 70%, and the description clarifies the reference grammar and bare-number resolution, which also applies implicitly to the four remove_* arrays that have no schema description of their own. It adds real value on cross-repo permission semantics, but the remove_blocking, remove_blocked_by and remove_sub_issues parameters are never explained beyond the '(add_ and remove_ lists)' hint.

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 ('Set an issue's parent ... sub-issues, blocked-by and blocking issues') and enumerates the parameter families that do it, so an agent can tell this apart from github_issue_edit or github_issue_read. It stops short of explicitly naming which sibling handles title/body/label changes, leaving that distinction to be inferred.

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?

It gives clear context for use ('in one call', 'a rerun is safe') and a mutual-exclusion rule ('remove_parent ... not with parent'), plus the cross-repo write-permission requirement. It does not explicitly state when to prefer this over a sibling tool or what to do if the caller lacks permission on a named repo, so it is clear but not fully routing.

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