Skip to main content
Glama

send_chat_message

Send chat messages from a bot to meeting participants during video calls. Use this tool to communicate text-based information within meetings.

Instructions

Send a chat message from the bot to the meeting

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bot_idYesID of the bot that should send the message
messageYesMessage text to send

Implementation Reference

  • The handler function that validates inputs, makes an API POST request to send the chat message via the backend, and returns a success message.
    private async sendChatMessage(args: Record<string, unknown>) {
      const bot_id = args.bot_id as string;
      const message = args.message as string;
      
      if (!bot_id || typeof bot_id !== 'string') {
        throw new Error("Missing or invalid required parameter: bot_id");
      }
      
      if (!message || typeof message !== 'string') {
        throw new Error("Missing or invalid required parameter: message");
      }
      
      await this.makeApiRequest(`/api/v1/bots/${bot_id}/send_chat_message`, "POST", {
        message
      });
    
      return {
        content: [
          {
            type: "text",
            text: `✅ Chat message sent from bot ${bot_id}: "${message}"`,
          },
        ],
      };
    }
  • The tool schema definition in the list of tools, specifying the name, description, and input schema requiring bot_id and message.
    {
      name: "send_chat_message",
      description: "Send a chat message from the bot to the meeting",
      inputSchema: {
        type: "object",
        properties: {
          bot_id: {
            type: "string",
            description: "ID of the bot that should send the message",
          },
          message: {
            type: "string",
            description: "Message text to send",
          },
        },
        required: ["bot_id", "message"],
      },
    },
  • src/index.ts:413-414 (registration)
    Registration in the tool dispatcher switch case that routes calls to the sendChatMessage handler.
    case "send_chat_message":
      return await this.sendChatMessage(args);
  • src/index.ts:203-391 (registration)
    Tool registration in the ListToolsRequestHandler where all tools including send_chat_message are listed with their schemas.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools: [
        {
          name: "create_meeting_bot",
          description: "Create a bot to join a meeting and record/transcribe it",
          inputSchema: {
            type: "object",
            properties: {
              meeting_url: {
                type: "string",
                description: "URL of the meeting (Zoom, Google Meet, or Teams)",
              },
              bot_name: {
                type: "string",
                description: "Name for the bot (optional, defaults to 'Go Bot')",
                default: "Go Bot",
              },
            },
            required: ["meeting_url"],
          },
        },
        {
          name: "get_bot_status",
          description: "Get the current status of a meeting bot",
          inputSchema: {
            type: "object",
            properties: {
              bot_id: {
                type: "string",
                description: "ID of the bot to check",
              },
            },
            required: ["bot_id"],
          },
        },
        {
          name: "get_meeting_transcript",
          description: "Get the transcript from a meeting bot",
          inputSchema: {
            type: "object",
            properties: {
              bot_id: {
                type: "string",
                description: "ID of the bot whose transcript to retrieve",
              },
            },
            required: ["bot_id"],
          },
        },
        {
          name: "remove_meeting_bot",
          description: "Remove a bot from a meeting",
          inputSchema: {
            type: "object",
            properties: {
              bot_id: {
                type: "string",
                description: "ID of the bot to remove",
              },
            },
            required: ["bot_id"],
          },
        },
        {
          name: "make_bot_speak",
          description: "Make a bot speak text during a meeting using text-to-speech",
          inputSchema: {
            type: "object",
            properties: {
              bot_id: {
                type: "string",
                description: "ID of the bot that should speak",
              },
              text: {
                type: "string",
                description: "Text for the bot to speak",
              },
              voice_language_code: {
                type: "string",
                description: "Voice language code (optional, defaults to 'en-US')",
                default: "en-US",
              },
              voice_name: {
                type: "string",
                description: "Voice name (optional, defaults to 'en-US-Casual-K')",
                default: "en-US-Casual-K",
              },
            },
            required: ["bot_id", "text"],
          },
        },
        {
          name: "send_chat_message",
          description: "Send a chat message from the bot to the meeting",
          inputSchema: {
            type: "object",
            properties: {
              bot_id: {
                type: "string",
                description: "ID of the bot that should send the message",
              },
              message: {
                type: "string",
                description: "Message text to send",
              },
            },
            required: ["bot_id", "message"],
          },
        },
        {
          name: "get_chat_messages",
          description: "Get chat messages from the meeting",
          inputSchema: {
            type: "object",
            properties: {
              bot_id: {
                type: "string",
                description: "ID of the bot to get chat messages for",
              },
            },
            required: ["bot_id"],
          },
        },
        {
          name: "get_recording",
          description: "Get the recording URL for a bot",
          inputSchema: {
            type: "object",
            properties: {
              bot_id: {
                type: "string",
                description: "ID of the bot to get recording for",
              },
            },
            required: ["bot_id"],
          },
        },
        {
          name: "send_image_to_meeting",
          description: "Send an image to the meeting through the bot (Google Meet only)",
          inputSchema: {
            type: "object",
            properties: {
              bot_id: {
                type: "string",
                description: "ID of the bot that should display the image",
              },
              image_url: {
                type: "string",
                description: "HTTPS URL of the image to display",
              },
            },
            required: ["bot_id", "image_url"],
          },
        },
        {
          name: "send_video_to_meeting",
          description: "Send a video to the meeting through the bot (Google Meet only)",
          inputSchema: {
            type: "object",
            properties: {
              bot_id: {
                type: "string",
                description: "ID of the bot that should play the video",
              },
              video_url: {
                type: "string",
                description: "HTTPS URL of the MP4 video to play",
              },
            },
            required: ["bot_id", "video_url"],
          },
        },
        {
          name: "delete_bot_data",
          description: "Delete all data associated with a bot (recordings, transcripts, etc.)",
          inputSchema: {
            type: "object",
            properties: {
              bot_id: {
                type: "string",
                description: "ID of the bot to delete data for",
              },
            },
            required: ["bot_id"],
          },
        },
      ] satisfies Tool[],
    }));
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions sending a message but does not cover critical aspects like required permissions, potential side effects (e.g., if it triggers notifications), rate limits, or response format. This leaves significant gaps for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It is front-loaded and wastes no space, making it easy to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given that this is a mutation tool with no annotations and no output schema, the description is incomplete. It lacks information on behavioral traits, usage context, and what to expect upon invocation, which is insufficient for effective agent use despite the concise structure.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with clear documentation for both parameters ('bot_id' and 'message'). The description does not add any additional meaning beyond what the schema provides, such as format examples or constraints, so it meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Send a chat message') and the resource ('from the bot to the meeting'), making the purpose understandable. However, it does not explicitly differentiate from sibling tools like 'make_bot_speak' or 'send_image_to_meeting', which might have overlapping contexts, so it lacks full sibling distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives such as 'make_bot_speak' or 'send_image_to_meeting', nor does it mention prerequisites like needing an active meeting or bot. It only states what the tool does without context for selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other 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/rexposadas/attendee-mcp'

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