Skip to main content
Glama

update_openrouter_token

Update the Open Router API Key in the VoiceAI-MCP-VAVicky server to ensure proper integration and access to AI-driven voice and chat functionalities.

Instructions

Update Open Router API Key

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
openrouter_tokenYesOpen Router API Key

Implementation Reference

  • Switch case in the executeTool method that sets up a POST request to the backend API endpoint '/openrouter/oauth' with the new OpenRouter token in the request body, executing the tool logic.
    case 'update_openrouter_token': url = `${this.baseUrl}/openrouter/oauth`; method = 'POST'; body = { openrouter_token: args.openrouter_token }; break;
  • Tool definition including name, description, and input schema registered in the ListTools response, specifying the required 'openrouter_token' string parameter.
    { name: 'update_openrouter_token', description: 'Update Open Router API Key', inputSchema: { type: 'object', properties: { openrouter_token: { type: 'string', description: 'Open Router API Key' } }, required: ['openrouter_token'] } },
  • index.js:123-133 (registration)
    Registration of the 'update_openrouter_token' tool in the array returned by the ListToolsRequestSchema handler.
    { name: 'update_openrouter_token', description: 'Update Open Router API Key', inputSchema: { type: 'object', properties: { openrouter_token: { type: 'string', description: 'Open Router API Key' } }, required: ['openrouter_token'] } },

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/Business-On-Steroids/MCP-VoiceAI-WhiteLabel'

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