Skip to main content
Glama

AIsa Agent Mail

Delete Thread

delete_agentmail_inbox_thread
Destructive

Permanently deletes a thread and every message in it. Returns no body. This cannot be undone and it removes more than one message — Every AIsa caller shares one AgentMail account, so this reaches inboxes other callers created, so read the thread with get_agentmail_inbox_thread first. To hide it instead, relabel with patch_agentmail_inbox_thread.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inbox_idYesThe ID of the inbox.
permanentNoIf true, permanently delete the thread instead of moving to trash.
thread_idYesID of thread.
AuthorizationYesBearer authentication

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

The description adds useful behavior beyond the annotations: no response body, multi-message destruction, irreversibility, and shared-account scope. However, it claims the delete is always permanent, conflicting with the schema's `permanent` parameter whose description says false moves to trash, so the behavioral disclosure is materially inconsistent.

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 front-loads the outcome and every clause earns its place, including no-body response, cross-caller reach, and the safer alternative. It is dense but not bloated, so it remains appropriately concise.

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

Completeness3/5

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

It covers cross-caller consequences, the read-first prerequisite, the no-response-body fact, and the hide alternative. Missing is reconciliation with the optional `permanent` parameter, so an agent cannot tell from this description when the action truly destroys versus moves to trash.

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%, so the parameters are already documented and the description adds no parameter-level detail. The blanket use of 'permanently' obscures the `permanent` flag semantics rather than enhancing them, keeping this at the baseline.

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 identifies the action and resource: permanently deleting a thread and every message in it, and it points to a non-destructive alternative. It loses the fifth point because it states permanence is stated unconditionally, while the schema's optional `permanent` parameter implies the default may move to trash instead.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly tells the agent to read the thread with `get_agentmail_inbox_thread` first and warns that deletion affects other callers' inboxes because they share one AccountMail account. It also gives a clear when-not path: to hide instead, relabel with `patch_agentmail_inbox_thread`.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources