Skip to main content
Glama

Read a OneDrive file

m365_files_read
Read-onlyIdempotent

A file's words, up to 5 MB: text, PDF, Word, Excel and PowerPoint files are read in a separate, capped process. Free. Free.

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": {
      "file_id": "<file_id>"
    },
    "name": "m365_files_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYes
mailboxNoOne of the mailboxes the agent may act as; optional when only one is connected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.6/5.0
Behavior3/5

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

Annotations already establish that this is a read-only, idempotent, non-destructive operation. The description adds some useful context beyond that: a 5 MB cap, a 'separate, capped process,' and supported formats. Still, it does not clarify what 'words' means for non-text formats, how errors work, or what permissions are required.

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

Conciseness2/5

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

The description is short but poorly structured: it begins with an awkward noun phrase, then repeats 'Free. Free.' with no clear value. The size cap and format list are useful, but the repetition and ambiguity mean not every sentence earns its place.

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

Completeness3/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 rich annotations and no output schema, the description is minimally adequate. It covers the 5 MB limit and formats, but it omits practical invocation context such as how file_id is obtained and when to prefer search versus read.

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

Parameters2/5

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

Schema description coverage is only 50%, with mailbox documented and file_id undocumented. The description adds no meaning about file_id or mailbox, so it fails to compensate for the partial schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The title names the verb and resource, and the description adds supported file types and a 5 MB limit. However, the body opens with the fragment 'A file's words' rather than stating that this tool reads a file's content, and it does not distinguish the tool from siblings like m365_files_search or google_drive_read.

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?

There is no explicit guidance on when to use this tool rather than m365_files_search, files_read_text, google_drive_read, or documents_read_pdf. The read use case is implied by the title, but the description provides no conditions, exclusions, or alternatives.

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