Skip to main content
Glama

m365_files_read

Read-onlyIdempotent

Read text file content from Microsoft 365 OneDrive by item ID, with an optional byte limit up to 1 MB. Use it to retrieve file contents for processing or display.

Instructions

Read a file's content (text files only, max 50KB by default)

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

Input Schema

NameRequiredDescriptionDefault
itemIdYesFile item ID from list/search
maxBytesNoMax bytes to read (default 50000; maximum 1000000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.2.0
    • changedInput schema / properties / maxBytes / description
      Previous value: -"Max bytes to read (default 50000)"New value: +"Max bytes to read (default 50000; maximum 1000000)"
    • addedInput schema / properties / maxBytes / maximum
      Added value: +1000000
    • addedInput schema / properties / maxBytes / minimum
      Added value: +0
    • changedInput schema / properties / maxBytes / type
      Previous value: -"number"New value: +"integer"
  2. First observedv1.0.7

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered. The description usefully adds the text-only restriction and the 50KB default cap, but says nothing about truncation behavior or what happens when a file exceeds the cap — a meaningful gap for a read tool.

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?

A single short sentence with zero waste; the core action is front-loaded and the constraints are compactly parenthesized.

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?

No output schema exists, so the description should clarify what comes back (raw string content? truncation indicator?) and whether exceeding maxBytes errors or truncates. For a simple two-parameter read that is otherwise well covered, these omissions leave it only adequate.

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 coverage is 100% and both parameters are fully documented in the schema, including itemId's provenance ('from list/search') and maxBytes bounds. The description adds only a restatement of the default cap, so 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?

Specific verb+resource: 'Read a file's content' with the qualifier 'text files only, max 50KB by default'. This distinguishes it implicitly from m365_files_info (metadata) and m365_files_search, though it never names those 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?

'text files only' gives an implicit when-not (binary files), but there is no explicit guidance on when to use this versus m365_files_info, m365_files_list, or m365_files_search, nor any stated prerequisite (e.g. obtaining itemId from list/search).

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