Skip to main content
Glama
SharePoint Docs MCP Server

SharePoint Docs MCP Server

by ncdcdev

sharepoint_excel

Search and read Excel sheet content from SharePoint or OneDrive to locate matching cells or retrieve specific ranges, with frozen header rows included for context.

Instructions

ALWAYS start by reading 'A1:Z5' to understand column structure (required for both modes). Two modes: 1) Search mode (query parameter) finds cells containing text and returns locations with optional row data. 2) Read mode (sheet + cell_range) retrieves specific sections. Key parameters: - include_frozen_rows (default: true): Auto-includes frozen header rows even if outside specified range. frozen_rows = header row count - include_cell_styles (default: false): Adds background colors and sizes (20% more tokens) - use for color-coded data only - expand_axis_range (default: false): When frozen_rows=0, auto-expands ranges to include row 1/column A for headers - include_row_data (default: false): Search mode - returns entire matched rows (headers excluded). Best for <200 matches. Recommended workflow: 1. Read 'A1:Z5' for headers (NOT 'A1:Z50') - MANDATORY 2. Search with query to locate data 3. Read specific range if needed (frozen headers auto-included) 4. If frozen_rows=0 and context unclear, retry with expand_axis_range=true. Response: rows (value + coordinate), sheet info (dimensions, frozen_rows/cols, freeze_panes/merged_ranges).

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_path": "<file_path>"
    },
    "name": "sharepoint_excel"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNo
sheetNo
file_pathYes
cell_rangeNo
include_row_dataNo
expand_axis_rangeNo
include_cell_stylesNo
include_frozen_rowsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A4.5/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 full disclosure burden, and it does most of that job: it documents that frozen header rows are auto-included even outside the requested range, that cell styles cost roughly 20% more tokens, that axis expansion is conditional on Frozen_rows=0, and that row data is returned with headers stripped. It omits the permission model, behavior on invalid ranges or sheets, and any rate limits, which keeps it short of a 5.

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?

The mandatory first action is front-loaded and the mode definitions precede the parameter details, which is the right order for an agent. The parameter block is dense and run-on within a single paragraph, and a few defaults are restated from the schema, but almost every sentence carries operational information.

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

Completeness5/5

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

For an eight-parameter tool with no annotations, the definition covers mode selection, defaults, token trade-offs, a complete workflow, and the shape of the response (row values with coordinates plus sheet metadata). The presence of an output schema means it need not elaborate further on return values.

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?

With schema description coverage at 0%, the description must supply meaning, and it defines seven of the eight parameters in behavioral terms (frozen_rows = header row count, token overhead for styles, header-exclusion in row data) rather than restating defaults. Only file_path lacks descriptive treatment, but it is the sole required parameter and its role is evident from the tool scope.

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?

The description states a specific resource (a SharePoint Excel file) and two concrete operations: cell-text search and range retrieval. It clearly separates the two modes and names the parameters that select them. It does not differentiate from the sibling tools (sharepoint_docs_download/sharepoint_docs_search), though the Excel-file scope makes the distinction largely self-evident.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit when-to-use guidance per mode (Query selects search mode; Sheet plus Cell_range selects read mode) and a four-step recommended workflow that starts by mandating an 'A1:Z5' read. It also states the fallback condition (if Frozen_rows=0 and context is unclear, retry with Expand_axis_range=true) and steers search mode toward fewer than 200 matches.

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