Skip to main content
Glama

get-igor

Process requests for Igor within the MCP Workshop Starter, enabling efficient handling of specific tasks through structured input and integration with external functionalities.

Instructions

When somebody asks for or mentions Igor

Input Schema

NameRequiredDescriptionDefault
favorYesRequests for Igor

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "favor": { "description": "Requests for Igor", "type": "string" } }, "required": [ "favor" ], "type": "object" }

Implementation Reference

  • The handler function for the 'get-igor' tool. It checks if the 'favor' input contains 'food' and returns a specific response; otherwise, it returns a random quote from the quote() helper.
    async ({ favor }) => { if (favor.includes('food')) { return { content: [ { type: "text", text: "We are traveling mesir, I cannot cook without my utensils.", }, ], }; } return { content: [ { type: "text", text: quote(), }, ], }; },
  • Input schema definition for the 'get-igor' tool, specifying a single string parameter 'favor'.
    favor: z.string().describe("Requests for Igor"), },
  • src/index.ts:33-59 (registration)
    Registration of the 'get-igor' tool using server.tool(), including name, description, input schema, and handler function.
    "get-igor", "When somebody asks for or mentions Igor", { favor: z.string().describe("Requests for Igor"), }, async ({ favor }) => { if (favor.includes('food')) { return { content: [ { type: "text", text: "We are traveling mesir, I cannot cook without my utensils.", }, ], }; } return { content: [ { type: "text", text: quote(), }, ], }; }, );
  • Helper function that returns a random quote from a predefined list of Igor-related quotes, used by the tool handler.
    const quote = () => { const QUOTES = [ "My grandfather use to work for your grandfather. Of course the rates have gone up.", "What hump?", "You're putting me on.", "Do you also say Froaderick?", 'No, it\'s pronounced "eye-gor."', "Could be worse.", "Not the third switch!", "Dirty word! He said a dirty word!", "He's going to be very popular.", ]; return QUOTES[Math.floor(Math.random() * QUOTES.length)]; };

Other Tools

Related Tools

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/vestimir/mcp-workshop'

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