Skip to main content
Glama

jira_search_users

Find Jira users by username to assign tasks, mention in comments, or manage project teams. Enter a search query to locate specific users within your Jira instance.

Instructions

Search for Jira users

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesUsername search query

Implementation Reference

  • Core handler function that performs the actual Jira API call to search users by username query.
    async searchUsers(query: string): Promise<JiraUser[]> { return this.request<JiraUser[]>( `/user/search?username=${encodeURIComponent(query)}` ); }
  • MCP server dispatch handler for the tool call, validates input and delegates to JiraClient.
    case "jira_search_users": { const { query } = SearchUsersSchema.parse(args); const users = await jiraClient.searchUsers(query); return { content: [{ type: "text", text: JSON.stringify(users, null, 2) }], }; }
  • Input schema validation using Zod for the tool parameters.
    const SearchUsersSchema = z.object({ query: z.string().describe("Username search query"), });
  • src/index.ts:390-400 (registration)
    Tool registration in the MCP listTools response, defining name, description, and input schema.
    { name: "jira_search_users", description: "Search for Jira users", inputSchema: { type: "object", properties: { query: { type: "string", description: "Username search query" }, }, required: ["query"], }, },
  • TypeScript interface defining the structure of JiraUser objects returned by the tool.
    export interface JiraUser { self: string; key: string; name: string; emailAddress: string; displayName: string; active: boolean; }

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/yogeshhrathod/JiraMCP'

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