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" },
        },
      },
    },
Behavior2/5

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

With no annotations provided, the description carries full responsibility for behavioral disclosure, but fails to specify delivery guarantees, persistence duration, what triggers agent notification, or failure modes. The 'Honest communication only' statement is vague and does not describe actual tool behavior, side effects, or state changes.

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

Conciseness3/5

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

The description is brief (two sentences) and front-loaded with the functional purpose, which is efficient. However, the second sentence ('Honest communication only.') consumes space without providing actionable guidance for an AI agent, functioning as noise rather than signal.

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 the presence of a related sibling tool (agent_inbox) and five parameters with multiple enums, the description lacks necessary context. It omits the relationship between sending and receiving workflows, provides no guidance on the parameter taxonomy, and offers no details about return values or success confirmation despite having no output schema.

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

Parameters2/5

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

Schema coverage is 60% (moderate), leaving the semantic meaning of the 'type' and 'priority' enums unexplained in the schema. The description offers no compensation for this gap—it does not clarify when to use 'critical' vs 'high' priority or what distinguishes a 'task' from a 'request', leaving significant parameter value guidance uncovered.

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 provides a clear verb ('Send/receive'), resource ('messages'), and scope ('between AI agents for coordination'). It effectively distinguishes from non-communication siblings like 'crypto_portfolio' or 'check_prs'. However, the overlap with sibling 'agent_inbox' is unresolved, and the 'Honest communication only' clause adds no functional clarity.

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?

There is no guidance on when to use this tool versus the similar 'agent_inbox' sibling, nor does it specify when to broadcast ('ALL') versus direct message, or when to use specific message types like 'alert' versus 'task'. No prerequisites or error conditions are mentioned.

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

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