Skip to main content
Glama

Get shared mailbox attachment

get_shared_mailbox_attachment
Read-onlyIdempotent

One attachment from a message in the firm's configured shared mailbox, by message_id and part_id, as base64 (5 MB max). PDF and images unless allow_any_type. Read-only. Sign-in required.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "message_id": "<message_id>",
      "part_id": "<part_id>"
    },
    "name": "get_shared_mailbox_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
part_idYespart_id from that message's attachments in get_shared_mailbox_thread.
message_idYesGmail message id from search_shared_mailbox or get_shared_mailbox_thread.
allow_any_typeNoFetch types other than PDF and images (docx, xlsx...). Defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, and the description adds real context beyond them: base64 encoding, a 5 MB size ceiling, default type restriction to PDF/images, and a sign-in requirement.

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?

Front-loaded with the resource and scope, then constraints and auth in short clauses; every clause carries information, though the telegraphic fragment style and compressed parentheticals make it slightly denser than ideal.

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?

With no output schema, the description correctly covers the return form (base64) and its size limit, plus the type filter and auth requirement; only failure behavior for oversized or missing parts is left unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning by explaining the type gate ('PDF and images unless allow_any_type') and framing the two required ids by their role, rather than merely restating field names.

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?

States a concrete verb+resource (get one attachment) with explicit scope (firm's configured shared mailbox) and keying (message_id and part_id), which distinguishes it from get_gmail_attachment and get_outlook_attachment named among siblings.

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

Usage Guidelines3/5

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

The 'firm's configured shared mailbox' scoping implies when this tool applies versus the gmail/outlook attachment siblings, but there is no explicit when-to-use or when-not-to-use statement and no pointer to the search/thread tools for obtaining ids (those pointers live only in the schema).

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