Skip to main content
Glama
OneDrive Read-Only MCP Server

OneDrive Read-Only MCP Server

by joescars

get_item_metadata

Retrieve metadata for a single OneDrive file or folder by path or item ID, including name, size, timestamps, type, web URL, and child count for inspection and organization.

Instructions

Get full metadata for a single OneDrive file or folder.

Args: path_or_id: Either a human path (e.g. '/Documents/foo.pdf') or a raw Graph drive item id.

Returns {name, id, path, size, last_modified, is_folder, web_url, created, mime_type, child_count}. The pre-authenticated Graph downloadUrl is intentionally NOT returned (see SECURITY_REVIEW N-M2) — use download_file() to fetch content.

Input Schema

NameRequiredDescriptionDefault
path_or_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.4/5.0
Behavior4/5

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

No annotations exist, so the description carries the burden: it discloses the exact return shape, declares the operation's read nature implicitly, and surfaces a non-obvious security decision (downloadUrl withheld per SECURITY_REVIEW N-M2). It omits error behavior for invalid paths/ids and any permission requirements.

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?

Front-loaded purpose sentence, then Args and Returns blocks with zero filler; the return-field enumeration earns its place because no output schema exists. Slightly list-heavy, but nothing is redundant.

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 no output schema, the explicit return-field list is essential and present, as is the parameter dual-form explanation. The remaining gap is failure modes — what happens on an unresolvable path or missing item — which an agent would need before calling confidently.

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?

Schema description coverage is 0%, and the description fully compensates by defining the single parameter's two accepted forms with a concrete path example ('/Documents/foo.pdf') and the raw Graph drive item id alternative — information available nowhere else.

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?

States a specific verb and resource ('Get full metadata for a single OneDrive file or folder'), and the word 'single' plus the plural siblings (search_onedrive, list_folder) makes the scope distinction clear without opening any schema.

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?

Explicitly routes content retrieval to download_file() and explains why the downloadUrl is omitted, so the agent knows when to reach for another tool. It does not address when to prefer get_drive_info or how to handle a not-found path, so it stops short of full when/when-not coverage.

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