Skip to main content
Glama

agent_message

Coordinate AI agents by sending and receiving messages for task updates, status reports, alerts, and requests to manage revenue opportunities.

Instructions

Send/receive messages between AI agents for coordination. Honest communication only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromYesSending agent name (e.g. SALOMAO, EZEQUIEL)
toYesReceiving agent name (or 'ALL' for broadcast)
typeYes
contentYesMessage content
priorityNomedium

Implementation Reference

  • Implementation of the 'agent_message' tool handler which saves a message object into the DB.
    case "agent_message": {
      const db = loadDB();
      const msg: AgentMessage = {
        from: (args as any).from,
        to: (args as any).to,
        type: (args as any).type,
        content: (args as any).content,
        timestamp: new Date().toISOString(),
        priority: (args as any).priority || "medium",
      };
      db.messages.push(msg);
      saveDB(db);
      return {
        content: [{ type: "text", text: `Message sent: ${msg.from} → ${msg.to} [${msg.type}/${msg.priority}]\n${msg.content}` }],
      };
    }
  • src/index.ts:332-346 (registration)
    Registration and schema definition of the 'agent_message' tool.
    {
      name: "agent_message",
      description: "Send/receive messages between AI agents for coordination. Honest communication only.",
      inputSchema: {
        type: "object" as const,
        required: ["from", "to", "type", "content"],
        properties: {
          from: { type: "string", description: "Sending agent name (e.g. SALOMAO, EZEQUIEL)" },
          to: { type: "string", description: "Receiving agent name (or 'ALL' for broadcast)" },
          type: { type: "string", enum: ["task", "status", "alert", "request"] },
          content: { type: "string", description: "Message content" },
          priority: { type: "string", enum: ["low", "medium", "high", "critical"], default: "medium" },
        },
      },
    },

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/ElromEvedElElyon/revenue-mcp'

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