Skip to main content
Glama

Dataset Files

dataset_files
Read-onlyIdempotent

List all files in the latest version of a Harvard Dataverse dataset identified by its DOI persistent ID (e.g. "doi:10.7910/DVN/..."), returning file names, content types, sizes, and download URLs. For files Dataverse has TABULAR-INGESTED (CSV/DTA/SAV/POR under its ingest size limit), also returns exact COLUMN / VARIABLE NAMES and labels from Dataverse's DDI metadata (variables_by_file). If a dataset has no tabular-ingested files (common for very large files, or non-tabular formats), column names are not available from Dataverse at all, the response says so explicitly rather than silently omitting them.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "persistent_id": "doi:10.7910/DVN/DUWBBU"
    },
    "name": "dataset_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
persistent_idYes

Output Schema

NameRequiredDescriptionDefault
dataNoDataset files data
statusNoAPI response status

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / data / items
      Added value: +{
      +  "properties": {
      +    "dataFile": {
      +      "properties": {
      +        "checksum": {
      +          "properties": {
      +            "type": {
      +              "type": "string"
      +            },
      +            "value": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "contentType": {
      +          "type": "string"
      +        },
      +        "creationDate": {
      +          "type": "string"
      +        },
      +        "fileAccessRequest": {
      +          "type": "boolean"
      +        },
      +        "filename": {
      +          "type": "string"
      +        },
      +        "filesize": {
      +          "type": "number"
      +        },
      +        "friendlyType": {
      +          "type": "string"
      +        },
      +        "id": {
      +          "type": "number"
      +        },
      +        "lastUpdateTime": {
      +          "type": "string"
      +        },
      +        "md5": {
      +          "type": "string"
      +        },
      +        "persistentId": {
      +          "type": "string"
      +        },
      +        "publicationDate": {
      +          "type": "string"
      +        },
      +        "rootDataFileId": {
      +          "type": "number"
      +        },
      +        "storageIdentifier": {
      +          "type": "string"
      +        },
      +        "tabularData": {
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "datasetVersionId": {
      +      "type": "number"
      +    },
      +    "label": {
      +      "type": "string"
      +    },
      +    "restricted": {
      +      "type": "boolean"
      +    },
      +    "version": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • removedOutput schema / properties / data / properties
      Removed value: -{
      -  "files": {
      -    "description": "Array of files in dataset",
      -    "items": {
      -      "description": "File metadata",
      -      "properties": {
      -        "datafile": {
      -          "description": "Datafile details",
      -          "type": "object"
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "type": "array"
      -  }
      -}
    • changedOutput schema / properties / data / type
      Previous value: -"object"New value: +"array"
  2. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "persistent_id": "doi:10.7910/DVN/EXAMPLE"
      -  }
      -]New value: +[
      +  {
      +    "persistent_id": "doi:10.7910/DVN/DUWBBU"
      +  }
      +]
  3. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "persistent_id": "doi:10.7910/DVN/EXAMPLE"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Files in a dataset",
      +  "properties": {
      +    "data": {
      +      "description": "Dataset files data",
      +      "properties": {
      +        "files": {
      +          "description": "Array of files in dataset",
      +          "items": {
      +            "description": "File metadata",
      +            "properties": {
      +              "datafile": {
      +                "description": "Datafile details",
      +                "type": "object"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "status": {
      +      "description": "API response status",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, so the safety profile is covered. The description goes further by disclosing the conditional behavior that matters: variables_by_file is populated only for TABULAR-INGESTED formats under Dataverse's ingest limit, and the response explicitly signals when column names are unavailable rather than omitting them.

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?

Front-loaded with the core action and return fields, then the tabular-metadata caveat. Slightly heavy with uppercase emphasis (TABULAR-INGESTED, COLUMN / VARIABLE NAMES) and the final sentence restates the same edge case, but nothing is expendable.

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

Completeness4/5

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

Complete for a single-parameter read tool with an output schema: it explains the identifier, the returned file fields, and the tabular-metadata edge case. It does not mention whether large file listings are truncated or paginated, which is a real gap for datasets with thousands of files.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With one parameter at 0% schema description coverage, the description carries the burden and does: it names the accepted identifier form ('DOI persistent ID, e.g. doi:10.7910/DVN/...') and notes the tool resolves the latest version, which the bare {persistent_id: string} schema does not convey.

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 ('List all files in the latest version of a Harvard Dataverse dataset') plus the identifier it resolves ('DOI persistent ID'). An agent can distinguish it from a search or dataset-metadata sibling by the 'files in the latest version' scope, though no sibling is named explicitly.

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?

Use is only implied: call this when you already hold a dataset DOI and need its file listing. There is no explicit when-to-use vs. when-not, and no mention of the sibling tools (e.g. dataverse_harvard_dataset, dataverse_harvard_search) that an agent might otherwise pick.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.