Skip to main content
Glama

pinterest_get_image_info

Extract Pinterest image details like metadata, source, and context from any image URL to analyze content and gather information.

Instructions

Get Pinterest image information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
image_urlYesImage URL

Implementation Reference

  • The handler function that extracts the image_url from args and returns formatted image information including URL, source, and timestamp.
    private async handlePinterestGetImageInfo(args: any) { try { // Extract parameters const imageUrl = args.image_url; // Return image info return { content: [ { type: 'text', text: `Pinterest Image Information`, }, { type: 'text', text: JSON.stringify({ image_url: imageUrl, source: 'Pinterest', timestamp: new Date().toISOString(), }, null, 2), }, ], }; } catch (error: any) { console.error('Error getting Pinterest image info:', error); return { content: [ { type: 'text', text: `Error getting image info: ${error.message}`, }, ], }; } }
  • Input schema defining the required 'image_url' parameter for the tool.
    inputSchema: { type: 'object', properties: { image_url: { type: 'string', description: 'Image URL', }, }, required: ['image_url'], },
  • Tool registration in the ListTools response, including name, description, and input schema.
    { name: 'pinterest_get_image_info', description: 'Get Pinterest image information', inputSchema: { type: 'object', properties: { image_url: { type: 'string', description: 'Image URL', }, }, required: ['image_url'], }, },
  • Dispatcher case in CallToolRequest handler that routes to the specific handler function.
    case 'pinterest_get_image_info': return await this.handlePinterestGetImageInfo(request.params.args || request.params.arguments);

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/terryso/mcp-pinterest'

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