Skip to main content
Glama

transition_issue

Change Jira issue status by executing workflow transitions with optional comments to track progress updates.

Instructions

Change the status of a Jira issue by transitioning it

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issueKeyYesThe issue key to transition (e.g., PROJ-123)
transitionIdYesThe transition ID to execute (get from get_transitions)
commentNoOptional comment to add with the transition

Implementation Reference

  • The core handler function that executes the tool logic: destructures arguments, validates inputs, constructs transition payload (with optional comment), calls Jira API to perform the transition, and returns success/error response.
    async handleTransitionIssue(args: any) {
      try {
        const { issueKey, transitionId, comment } = args;
    
        if (!issueKey || !transitionId) {
          throw new Error('issueKey and transitionId are required');
        }
    
        const transitionData: any = {
          transition: {
            id: transitionId,
          },
        };
    
        // Add comment if provided
        if (comment) {
          transitionData.update = {
            comment: [
              {
                add: {
                  body: comment,
                },
              },
            ],
          };
        }
    
        await this.apiClient.post(`/issue/${issueKey}/transitions`, transitionData);
    
        return {
          content: [
            {
              type: 'text',
              text: `✅ Issue ${issueKey} transitioned successfully!`,
            },
          ],
        };
      } catch (error: any) {
        return {
          content: [
            {
              type: 'text',
              text: JiraFormatters.formatError(error),
            },
          ],
          isError: true,
        };
      }
    }
  • Tool definition including name, description, and input schema (JSON Schema) for validating tool arguments.
    {
      name: 'transition_issue',
      description: 'Change the status of a Jira issue by transitioning it',
      inputSchema: {
        type: 'object',
        properties: {
          issueKey: {
            type: 'string',
            description: 'The issue key to transition (e.g., PROJ-123)',
          },
          transitionId: {
            type: 'string',
            description: 'The transition ID to execute (get from get_transitions)',
          },
          comment: {
            type: 'string',
            description: 'Optional comment to add with the transition',
          },
        },
        required: ['issueKey', 'transitionId'],
      },
    },
  • src/index.ts:130-131 (registration)
    Registers the tool handler in the MCP server's switch statement for routing tool calls to the appropriate handler method.
    case 'transition_issue':
      return this.transitionHandlers.handleTransitionIssue(request.params.arguments);
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the tool performs a status change (implying a mutation), but doesn't address critical aspects like required permissions, whether the transition is reversible, potential side effects (e.g., triggering workflows), or error conditions. For a mutation tool with zero annotation coverage, this is a significant gap in transparency.

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 description is a single, efficient sentence that directly states the tool's function without unnecessary words. It's appropriately sized and front-loaded, making it easy for an agent to parse quickly. Every word earns its place in conveying the core purpose.

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

Completeness2/5

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

Given the tool's complexity (a mutation operation in Jira with 3 parameters), lack of annotations, and no output schema, the description is insufficiently complete. It doesn't explain what happens after the transition (e.g., success/failure responses, returned data), nor does it cover behavioral nuances like authentication needs or rate limits. For a tool that changes issue states, more context is needed for reliable agent use.

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 description coverage is 100%, so the input schema already documents all three parameters thoroughly. The description adds no additional meaning about parameters beyond what's in the schema (e.g., it doesn't explain the relationship between 'transitionId' and status changes, or provide examples of valid transitions). This meets the baseline for high schema coverage but doesn't enhance parameter understanding.

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 clearly states the verb ('Change the status') and resource ('a Jira issue'), making the purpose understandable. However, it doesn't explicitly distinguish this from sibling tools like 'update_issue' which might also modify issue states, leaving some ambiguity about when to use this specific transition-focused tool versus broader update operations.

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 provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing to call 'get_transitions' first to obtain transition IDs), nor does it clarify when to choose this over 'update_issue' or other sibling tools that might handle status changes differently. This leaves the agent with minimal context for tool selection.

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/pdogra1299/jira-mcp-server'

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