Skip to main content
Glama

AIsa Agent Mail

Manage Inbox Thread

patch_agentmail_inbox_thread
Destructive

Retrieve, update, or delete a specific email thread within an inbox, including details like messages, labels, senders, and timestamps.

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

Input Schema

NameRequiredDescriptionDefault
bodyNo
inbox_idYesThe ID of the inbox.
thread_idYesID of thread.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / add_labels
      Removed value: -{
      -  "description": "Labels to add to thread. Cannot be system labels.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • addedInput schema / properties / body
      Added value: +{
      +  "properties": {
      +    "add_labels": {
      +      "description": "Labels to add to thread. Cannot be system labels.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "remove_labels": {
      +      "description": "Labels to remove from thread. Cannot be system labels. Takes priority over `add_labels` (in the event of duplicate labels passed in).",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "title": "UpdateThreadRequest",
      +  "type": "object"
      +}
    • removedInput schema / properties / remove_labels
      Removed value: -{
      -  "description": "Labels to remove from thread. Cannot be system labels. Takes priority over `add_labels` (in the event of duplicate labels passed in).",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
  2. Changed2 schema fields changed
    • removedInput schema / properties / Authorization
      Removed value: -{
      -  "description": "Bearer authentication",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "inbox_id",
      -  "thread_id",
      -  "Authorization"
      -]New value: +[
      +  "inbox_id",
      +  "thread_id"
      +]
  3. Changed2 schema fields changed
    • addedInput schema / properties / Authorization
      Added value: +{
      +  "description": "Bearer authentication",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "inbox_id",
      -  "thread_id"
      -]New value: +[
      +  "inbox_id",
      +  "thread_id",
      +  "Authorization"
      +]
  4. Changed2 schema fields changed
    • removedInput schema / properties / Authorization
      Removed value: -{
      -  "description": "Bearer authentication",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "inbox_id",
      -  "thread_id",
      -  "Authorization"
      -]New value: +[
      +  "inbox_id",
      +  "thread_id"
      +]
  5. First observed

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=false, so the safety profile is partly covered. The description adds nothing beyond the verb list: it does not say a delete path removes the thread permanently, does not mention that label changes are non-idempotent in ordering (remove beats add), and does not state any auth requirement. The "retrieve" claim also sits awkwardly against a non-read-only annotation.

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?

A single front-loaded sentence with no padding; the only extra text is an auto-injected pricing block that is not author content. It is tight, though the three-verb enumeration is imprecise rather than economical.

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?

An output schema exists so return values need no explanation, but for a destructive, non-idempotent mutation tool with a nested body object the description leaves the scope of mutation, the identity of sibling alternatives, and any safety preconditions unaddressed. An agent could not confidently choose this over patch_agentmail_thread or get_agentmail_inbox_thread.

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 67%, and the schema already explains add_labels/remove_labels and the remove-over-add precedence. The description's mention of "labels" loosely maps to the body params but adds no format, constraint, or system-label caveat. With the schema doing most of the work, baseline 3 applies.

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

Purpose2/5

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

The description claims the tool will "Retrieve, update, or delete" a thread, but sibling tools get_agentmail_inbox_thread and delete_agentmail_inbox_thread already own the retrieve and delete paths for the same resource. Advertising three CRUD verbs on a PATCH endpoint actively blurs which tool does what, so an agent cannot reliably distinguish it from its siblings on the description alone.

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 when-to-use statement at all, despite the sibling list containing direct competitors (get_agentmail_inbox_thread, patch_agentmail_thread, delete_agentmail_inbox_thread). The phrase "within an inbox" hints at inbox-scoped versus top-level variant, but the agent must infer that; no exclusions or alternatives are named.

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