Skip to main content
Glama

get_message

Read a specific Outlook email by ID, returning compact fields by default or selective projections, with options for cached-only access, HTML and attachment metadata, and marking as read.

Instructions

Read an email by ID. Compact by default; pass fields: [...] for selective field projection (e.g. ['cc', 'bcc', 'categories', 'attachments']) without pulling full HTML, or set compact:false for HTML and attachment metadata. 1 Graph request unless offline (plus 1 when mark_read changes the state); compact:false can be large.

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>"
    },
    "name": "get_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsNoOptional selective field projection (e.g. ['cc', 'bcc', 'categories', 'attachments']) returning only matched fields plus missing_fields if unrecognized.
compactNoDefault true. Set false for HTML and attachment metadata (no attachment bytes)
offlineNoRead the local cache only; no Graph request.
mark_readNo
message_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses cost ('1 Graph request unless offline'), the side effect of mark_read causing an extra request only when state actually changes, that offline bypasses Graph entirely, and that compact:false can return a large payload. It stops short of noting auth requirements or behavior on an unknown/unauthorized message ID.

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 dense paragraph that front-loads the core action before modes and cost. The 'fields: [...]' placeholder and stacked caveats make it slightly harder to scan than it could be, but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read tool with five parameters and no output schema, the definition covers the important decision points: which mode to pick, what each returns, cost implications, and the cache-vs-network tradeoff. Nothing an agent needs to invoke it correctly is missing at this complexity level.

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 60%, and the description adds real meaning beyond the schema for `fields` (projection avoiding full HTML), `compact` (HTML plus attachment metadata, no bytes), and `offline` (no Graph request). The undocumented `mark_read` parameter is only partially covered via the request-count sentence, leaving its exact write semantics implicit.

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 opens with a specific verb+resource: 'Read an email by ID', which immediately distinguishes it from list/search siblings that take filters rather than an identifier. It does not explicitly name those siblings, but the ID-based retrieval framing is unambiguous.

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

Usage Guidelines4/5

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

It clearly states the selection conditions among its own modes: default compact, use `fields` for selective projection instead of full HTML, and set compact:false only when HTML/attachment metadata is needed. It offers no exclusion against sibling tools like search_mail or list_messages, which is the only missing piece.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.