Skip to main content
Glama

list_messages

Read-onlyIdempotent

List messages in one Outlook folder newest first, then filter by account, unread status, or recent days and paginate results to find specific mail.

Instructions

List messages in one folder, newest first: id, date, sender, subject, read state, flag.

Args:
    folder_id: Folder id from list_folders. Defaults to the inbox.
    account: With several accounts and no folder_id: whose inbox.
    limit: Maximum messages (1-200, default 50).
    unread_only: Only unread messages.
    since_days: Only messages received in the last N days.
    offset: Skip this many newest messages first (for the next page, pass offset + returned).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
accountNo
folder_idNo
since_daysNo
unread_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely non-redundant behavior: results are ordered newest first, and paging is expressed as 'pass offset + returned' rather than mere offset semantics. It doesn't mention total counts or whether an empty folder returns an error versus an empty list, which keeps it below a 5.

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?

The purpose is front-loaded in the first sentence, and each Args line contributes distinct information with no filler. The 'Args:' block is functional but bare, and the returned-field list is packed into the opening line rather than separated, which slightly hurts scannability.

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?

The tool has six parameters, no output schema, and no required fields, so the description must explain both inputs and returns, which it largely does by enumerating the returned fields and paging mechanics. Minor gaps remain around total result counts and behavior on an unknown folder_id.

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

Parameters5/5

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

With 0% schema description coverage, the description carries the full burden and does: all six parameters are explained, including the limit range (1-200, default 50), the offset-plus-returned pagination recipe, the folder/account interaction, and since_days as a relative time window. This is meaning the schema's bare types cannot convey.

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 gives a specific verb and resource ('List messages'), scopes it to 'one folder,' and discloses the exact fields returned (id, date, sender, subject, read state, flag). It stops short of naming the sibling search_messages, so an agent must infer that folder-scoped listing is the differentiator.

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 context is implied rather than stated: folder_id defaults to the inbox, and account only matters when folder_id is absent with multiple accounts. There is no explicit when-to-use-this-instead guidance pointing to search_messages or list_folders for discovery.

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