jira_get_projects
Retrieve a list of all Jira projects to view available workspaces and their details for project management and organization.
Instructions
Get list of Jira projects
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "jira_get_projects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/jira_server.py:374-389 (handler)The handler function that implements the core logic of jira_get_projects: fetches projects from Jira client, formats them into a list with key, name, id, and returns as JSON text content.
async def _get_projects(self) -> List[TextContent]: """Get list of projects""" projects = self.jira_client.projects() project_list = [] for project in projects: project_list.append({ "key": project["key"], "name": project["name"], "id": project["id"] }) return [TextContent( type="text", text=json.dumps(project_list, indent=2) )] - src/jira_server.py:181-189 (registration)Tool registration in list_tools() method, defining the tool name, description, and empty input schema.
Tool( name="jira_get_projects", description="Get list of Jira projects", inputSchema={ "type": "object", "properties": {} } ) ] - src/jira_server.py:184-187 (schema)Input schema for jira_get_projects tool, which requires no parameters.
inputSchema={ "type": "object", "properties": {} } - src/jira_server.py:209-210 (handler)Dispatch in the main call_tool handler that routes to the _get_projects implementation.
elif name == "jira_get_projects": return await self._get_projects()