Skip to main content
Glama
Dataverse Mcp Server

Dataverse Mcp Server

list_record_documents

Lists files in a Dataverse record's SharePoint document folder, including subfolders, to show what the Documents tab contains. Read-only; returns up to 100 recent files with metadata.

Instructions

List the files in a record's SharePoint document folder, the ones its Documents tab shows, files in subfolders included; only reads. Returns { files: [{ name, path, file_type, size_bytes, modified_on, modified_by, url }], total }: at most 100 files, most recently modified first, where path is relative to the record's folder and url is the file's SharePoint address as Dataverse gives it; when the folder holds more files, a note says so, and total gives their number when Dataverse could count them all (up to 5000). A record without a document folder the caller can see gets a message saying so instead of a list. An unknown entity set, a table with document management off, a record that does not exist or that the caller may not read, and a missing one-time admin setup for reading SharePoint documents through the Dataverse API are errors. With a folder structure based on Account or Contact, the list for an account or contact also holds the files in the folders of its related records, and the caller's access to those records is not checked. It returns no file content: download_record_document, where it is enabled, gets a file by its path. To read the record itself, use get_record.

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": {
      "entity_set": "<entity_set>",
      "id": "<id>"
    },
    "name": "list_record_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRecord GUID
entity_setYesEntity set name of the record's table (plural, e.g. 'accounts', 'leads')

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.11.0

TDQS

A4.4/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 so well, enumerating the error surface (unknown entity set, document management off, missing/unauthorized record, missing admin setup), the 100-file cap with 5000-count limit, and the caveat that related-record access is not checked. A minor gap is that the exact shape of the truncation note or the 'no folder' message is paraphrased rather than quoted.

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?

Purpose is front-loaded in the first clause, and every sentence carries information (limits, errors, return shape, alternatives). However, the dense run-on clauses, especially the long enumerated error sentence, make it harder to scan than a bulleted or more segmented structure would.

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?

The tool has no output schema, so the description appropriately spells out the returned object shape, ordering, path/url semantics, and truncation behavior. Combined with the enumerated error conditions and access caveats, nothing an agent needs to call it correctly is missing.

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 coverage is 100%, so the schema already documents both parameters and the baseline is 3. The description adds meaning about how entity_set can fail ('unknown entity set') and ties id to record-level read authorization, but does not elaborate on formats or the plural entity-set convention beyond the schema's own example.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('List the files in a record's SharePoint document folder') and immediately scopes it ('the ones its Documents tab shows, files in subfolders included'). It also distinguishes itself from siblings by noting it returns no file content and pointing to download_record_document and get_record.

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?

Explicitly names the alternatives and the conditions that select them: download_record_document fetches a file by path, get_record reads the record itself. The read-only constraint ('only reads') and the record-without-a-folder case further clarify when the tool applies.

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