Skip to main content
Glama

jira_rank_issues

Reorder Jira issues by moving them before or after another issue, updating the shared rank used across backlogs, sprints, and boards.

Instructions

Reorder issues by moving them before or after another issue. Jira keeps a single global rank per issue, so this is the same ordering the backlog, every sprint, and every board read — an issue ranked above another sits above it wherever both appear, and there is no separate "position within this sprint" to set. Pass exactly one of rankBeforeIssue or rankAfterIssue. The issues move together as a block, in the order given, at most 50 per call. To see the current order first, run jira_search_issues with a JQL query ending in "ORDER BY Rank ASC".

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": {
      "issues": "<issues>"
    },
    "name": "jira_rank_issues"
  }
}

Input Schema

NameRequiredDescriptionDefault
issuesYesIssue keys to move, e.g. ["DOC-7", "DOC-9"] — placed in this order, 1-50 per call
rankAfterIssueNoKey of the issue to place them immediately below, e.g. "DOC-3". Mutually exclusive with rankBeforeIssue
rankBeforeIssueNoKey of the issue to place them immediately above, e.g. "DOC-3". Mutually exclusive with rankAfterIssue
rankCustomFieldIdNoNumeric id of a non-default rank field, e.g. 10019. Omit unless the board ranks on a custom field

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.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 carries the full burden and does well: it explains that rank is a single global ordering shared by backlog, sprints, and boards, that there is no separate per-sprint position, and that issues move as an ordered block. It omits permission requirements and error behavior when the reference issue is missing or in another project.

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?

The core action and ordering model come first, followed by the validation constraint, the batch semantics, and the inspection tip. Every sentence adds information an agent needs; there is no filler.

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 non-obvious mental model (global rank), the call constraint, the block ordering, the size cap, and a verification path. Only permission/authorization context and post-call result expectations are absent.

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 100%, so the schema already documents all four parameters, including the mutual exclusivity of the two rank anchors. The description reinforces the exclusivity and the ordered-block semantics of the issues array, but never mentions rankCustomFieldId, so it adds only marginal meaning beyond structured fields.

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 in the first sentence: "Reorder issues by moving them before or after another issue." No sibling tool performs ranking, so the purpose is unambiguous without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit preconditions (exactly one of rankBeforeIssue/rankAfterIssue), a volume limit (at most 50 per call), and a concrete way to inspect current order first via jira_search_issues with JQL ending in "ORDER BY Rank ASC". This routes the agent to the right sibling for a related step.

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