Skip to main content
Glama
BiteFoundry SharePoint MCP Server

BiteFoundry SharePoint MCP Server

search_files

Search SharePoint and OneDrive files across Microsoft Graph and a local SQLite FTS5 cache, or query only the cache to avoid Graph requests.

Instructions

Search files in local SQLite FTS5 cache and/or Microsoft Graph. With remote (the default) this costs one Graph search request, at most 100 hits across sites; remote: false searches only the local cache, with no request.

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

Input Schema

NameRequiredDescriptionDefault
siteNo
driveNo
limitNo
queryYes
remoteNoDefault true: query Microsoft Graph and fill remaining slots from the local cache. false searches the local cache only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the notable behaviors: default is remote, a remote call costs exactly one Graph search request, results are capped at ~100 hits, and remaining slots are filled from the local cache. It omits result shape, whether the cache is stale, and any auth/permission requirements for Graph search.

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?

Two sentences, zero padding, with the cost/scope tradeoff front-loaded right after the purpose. Every clause contributes information an agent needs (default value, request cost, hit ceiling, cache fallback).

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?

For a five-parameter search tool with no annotations and no output schema, the description should explain how site/drive scoping and limit work and roughly what a hit contains. It handles the remote/local cost model well but leaves most parameters and the result format undefined.

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 description coverage is only 20%, so site, drive, limit, and query are undocumented in both schema and description; the description only expands on the remote flag (and adds the cache-fill behavior). The meaning of 'limit' and how site/drive scope the search is left entirely to inference, though a 3 baseline applies since the schema still defines types and required query.

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 — 'Search files' — plus the two sources it queries (SQLite FTS5 cache, Microsoft Graph). The 'search' framing implicitly separates it from list_files/list_recent, but the description never names a sibling or states what distinguishes a search hit from a listing.

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?

Gives real decision context: remote is the default and costs one Graph request with at most 100 hits, while remote: false is cache-only with no request. That is enough for an agent to pick a mode based on cost/freshness. It does not state when this tool is the wrong choice versus list_files or get_file_info.

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