get_priorities
Retrieve all available issue priorities in Yandex Tracker to ensure accurate task categorization and workflow management.
Instructions
Get all priorities available in Yandex Tracker that can be used in issues
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp_tracker/mcp/tools.py:191-200 (handler)The primary MCP tool handler for 'get_priorities'. It is decorated with @mcp.tool and delegates to the underlying fields client protocol.@mcp.tool( description="Get all priorities available in Yandex Tracker that can be used in issues" ) async def get_priorities( ctx: Context[Any, AppContext], ) -> list[Priority]: priorities = await ctx.request_context.lifespan_context.fields.get_priorities( auth=get_yandex_auth(ctx), ) return priorities
- mcp_tracker/mcp/server.py:164-166 (registration)Registration of tools including 'get_priorities' via register_tools call after creating the FastMCP server instance.mcp = create_mcp_server() register_resources(settings, mcp) register_tools(settings, mcp)
- Concrete implementation of get_priorities in the TrackerClient class, which makes an HTTP GET request to the Yandex Tracker '/v3/priorities' API endpoint and parses the response.async def get_priorities(self, *, auth: YandexAuth | None = None) -> list[Priority]: async with self._session.get( "v3/priorities", headers=await self._build_headers(auth) ) as response: response.raise_for_status() return PriorityList.model_validate_json(await response.read()).root
- Protocol (abstract method) definition for get_priorities in GlobalDataProtocol, implemented by client wrappers.async def get_priorities( self, *, auth: YandexAuth | None = None ) -> list[Priority]: ...
- Caching wrapper for get_priorities that delegates to the original implementation with aiocache.async def get_priorities( self, *, auth: YandexAuth | None = None ) -> list[Priority]: return await self._original.get_priorities(auth=auth)