get_current_user
Retrieve information about the current authenticated user in Jira, including account details and roles.
Instructions
Get information about the current authenticated user
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": "get_current_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/assignments.ts:104-126 (handler)Handler function for the 'get_current_user' tool. Calls jiraClient.getCurrentUser() and returns essential user fields (accountId, displayName, emailAddress, active, timeZone, accountType).
case 'get_current_user': { const user = await jiraClient.getCurrentUser(); // Extract essential fields, improve syntax const userData = user; const essentialUser = { id: userData.accountId, // Shorter field name name: userData.displayName, // Shorter field name email: userData.emailAddress, // Shorter field name active: userData.active, timezone: userData.timeZone, // Shorter field name type: userData.accountType // Shorter field name }; return { content: [ { type: 'text', text: JSON.stringify(essentialUser, null, 2), }, ], }; } - src/tools/assignments.ts:51-58 (schema)Tool definition/schema for 'get_current_user'. Defines name, description, and an empty inputSchema (no parameters needed).
{ name: 'get_current_user', description: 'Get information about the current authenticated user', inputSchema: { type: 'object', properties: {}, }, },