Skip to main content
Glama

mq_add

Add an agent to the message queue for cross-session communication between AI coding assistants, enabling task delegation and coordination.

Instructions

Add an agent to the message queue

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
descNo
toolNoclaude-code

Implementation Reference

  • mcp/src/index.ts:16-22 (registration)
    The "mq_add" tool is registered here using McpServer. It defines the input schema and calls the client.add handler.
    server.tool("mq_add", "Add an agent to the message queue", {
      name: z.string(),
      desc: z.string().default(""),
      tool: z.string().default("claude-code"),
    }, async ({ name, desc, tool }) => ({
      content: [{ type: "text", text: JSON.stringify(await client.add(name, desc, tool)) }],
    }));
  • The "add" function in client.ts implements the actual logic for "mq_add", sending a POST request to the /agents endpoint.
    export async function add(name: string, desc = "", tool = "claude-code") {
      return api("POST", "/agents", { name, desc, tool });
    }

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