Skip to main content
Glama

AIsa Agent Mail

Get Attachment

get_agentmail_thread_attachment
Read-onlyIdempotent

Get Attachment

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

Input Schema

NameRequiredDescriptionDefault
thread_idYesID of thread.
attachment_idYesID of attachment.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / Authorization
      Removed value: -{
      -  "description": "Bearer authentication",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "thread_id",
      -  "attachment_id",
      -  "Authorization"
      -]New value: +[
      +  "attachment_id",
      +  "thread_id"
      +]
  2. Changed2 schema fields changed
    • addedInput schema / properties / Authorization
      Added value: +{
      +  "description": "Bearer authentication",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "attachment_id",
      -  "thread_id"
      -]New value: +[
      +  "thread_id",
      +  "attachment_id",
      +  "Authorization"
      +]
  3. Changed2 schema fields changed
    • removedInput schema / properties / Authorization
      Removed value: -{
      -  "description": "Bearer authentication",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "thread_id",
      -  "attachment_id",
      -  "Authorization"
      -]New value: +[
      +  "attachment_id",
      +  "thread_id"
      +]
  4. First observed

TDQS

C2.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered structurally. The description adds no behavioral context beyond that — nothing about what is returned (file bytes vs. metadata), auth/inbox scoping requirements, or rate limits — only a boilerplate price note.

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?

It is short and front-loads the tool name, but the remaining content is an HTML-comment pricing block that conveys no functional information. Brevity here reflects under-specification rather than well-earned conciseness.

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 not be described, but in a toolset crowded with near-identical attachment getters, the description provides no differentiation or scoping context. An agent cannot confidently choose this over get_agentmail_inbox_thread_attachment or get_agentmail_inbox_message_attachment.

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 both required parameters (thread_id and attachment_id), so the schema already documents the inputs. The description adds nothing on parameter meaning, but per the baseline for high coverage, 3 is appropriate.

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 is essentially the title repeated ("Get Attachment"), a tautology over the tool name get_agentmail_thread_attachment. It does not say what kind of attachment is retrieved, from where, or how it differs from the many sibling attachment getters such as get_agentmail_inbox_message_attachment and get_agentmail_draft_attachment.

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 when-to-use guidance, no prerequisites, and no routing among the numerous sibling attachment/message/draft retrieval tools. The only additional sentence is a pricing disclaimer, which does not help an agent decide whether to call this tool.

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