queue_get_local_fields
Retrieve queue-specific custom fields for a Yandex Tracker project by specifying its Queue ID. Simplifies access to localized field data for efficient issue management.
Instructions
Get local fields for a specific Yandex Tracker queue (queue-specific custom fields)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| queue_id | Yes | Queue (Project ID) to search in, like 'SOMEPROJECT' |
Implementation Reference
- mcp_tracker/mcp/tools.py:104-120 (handler)The async handler function that implements the core logic of the queue_get_local_fields tool, calling the underlying queues_get_local_fields method.async def queue_get_local_fields( ctx: Context[Any, AppContext], queue_id: QueueID, ) -> list[LocalField]: if ( settings.tracker_limit_queues and queue_id not in settings.tracker_limit_queues ): raise TrackerError(f"Queue `{queue_id}` not found or not allowed.") fields = ( await ctx.request_context.lifespan_context.queues.queues_get_local_fields( queue_id, auth=get_yandex_auth(ctx), ) ) return fields
- mcp_tracker/mcp/server.py:166-166 (registration)The call to register_tools(settings, mcp) which defines and registers the queue_get_local_fields tool among others using @mcp.tool decorators.register_tools(settings, mcp)
- mcp_tracker/mcp/params.py:28-33 (schema)Type definition for the input parameter 'queue_id' using Pydantic Annotated with description, providing input schema validation.QueueID = Annotated[ str, Field( description="Queue (Project ID) to search in, like 'SOMEPROJECT'", ), ]
- mcp_tracker/mcp/tools.py:101-103 (registration)The @mcp.tool decorator that registers the queue_get_local_fields function as an MCP tool with its description.@mcp.tool( description="Get local fields for a specific Yandex Tracker queue (queue-specific custom fields)" )