Skip to main content
Glama

mcp__gemini__ai_chat

Engage in AI-driven conversations with customizable model selection to enhance communication and context understanding. Ideal for integrating intelligent dialogue into workflows.

Instructions

AI conversation with model selection

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextNoAdditional context
messageYesMessage for AI
modelNoModel typemain

Implementation Reference

  • Registration of the 'mcp__gemini__ai_chat' tool including schema and inline handler function
    this.registerTool( 'mcp__gemini__ai_chat', 'AI conversation with model selection', { message: { type: 'string', description: 'Message for AI', required: true }, model: { type: 'string', description: 'Model type', default: 'main' }, context: { type: 'string', description: 'Additional context' } }, async (args) => { const { message, model = 'main', context = '' } = args; validateString(message, 'message'); const response = await aiClient.call(message, model, { context }); return `🤖 **AI Response** (${model})\\n\\n${response}`; } );
  • The handler function that destructures args, validates message, calls aiClient.call with message, model, and context, and returns a formatted AI response
    async (args) => { const { message, model = 'main', context = '' } = args; validateString(message, 'message'); const response = await aiClient.call(message, model, { context }); return `🤖 **AI Response** (${model})\\n\\n${response}`; }
  • Input parameters schema defining message (required string), model (string with default 'main'), and context (string) for the tool.
    { message: { type: 'string', description: 'Message for AI', required: true }, model: { type: 'string', description: 'Model type', default: 'main' }, context: { type: 'string', description: 'Additional context' } },

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/emmron/gemini-mcp'

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