Skip to main content
Glama

listInboxes

Retrieve all inboxes on AgentMail to manage and organize isolated communication channels for AI agents, with options to limit and offset results.

Instructions

List all inboxes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo

Implementation Reference

  • Handler function that implements the listInboxes tool by calling client.inboxes.list(args)
    export async function listInboxes(client: AgentMailClient, args: Args) {
        return client.inboxes.list(args)
    }
  • Handler function that implements the list_inboxes tool by calling client.inboxes.list(**kwargs)
    def list_inboxes(client: AgentMail, kwargs: Kwargs):
        return client.inboxes.list(**kwargs)
  • Registration of the list_inboxes tool in the tools array, linking schema and handler function
    {
        name: 'list_inboxes',
        description: 'List inboxes',
        params_schema: ListItemsParams,
        func: listInboxes,
    },
  • Registration of the list_inboxes tool in the tools list, linking schema and handler function
    Tool(
        name="list_inboxes",
        description="List inboxes",
        params_schema=ListItemsParams,
        func=list_inboxes,
    ),
Behavior2/5

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

No annotations are provided, so the description carries full burden. 'List all inboxes' implies a read-only operation, but it doesn't disclose behavioral traits like pagination behavior (implied by limit/offset parameters), authentication needs, rate limits, or what 'all inboxes' entails (e.g., user-specific vs. global). This leaves significant gaps for safe invocation.

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

Conciseness5/5

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

The description is extremely concise with just three words, front-loaded with the core action. There's no wasted language, though this conciseness comes at the cost of completeness. Every word earns its place by stating the essential purpose.

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 2 parameters with 0% schema coverage, no annotations, and no output schema, the description is incomplete. It doesn't explain parameter usage, return values, or behavioral constraints. For a list operation with pagination parameters, this minimal description leaves too much undefined for reliable tool invocation.

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 description coverage is 0%, so the description must compensate. It mentions no parameters at all, failing to explain what 'limit' and 'offset' do (e.g., for pagination) or their default values. This leaves two undocumented parameters, making it hard for an agent to use them correctly.

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 clearly states the verb ('List') and resource ('all inboxes'), making the purpose immediately understandable. It distinguishes from siblings like 'getInbox' (singular) and 'createInbox', though it doesn't explicitly mention how it differs from other list tools like 'listMessages' or 'listThreads'.

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 is provided on when to use this tool versus alternatives. It doesn't mention prerequisites, context for listing inboxes, or when to choose this over other tools like 'getInbox' for specific inbox details. The agent must infer usage from the name alone.

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

Related 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/agentmail-to/agentmail-toolkit'

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