Skip to main content
Glama

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
NameRequiredDescriptionDefault
photo_idYes

Implementation Reference

  • 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); },
  • 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"], }, },
  • 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"], },
  • 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() }); }

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/TaylorChen/muti-mcps'

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