Skip to main content
Glama

Get an Outlook attachment

get_outlook_attachment
Read-onlyIdempotent

One attachment from a message in the signed-in person's Outlook mailbox (message_id + attachment_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>",
      "attachment_id": "<attachment_id>"
    },
    "name": "get_outlook_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
message_idYesmessage_id from get_outlook_thread.
attachment_idYesattachment_id from get_outlook_thread.
allow_any_typeNoAlso return non-PDF, non-image files. Defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavioral facts beyond them: a 5 MB size ceiling, base64 return encoding, a default file-type restriction, and a sign-in requirement. It does not say what happens when an attachment exceeds 5 MB, which is the main remaining gap.

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

Conciseness5/5

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

It is a single dense sentence-fragment block with zero filler: resource and keys first, then return format and limits, then type constraint, then safety and auth. Each clause carries information not duplicated elsewhere.

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?

For a simple read tool with full annotation coverage and no output schema, the description supplies the return encoding and constraints an agent needs. The only omission is failure behavior at the 5 MB boundary, which is minor for this complexity level.

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%, including the meaning of allow_any_type and where the two IDs come from, so the schema carries the parameter burden. The description reinforces that both IDs are paired and adds the size cap, but contributes little parameter meaning the schema does not already provide. Baseline 3 is appropriate.

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 names a specific resource and scope: one attachment from a message in the signed-in person's Outlook mailbox, keyed by message_id + attachment_id, returned as base64. That is enough to distinguish it from the Gmail attachment sibling and from thread-level tools. It stops short of explicitly naming the sibling it is not, which keeps it off a 5.

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?

Usage is implied rather than stated: an agent can infer this is the follow-up call to get_outlook_thread when it needs actual file content, and 'PDF and images unless allow_any_type' hints at the fallback condition. There is no explicit when-to-use/when-not-to-use statement or named alternative.

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