Skip to main content
Glama

AIsa Agent Mail

Manage Email Thread

delete_agentmail_thread
Destructive

Retrieve, update, or delete an email thread by its ID. Supports fetching thread details, modifying labels, and deleting the thread permanently or moving it to trash.

Published reference price: $0.012 USD per successful request. Account-specific pricing and final settlement may differ.

Input Schema

NameRequiredDescriptionDefault
thread_idYesID of thread.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / Authorization
      Removed value: -{
      -  "description": "Bearer authentication",
      -  "type": "string"
      -}
    • removedInput schema / properties / permanent
      Removed value: -{
      -  "description": "If true, permanently delete the thread instead of moving to trash.",
      -  "type": "boolean"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "thread_id",
      -  "Authorization"
      -]New value: +[
      +  "thread_id"
      +]
  2. Changed3 schema fields changed
    • addedInput schema / properties / Authorization
      Added value: +{
      +  "description": "Bearer authentication",
      +  "type": "string"
      +}
    • addedInput schema / properties / permanent
      Added value: +{
      +  "description": "If true, permanently delete the thread instead of moving to trash.",
      +  "type": "boolean"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "thread_id"
      -]New value: +[
      +  "thread_id",
      +  "Authorization"
      +]
  3. Changed3 schema fields changed
    • removedInput schema / properties / Authorization
      Removed value: -{
      -  "description": "Bearer authentication",
      -  "type": "string"
      -}
    • removedInput schema / properties / permanent
      Removed value: -{
      -  "description": "If true, permanently delete the thread instead of moving to trash.",
      -  "type": "boolean"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "thread_id",
      -  "Authorization"
      -]New value: +[
      +  "thread_id"
      +]
  4. First observed

TDQS

C2.5/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is covered. The description's only added value is the 'permanently or moving it to trash' distinction, but no schema parameter supports that choice, so it is misleading rather than informative, and the claim to 'retrieve' and 'update' conflicts with a tool the annotations mark as destructive-only.

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

Conciseness3/5

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

The operational sentence is compact and front-loaded, but a quarter of the text is injected pricing boilerplate that does not help an agent invoke the tool. Space is also spent enumerating three operations that the tool name contradicts.

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 destructive, non-idempotent, single-parameter tool with no output schema, the description should at minimum explain that deletion is irreversible and that no trash-mode parameter exists. Instead it advertises modes that cannot be selected and mixes in read/update semantics, leaving the agent with an inaccurate picture of the tool's actual surface.

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% for the single thread_id parameter, so the schema carries the full burden; baseline 3 applies. The description adds no syntax or format detail for thread_id and instead describes behaviors (trash vs permanent) that have no corresponding parameter.

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

Purpose3/5

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

The description names a resource (email thread) and specific operations, but it conflates three distinct operations — retrieve, update, and delete — into a tool whose name and title (delete_agentmail_thread) promise only deletion. Sibling tools get_agentmail_thread and patch_agentmail_thread already exist for the other two verbs, so this bundling actively muddies tool selection rather than clarifying it.

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?

There is no guidance on when to choose this tool over get_agentmail_thread or patch_agentmail_thread, despite those siblings being present. The description also hints at a 'permanently or moving it to trash' choice, but offers no condition for picking either, leaving the agent to guess.

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