Skip to main content
Glama
KS-GEN-AI

Jira MCP Server

by KS-GEN-AI

get_all_statuses

Retrieve all available Jira issue statuses to understand workflow states and track ticket progress across projects.

Instructions

Get all the status on Jira on the api /rest/api/3/status. Do not use markdown in your query.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
number_of_resultsNoNumber of results to return

Implementation Reference

  • Handler for the 'get_all_statuses' tool within the MCP server's request handler switch statement. Extracts the number_of_results argument (default 50) and calls getAllStatus to fetch statuses from Jira, returning the JSON response.
    case 'get_all_statuses': {
      const number_of_results = Number(
        request.params.arguments?.number_of_results ?? 50,
      );
    
      const response = await getAllStatus(number_of_results);
    
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(response, null, 2),
          },
        ],
      };
    }
  • Tool schema definition including name, description, and inputSchema for 'get_all_statuses' with optional number_of_results (integer, default 1). Part of the tools array likely used for registration.
    {
      name: 'get_all_statuses',
      description:
        'Get all the status on Jira on the api /rest/api/3/status. Do not use markdown in your query.',
      inputSchema: {
        type: 'object',
        properties: {
          number_of_results: {
            type: 'integer',
            description: 'Number of results to return',
            default: 1,
          },
        },
      },
    },
  • Core helper function that performs the API call to Jira's /rest/api/3/status endpoint with maxResults parameter, returns the data or error.
    async function getAllStatus(number_of_results: number): Promise<any> {
      try {
        const params = {
          maxResults: number_of_results, // Adjust as needed
        };
    
        const response = await axios.get(`${JIRA_URL}/rest/api/3/status`, {
          headers: getAuthHeaders().headers,
          params,
        });
    
        return response.data;
      } catch (error: any) {
        //return the error in a json
        return {
          error: error.response.data,
        };
      }
    }

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.4/5.0
Behavior1/5

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

No annotations are present, so the description must convey behavioral traits. It claims to 'get all' statuses, but the input schema parameter 'number_of_results' defaults to 1, implying a limited return — a clear contradiction with the description. No mention of permissions, rate limits, or side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short but includes an unnecessary instruction about markdown, which wastes space. The first sentence is acceptable.

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 is simple with one parameter and no output schema, the description should clarify what statuses include (e.g., IDs, names) and reconcile the 'all' vs. limited results conflict. It currently leaves the agent with unanswered questions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is 100%, the description does not mention the 'number_of_results' parameter at all. The schema description 'Number of results to return' conflicts with the description's 'Get all', so no added meaning is provided.

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 tool retrieves all Jira statuses and mentions the API endpoint, but the phrase 'Do not use markdown in your query' is irrelevant and detracts slightly from clarity.

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?

No guidance is provided on when to use this tool versus siblings like list_projects or execute_jql, nor are there any context or exclusion criteria.

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