Skip to main content
Glama
BiteFoundry SharePoint MCP Server

BiteFoundry SharePoint MCP Server

read_text_file

Read UTF-8 or BOM-marked UTF-16 text from SharePoint or OneDrive with a configurable byte cap (default 256 KiB). Use for text files; download binary files separately.

Instructions

Read UTF-8 or BOM-marked UTF-16 text up to the original byte cap. Downloads at most max_bytes (default 256 KiB). Use download_file for binary files.

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

Input Schema

NameRequiredDescriptionDefault
pathNo
siteNo
driveNo
item_idNo
max_bytesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose meaningful behavior: encoding handling, a size cap, and the default of 256 KiB, which tells the agent reads can be partial. It does not say what happens at the cap (truncation with a marker, silent cut-off, or error), nor what errors occur for a missing or non-text file.

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?

Three short sentences, front-loaded with the read capability and then the size constraint, with no filler. The opening clause ("up to the original byte cap") is slightly opaque before max_bytes is introduced, but the length is appropriate.

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

Completeness1/5

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

With no annotations, no output schema, and 0% schema coverage across five parameters, the description leaves the agent unable to determine how to address a file (path vs. site/drive/item_id) or what a partial read returns. Too much of the calling contract is missing for a tool of this 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 0% for 5 parameters, so the description must compensate and largely does not. Only max_bytes is explained (default, unit); path, site, drive, and item_id are left entirely undefined, including which combination is required to locate a file.

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 ("Read ... text") plus a real constraint on what it can read: UTF-8 or BOM-marked UTF-16 only. It also implicitly separates itself from download_file by framing itself as the text-reading path, though it never says what identifies the file (path vs. item_id).

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 an explicit alternative and the condition that selects it: "Use download_file for binary files." It offers no guidance on other adjacent cases, such as when to use get_file_info first or what to do for very large text files, but the main routing decision is covered.

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