Skip to main content
Glama

Read a OneDrive file

read_onedrive_file
Read-onlyIdempotent

Reads one file from the signed-in person's OneDrive by item_id: text of Word, PDF and plain-text files (trimmed), plus a short-lived download link for anything. 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": {
      "item_id": "<item_id>"
    },
    "name": "read_onedrive_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
item_idYesitem_id from search_onedrive.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real behavior beyond that: content extraction is limited to Word/PDF/plain text and returned trimmed, everything else yields a short-lived download link, and sign-in is required. Minor gaps remain on truncation limits and unsupported types.

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 compact entry with the verb and selector front-loaded, no filler, and the return behavior appended. The phrase 'a short-lived download link for anything' is slightly loose but does not waste much space.

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?

With only one required parameter, full schema coverage, and no output schema, the description carries the return-value burden and does so by describing text extraction and the download link. It could be more complete by noting truncation behavior or what happens for unsupported file types.

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 the schema already explains that item_id comes from search_onedrive, so the description adds essentially nothing new about the parameter. Baseline 3 applies where structured data does the work.

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

Purpose5/5

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

Names a specific verb (reads), a specific resource (one file in the signed-in person's OneDrive), and the exact selector (item_id). It also states what comes back — extracted text for Word/PDF/plain text plus a download link — which makes it clearly distinct from sibling search tools.

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?

The definition implies the intended flow by tying item_id to search_onedrive and scoping the resource to the signed-in person's OneDrive, which separates it from the Drive and Dropbox readers. It stops short of explicitly stating when not to use it (e.g. non-OneDrive sources or files needing full untrimmed content).

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