Skip to main content
Glama
SharePoint Docs MCP Server

SharePoint Docs MCP Server

by ncdcdev

sharepoint_docs_search

Search SharePoint documents by query, filter by file extension, and limit results to locate relevant files.

Instructions

Search for documents in SharePoint. Use response_format='compact' for token-efficient results with only title, path, and extension.

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": {
      "query": "<query>"
    },
    "name": "sharepoint_docs_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
max_resultsNo
file_extensionsNo
response_formatNodetailed

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

B3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses the compact return fields but omits search scope, permission requirements, pagination behavior, rate limits, and default result characteristics, leaving substantial operational gaps.

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?

The description is two sentences with the primary purpose front-loaded and the compact-format tip directly after it. There is no redundant or filler wording.

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?

The presence of an output schema reduces the need to describe return values, but the tool still has four undocumented input parameters and no annotations. For a search tool with filtering and result-format controls, the description is too thin to fully guide correct invocation.

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?

The schema has 0% description coverage across four parameters. The description explains only response_format='compact' and its token-efficient output, while query, max_results, and file_extensions receive no semantic clarification.

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 verb and resource: 'Search for documents in SharePoint.' This clearly distinguishes the tool from download and spreadsheet siblings by action, though it does not explicitly contrast with them.

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?

The description gives a useful usage hint for response_format='compact' when token efficiency matters. However, it does not explain when to choose this search tool over the sibling download or Excel tools, nor does it state any exclusions or preconditions.

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