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
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the watch |
Implementation Reference
- src/index.ts:225-229 (handler)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;
- src/index.ts:168-177 (schema)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'], }, },
- src/index.ts:47-50 (helper)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');