users_get_all
Retrieve details of all user accounts within an organization using pagination parameters to manage large datasets effectively. Integrates with Yandex Tracker MCP for streamlined user data access.
Instructions
Get information about user accounts registered in the organization
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number to return, default is 1 | |
| per_page | No | The number of items per page. May be decreased if results exceed context window. If there is a change in per_page argument - retrieval must be started over with page = 1, as the paging could have changed. |
Implementation Reference
- mcp_tracker/mcp/tools.py:347-360 (handler)Handler function for 'users_get_all' tool, decorated with @mcp.tool for registration. Fetches paginated list of users from Yandex Tracker using the tracker client.@mcp.tool( description="Get information about user accounts registered in the organization" ) async def users_get_all( ctx: Context[Any, AppContext], page: PageParam = 1, per_page: PerPageParam = 50, ) -> list[User]: users = await ctx.request_context.lifespan_context.users.users_list( per_page=per_page, page=page, auth=get_yandex_auth(ctx), ) return users
- mcp_tracker/mcp/params.py:5-21 (schema)Input schema definitions for pagination parameters (PageParam, PerPageParam) used by the users_get_all tool.PageParam = Annotated[ int, Field( description="Page number to return, default is 1", ge=1, ), ] PerPageParam = Annotated[ int, Field( description="The number of items per page. May be decreased if results exceed context window. " "If there is a change in per_page argument - retrieval must be started over with page = 1, " "as the paging could have changed.", ge=1, ), ]
- mcp_tracker/mcp/server.py:166-166 (registration)Invocation of register_tools which registers the users_get_all tool (along with others) on the MCP server instance.register_tools(settings, mcp)