get_photo_details
Retrieve detailed information about a photo by its ID using this tool. Part of the Multi-MCPs server, which integrates multiple APIs for unified access to services like Google Maps, GitHub, and more.
Instructions
Get photo details by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| photo_id | Yes |
Implementation Reference
- src/apis/unsplash/unsplash.ts:75-80 (handler)The primary handler for the 'get_photo_details' tool. It checks for the Unsplash access key configuration, validates the photo_id argument, and calls the UnsplashClient's getPhotoDetails method to fetch the details.async get_photo_details(args: Record<string, unknown>) { if (!cfg.unsplashAccessKey) throw new Error("UNSPLASH_ACCESS_KEY is not configured"); const photoId = String(args.photo_id || ""); if (!photoId) throw new Error("photo_id is required"); return client.getPhotoDetails(photoId); },
- src/apis/unsplash/unsplash.ts:52-60 (registration)Tool registration entry for 'get_photo_details', including name, description, and input schema definition (photo_id required string).{ name: "get_photo_details", description: "Get photo details by ID", inputSchema: { type: "object", properties: { photo_id: { type: "string" } }, required: ["photo_id"], }, },
- src/apis/unsplash/unsplash.ts:55-59 (schema)Input schema for the 'get_photo_details' tool, specifying photo_id as a required string property.inputSchema: { type: "object", properties: { photo_id: { type: "string" } }, required: ["photo_id"], },
- src/apis/unsplash/unsplash.ts:24-26 (helper)UnsplashClient helper method that performs the actual API request to retrieve photo details by photoId.getPhotoDetails(photoId: string) { return this.request(`/photos/${photoId}`, { headers: this.headers() }); }