# get_document_by_path

A read tool on the Sharepoint MCP server.

Agent View of the PolicyLayer registry record for `get_document_by_path`. HTML page: https://policylayer.com/tools/demodorigatsuo-sharepoint-mcp/get-document-by-path

## Facts

- Tool: `get_document_by_path`
- Server: Sharepoint (`demodorigatsuo/sharepoint-mcp`) — https://policylayer.com/tools/demodorigatsuo-sharepoint-mcp.md
- Homepage: https://github.com/DEmodoriGatsuO/sharepoint-mcp
- Risk category: Read (Low risk)
- Registry record: grade D, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Allowed

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_document_by_path",
    "arguments": {}
  }
}
```

## Why get_document_by_path is rated Low

This tool retrieves a document from SharePoint by its path, a read-only operation with no side effects. It is classified as Read rather than a higher category. Severity is medium rather than low because an AI agent could use path traversal or enumerate documents across the organization to access sensitive information, and SharePoint often contains confidential business data, intellectual property, or personal…

From the tool's own definition: "Tool name 'get_document_by_path' indicates retrieval of document content by file path; sibling tools include 'download_file' and 'get_document_content' which are clearly read operations, and 'get_item_metadata' and 'get_list_items' which query data."

## Use case

AI agents call get_document_by_path to retrieve information from Sharepoint without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

Verdict: **Allowed**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Sharepoint:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "get_document_by_path": {}
  }
}
```

## Other tools on Sharepoint (17)

- `download_file` — Read — https://policylayer.com/tools/demodorigatsuo-sharepoint-mcp/download-file.md
- `get_document_content` — Read — https://policylayer.com/tools/demodorigatsuo-sharepoint-mcp/get-document-content.md
- `get_item_metadata` — Read — https://policylayer.com/tools/demodorigatsuo-sharepoint-mcp/get-item-metadata.md
- `get_list_items` — Read — https://policylayer.com/tools/demodorigatsuo-sharepoint-mcp/get-list-items.md
- `get_lists` — Read — https://policylayer.com/tools/demodorigatsuo-sharepoint-mcp/get-lists.md
- `get_site_info` — Read — https://policylayer.com/tools/demodorigatsuo-sharepoint-mcp/get-site-info.md
- `list_document_libraries` — Read — https://policylayer.com/tools/demodorigatsuo-sharepoint-mcp/list-document-libraries.md
- `list_folder_contents` — Read — https://policylayer.com/tools/demodorigatsuo-sharepoint-mcp/list-folder-contents.md
- `search_sharepoint` — Read — https://policylayer.com/tools/demodorigatsuo-sharepoint-mcp/search-sharepoint.md
- `create_advanced_document_library` — Write — https://policylayer.com/tools/demodorigatsuo-sharepoint-mcp/create-advanced-document-library.md
- `create_intelligent_list` — Write — https://policylayer.com/tools/demodorigatsuo-sharepoint-mcp/create-intelligent-list.md
- `create_list_item` — Write — https://policylayer.com/tools/demodorigatsuo-sharepoint-mcp/create-list-item.md
- `create_modern_page` — Write — https://policylayer.com/tools/demodorigatsuo-sharepoint-mcp/create-modern-page.md
- `create_news_post` — Write — https://policylayer.com/tools/demodorigatsuo-sharepoint-mcp/create-news-post.md
- `create_sharepoint_site` — Write — https://policylayer.com/tools/demodorigatsuo-sharepoint-mcp/create-sharepoint-site.md
- `update_list_item` — Write — https://policylayer.com/tools/demodorigatsuo-sharepoint-mcp/update-list-item.md
- `upload_document` — Write — https://policylayer.com/tools/demodorigatsuo-sharepoint-mcp/upload-document.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=demodorigatsuo-sharepoint-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/demodorigatsuo-sharepoint-mcp
