Skip to main content
Glama

delete_inbox

Remove a disposable email inbox and permanently delete all its emails to free up resources and stop receiving messages.

Instructions

Delete an inbox and all its emails.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inbox_idYesThe inbox ID to delete

Implementation Reference

  • The 'delete_inbox' tool handler - registers the tool with the MCP server, accepts inbox_id parameter, makes a DELETE request to the Blip API, and returns a confirmation message.
    server.tool(
      "delete_inbox",
      "Delete an inbox and all its emails.",
      {
        inbox_id: z.string().describe("The inbox ID to delete"),
      },
      async ({ inbox_id }) => {
        await blipFetch(`/v1/inboxes/${inbox_id}`, { method: "DELETE" });
        return {
          content: [{ type: "text", text: `Inbox ${inbox_id} deleted.` }],
        };
      }
    );
  • Input schema for the delete_inbox tool - requires a single string parameter 'inbox_id' with a description.
    {
      inbox_id: z.string().describe("The inbox ID to delete"),
    },
  • Registration of 'delete_inbox' as an MCP tool on the server via server.tool() call.
    server.tool(
      "delete_inbox",
      "Delete an inbox and all its emails.",
      {
        inbox_id: z.string().describe("The inbox ID to delete"),
      },
      async ({ inbox_id }) => {
        await blipFetch(`/v1/inboxes/${inbox_id}`, { method: "DELETE" });
        return {
          content: [{ type: "text", text: `Inbox ${inbox_id} deleted.` }],
        };
      }
    );
  • The blipFetch helper function used by the delete_inbox handler to make the HTTP DELETE request to the Blip API.
    async function blipFetch(
      path: string,
      options: RequestInit = {}
    ): Promise<unknown> {
      const url = `${API_URL}${path}`;
      const res = await fetch(url, {
        ...options,
        headers: {
          Authorization: `Bearer ${API_KEY}`,
          "Content-Type": "application/json",
          ...options.headers,
        },
      });
    
      if (!res.ok) {
        const body = await res.text();
        throw new Error(`Blip API error ${res.status} on ${options.method || "GET"} ${path}: ${body}`);
      }
    
      if (res.status === 204) return null;
      return res.json();
    }
Behavior4/5

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

The description discloses that deletion cascades to all emails, which is a critical behavioral trait. However, it omits other behavioral aspects like idempotency, error handling, or permission requirements. With no annotations, the description carries the full disclosure burden.

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 a single, focused sentence that immediately conveys the purpose. It is front-loaded and contains no redundant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple deletion tool with one parameter and no output schema, the description is mostly complete, specifying both the primary action and the cascading effect. It lacks details on return values or error states, but the core functionality is adequately covered.

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 description coverage is 100%, with the 'inbox_id' parameter already well-documented. The description adds no extra semantic value beyond the schema's 'The inbox ID to delete', so a baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (delete) and the resource (inbox), and explicitly mentions the cascading effect on emails, distinguishing it from sibling tools like create_inbox or list_inboxes.

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 or not use this tool, nor any mention of prerequisites or alternatives. The description only states the action without contextual usage advice.

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/blipemail/blip'

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