user_get
Retrieve detailed information about a specific user in Yandex Tracker by providing their login or UID. Simplify user data access for accurate issue management and tracking.
Instructions
Get information about a specific user by login or UID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | User identifier - can be user login (e.g., 'john.doe') or user UID (e.g., '12345') |
Implementation Reference
- mcp_tracker/mcp/tools.py:407-419 (handler)The main handler function for the MCP 'user_get' tool. It retrieves user information by user_id using the tracker client, with error handling if user not found.@mcp.tool(description="Get information about a specific user by login or UID") async def user_get( ctx: Context[Any, AppContext], user_id: UserID, ) -> User: user = await ctx.request_context.lifespan_context.users.user_get( user_id, auth=get_yandex_auth(ctx), ) if user is None: raise TrackerError(f"User `{user_id}` not found.") return user
- mcp_tracker/mcp/params.py:42-47 (schema)Pydantic schema definition for the 'user_id' input parameter of the user_get tool.UserID = Annotated[ str, Field( description="User identifier - can be user login (e.g., 'john.doe') or user UID (e.g., '12345')" ), ]
- mcp_tracker/mcp/server.py:166-166 (registration)Location where register_tools is called, which defines and registers the user_get tool via @mcp.tool decorator.register_tools(settings, mcp)