Skip to main content
Glama

get_watching_list_items

Retrieve a user's list of watched items from Backlog project management to track issues, projects, and resources requiring attention.

Instructions

Returns list of watching items for a user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdYesUser ID

Implementation Reference

  • The tool definition including the handler function that executes the tool logic by delegating to the Backlog SDK's getWatchingListItems method with the provided userId.
    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 tool, specifying userId as a required number field.
    const getWatchingListItemsSchema = buildToolSchema((t) => ({ userId: z .number() .describe(t('TOOL_GET_WATCHING_LIST_ITEMS_USER_ID', 'User ID')), }));
  • Import of the getWatchingListItemsTool.
    import { getWatchingListItemsTool } from './getWatchingListItems.js';
  • Registration of the tool in the 'issue' toolset within allTools function.
    getWatchingListItemsTool(backlog, helper),

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