Skip to main content
Glama

check_api_keys

Verifies API keys are properly configured for the LinkedIn Post Generator to create post drafts from YouTube video transcripts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/server.js:58-71 (registration)
    Registration of the 'check_api_keys' MCP tool. Includes empty input schema, inline handler function that retrieves API key status via apiKeyManager.getStatus() and returns it as JSON text content, and tool description.
    server.tool(
      "check_api_keys",
      {},
      async () => {
        const status = apiKeyManager.getStatus();
        return {
          content: [{ 
            type: "text", 
            text: JSON.stringify(status, null, 2)
          }]
        };
      },
      { description: "Check the status of your API keys" }
    );
  • ApiKeyManager.getStatus() method called by the tool handler. Returns a status object with masked API keys for OpenAI and YouTube, indicating if set and partial key for verification.
    getStatus() {
      return {
        openai: {
          set: this.hasOpenAIKey(),
          key: this.hasOpenAIKey() ? "********" + this.openaiApiKey.slice(-4) : null
        },
        youtube: {
          set: this.hasYouTubeKey(),
          key: this.hasYouTubeKey() ? "********" + this.youtubeApiKey.slice(-4) : null
        }
      };
    }

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/NvkAnirudh/LinkedIn-Post-Generator'

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