Skip to main content
Glama

mq_send

Send messages between AI coding agents to coordinate tasks and delegate work across sessions and machines.

Instructions

Send a message to a target agent by name

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYes
messageYes
senderYes
msg_typeNotext
priorityNonormal
reply_toNo

Implementation Reference

  • The `send` function in `client.ts` implements the API call to the backend to send a message. This is invoked by the `mq_send` tool handler in `mcp/src/index.ts`.
    export async function send(
      target: string,
      message: string,
      sender: string,
      msgType = "text",
      priority = "normal",
      replyTo?: string,
    ) {
      const body: Record<string, string> = {
        target, message, from: sender, type: msgType, priority,
      };
      if (replyTo) body.reply_to = replyTo;
      return api("POST", "/send", body);
    }
  • mcp/src/index.ts:24-33 (registration)
    The `mq_send` tool is registered here, defining the input schema and the handler that calls `client.send`.
    server.tool("mq_send", "Send a message to a target agent by name", {
      target: z.string(),
      message: z.string(),
      sender: z.string(),
      msg_type: z.string().default("text"),
      priority: z.string().default("normal"),
      reply_to: z.string().optional(),
    }, async ({ target, message, sender, msg_type, priority, reply_to }) => ({
      content: [{ type: "text", text: JSON.stringify(await client.send(target, message, sender, msg_type, priority, reply_to)) }],
    }));

Tool Definition Quality

Score is being calculated. Check back soon.

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/bababoi-bibilabu/agent-mq'

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