Skip to main content
Glama

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, }; } }

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/KS-GEN-AI/jira-mcp-server'

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