Skip to main content
Glama

get_watching_list_items

Retrieve a user's list of watching items from Backlog project management tools by providing the user ID, enabling efficient tracking of monitored tasks and issues.

Instructions

Returns list of watching items for a user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdYesUser ID

Implementation Reference

  • Factory function defining the MCP tool 'get_watching_list_items', including its input/output schemas, description, and handler that executes backlog.getWatchingListItems(userId). This is the core implementation of the tool logic.
    export const getWatchingListItemsTool = ( backlog: Backlog, { t }: TranslationHelper ): ToolDefinition< ReturnType<typeof getWatchingListItemsSchema>, (typeof WatchingListItemSchema)['shape'] > => { return { name: 'get_watching_list_items', description: t( 'TOOL_GET_WATCHING_LIST_ITEMS_DESCRIPTION', 'Returns list of watching items for a user' ), schema: z.object(getWatchingListItemsSchema(t)), outputSchema: WatchingListItemSchema, handler: async ({ userId }) => backlog.getWatchingListItems(userId), }; };
  • Input schema definition for the get_watching_list_items tool, specifying the userId as a required number parameter.
    const getWatchingListItemsSchema = buildToolSchema((t) => ({ userId: z .number() .describe(t('TOOL_GET_WATCHING_LIST_ITEMS_USER_ID', 'User ID')), }));
  • The tool is registered/added to the 'issue' toolset group by invoking the factory function with the backlog client and translation helper.
    getWatchingListItemsTool(backlog, helper),
  • Import of the getWatchingListItemsTool factory for use in toolset registration.
    import { getWatchingListItemsTool } from './getWatchingListItems.js';

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/nulab/backlog-mcp-server'

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