Skip to main content
Glama

get_all_statuses

Retrieve all statuses from Jira using the /rest/api/3/status API to monitor workflows and project progress efficiently.

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 'get_all_statuses' tool in the CallToolRequestSchema request handler. Extracts arguments, calls getAllStatus helper, and returns 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), }, ], }; }
  • Core helper function that performs the API call to retrieve statuses from Jira's /rest/api/3/status endpoint.
    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, }; } }
  • src/index.ts:192-206 (registration)
    Tool registration in ListToolsRequestSchema handler, defining name, description, and input schema.
    { 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, }, }, }, },
  • Input schema definition for the 'get_all_statuses' tool.
    inputSchema: { type: 'object', properties: { number_of_results: { type: 'integer', description: 'Number of results to return', default: 1, }, }, },

Other Tools

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

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