Skip to main content
Glama
watchdealer-pavel

WatchBase MCP Server

get_watch_details

Retrieve comprehensive watch metadata including technical specifications, reference numbers, and collection details by providing a watch ID.

Instructions

Retrieve the full details for a particular watch by its ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesID of the watch

Implementation Reference

  • Specific handler logic for the 'get_watch_details' tool within the CallToolRequestSchema handler. Validates input using isGetWatchDetailsArgs, sets the API endpoint path to 'watch' and parameters to the provided watch ID, then proceeds to the shared API call execution.
    case 'get_watch_details': if (!isGetWatchDetailsArgs(args)) throw new McpError(ErrorCode.InvalidParams, 'Invalid arguments for get_watch_details'); apiPath = 'watch'; apiParams = { id: args.id }; break;
  • JSON Schema definition for the input parameters of the 'get_watch_details' tool, specifying an object with a required 'id' field that can be string or number.
    inputSchema: { type: 'object', properties: { id: { oneOf: [{ type: 'string' }, { type: 'number' }], description: 'ID of the watch', }, }, required: ['id'], },
  • src/index.ts:165-178 (registration)
    Tool registration entry in the tools array returned by ListToolsRequestSchema handler. Includes name, description, and input schema for 'get_watch_details'.
    { name: 'get_watch_details', description: 'Retrieve the full details for a particular watch by its ID.', inputSchema: { type: 'object', properties: { id: { oneOf: [{ type: 'string' }, { type: 'number' }], description: 'ID of the watch', }, }, required: ['id'], }, },
  • Type guard helper function used in the handler to validate that arguments match the expected shape: an object with 'id' as string or number.
    const isGetWatchDetailsArgs = (args: any): args is { id: string | number } => typeof args === 'object' && args !== null && (typeof args.id === 'string' || typeof args.id === 'number');

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