Skip to main content
Glama
BiteFoundry SharePoint MCP Server

BiteFoundry SharePoint MCP Server

get_file_info

Retrieves detailed metadata for a SharePoint or OneDrive file or folder by item ID or path, with optional field projection for custom library columns.

Instructions

Get detailed metadata for a file or folder by item_id or path

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": "get_file_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
siteNo
driveNo
fieldsNoSelective field projection matching standard DriveItem fields (description, hashes, created_by, web_url, list_item_fields, etc.) and case-insensitive custom SharePoint document library column names.
compactNoDefault true: core item fields, eTag, omitted field names and a hint. Pass false for every field, or pass fields: [...] to select specific fields or custom library columns.
item_idNo
offlineNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It says the tool reads metadata but does not disclose that the default response is truncated (compact=true lives only in the schema), what permissions or site/drive scoping are needed, or whether 'offline' changes behavior. For a 7-parameter read tool with zero annotation coverage, that is a significant gap.

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

Conciseness3/5

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

A single front-loaded sentence with no wasted words, but the brevity reflects under-specification rather than discipline — the tool is complex enough that more text would have earned its place.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 7 parameters, no annotations, no output schema and mostly undescribed schema properties, the one-line description leaves the agent guessing on scoping (site/drive), the offline parameter, and response shape. It is not complete relative to the tool's complexity.

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 29%: site, drive, item_id and offline have no schema descriptions, and the description only reinforces item_id/path as identification routes. It adds nothing about 'offline' or about how site and drive qualify the lookup, so the documentation gap is not compensated.

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?

States a specific verb and resource — 'Get detailed metadata for a file or folder' — and names the two identifier modes (item_id or path). It does not differentiate from siblings such as list_items or search_files, so an agent must infer that this is a single-item metadata lookup rather than a lister.

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?

No guidance on when to use this tool versus alternatives, and no prerequisites. The phrase 'by item_id or path' implicitly hints at the two identification routes but never says which to prefer or whether they are mutually exclusive.

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