get_photo_details
Retrieve detailed information about a specific photo using its unique identifier within the Multi-MCPs server's aggregated API services.
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 main handler function for the 'get_photo_details' tool. It checks for the required Unsplash access key configuration, extracts the photo_id from args, validates it, and delegates to the UnsplashClient's getPhotoDetails method.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:55-59 (schema)Input schema definition for the 'get_photo_details' tool, specifying that 'photo_id' is a required string.inputSchema: { type: "object", properties: { photo_id: { type: "string" } }, required: ["photo_id"], },
- src/apis/unsplash/unsplash.ts:52-60 (registration)Tool registration entry for 'get_photo_details' in the tools array returned by registerUnsplash, including name, description, and input schema.{ 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:24-26 (helper)Helper method in the UnsplashClient class that performs the actual API request to retrieve photo details by ID from the Unsplash API.getPhotoDetails(photoId: string) { return this.request(`/photos/${photoId}`, { headers: this.headers() }); }