Skip to main content
Glama

agent_inbox

Check pending messages for agents to monitor revenue opportunities, bounties, grants, and freelance gigs with deadline tracking.

Instructions

Read pending messages for an agent

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentYesAgent name to check inbox for

Implementation Reference

  • The handler for the 'agent_inbox' tool, which filters pending messages for a specific agent (or 'ALL'), returns them, and removes them from the database.
    case "agent_inbox": {
      const db = loadDB();
      const agent = (args as any).agent;
      const messages = db.messages.filter(
        (m) => m.to === agent || m.to === "ALL"
      );
      if (messages.length === 0) {
        return { content: [{ type: "text", text: `No messages for ${agent}` }] };
      }
      // Remove read messages
      db.messages = db.messages.filter(
        (m) => m.to !== agent && m.to !== "ALL"
      );
      saveDB(db);
      return {
        content: [{
          type: "text",
          text: `INBOX for ${agent} (${messages.length} messages):\n\n${messages.map((m) => `[${m.priority.toUpperCase()}] ${m.from} → ${m.type}: ${m.content}\n  ${m.timestamp}`).join("\n\n")}`,
        }],
      };
    }
  • src/index.ts:348-357 (registration)
    Registration of the 'agent_inbox' tool in the tool list provided by the MCP server.
      name: "agent_inbox",
      description: "Read pending messages for an agent",
      inputSchema: {
        type: "object" as const,
        required: ["agent"],
        properties: {
          agent: { type: "string", description: "Agent name to check inbox for" },
        },
      },
    },
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure but fails to clarify critical aspects: whether reading consumes/removes messages from the inbox (pop vs peek), authentication requirements, or rate limits. 'Read' implies read-only but lacks necessary operational context.

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

Conciseness4/5

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

The description is extremely efficient at 6 words with no filler content and is front-loaded with the action. However, given the complete absence of annotations, it may be inappropriately brief rather than appropriately concise, warranting a 4 instead of 5.

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?

For a tool with no annotations, no output schema, and undefined message lifecycle behavior (consumed vs retained), the single-sentence description is inadequate. It fails to explain what 'pending' means or what the return format looks like.

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?

Schema coverage is 100% with the 'agent' parameter fully documented as 'Agent name to check inbox for'. The description adds no additional parameter semantics, but baseline 3 is appropriate when the schema already provides complete documentation.

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 specific verb ('Read') and resource ('pending messages'), clearly indicating this is an inbox retrieval tool. While it effectively distinguishes itself from revenue/crypto siblings implicitly, it lacks explicit differentiation from 'agent_message' (which likely sends messages), preventing a score of 5.

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?

No guidance provided on when to use this tool versus alternatives like 'agent_message', or prerequisites such as agent existence verification. The description states what the tool does but not when an agent should select it over sibling tools.

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