Skip to main content
Glama
watchdealer-pavel

WatchBase MCP Server

list_families

Retrieve all watch families for a specific brand using the WatchBase MCP Server, enabling structured access to comprehensive watch metadata for querying and analysis.

Instructions

Retrieve a list of all families for a given brand.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
brand_idYesBrandID of the brand

Implementation Reference

  • Handler logic for the list_families tool: validates input arguments using type guard and sets the API endpoint ('families') and parameters for the WatchBase API call.
    case 'list_families': if (!isListFamiliesArgs(args)) throw new McpError(ErrorCode.InvalidParams, 'Invalid arguments for list_families'); apiPath = 'families'; apiParams = { 'brand-id': args.brand_id }; // API uses hyphen break;
  • Input schema definition for the list_families tool, specifying brand_id as required string or number.
    inputSchema: { type: 'object', properties: { brand_id: { oneOf: [{ type: 'string' }, { type: 'number' }], description: 'BrandID of the brand', }, }, required: ['brand_id'], },
  • src/index.ts:129-142 (registration)
    Registration of the list_families tool within the tools array returned by the ListTools handler.
    { name: 'list_families', description: 'Retrieve a list of all families for a given brand.', inputSchema: { type: 'object', properties: { brand_id: { oneOf: [{ type: 'string' }, { type: 'number' }], description: 'BrandID of the brand', }, }, required: ['brand_id'], }, },
  • Type guard helper function used to validate arguments for the list_families tool in the handler.
    const isListFamiliesArgs = (args: any): args is { brand_id: string | number } => typeof args === 'object' && args !== null && (typeof args.brand_id === 'string' || typeof args.brand_id === 'number');

Other Tools

Related Tools

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/watchdealer-pavel/watchbase-mcp-server'

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