Skip to main content
Glama

cern-opendata-mcp-server

List CERN Open Data Record Files

cern_opendata_list_files
Read-onlyIdempotent

List one record's files: its file indexes (groups of related files) with their XRootD URI-list URLs, and per file the XRootD URI, HTTPS download URL, size, adler32 checksum and availability. Without index, page through the record's indexes first, then its regular files. With index, page through its member files and include the selected index as metadata. Files marked on demand sit on tape and must be requested on the record's portal page before download.

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": {
      "recid": "<recid>"
    },
    "name": "cern_opendata_list_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
indexNoA file index key from the indexes list, matched exactly (a .txt ending is read as .json). Omit to list the record's indexes and regular files.
limitNoEntries per page. Values above 2000 are served at that limit.
recidYesRecord id: up to 12 digits (6004), optionally after a lowercase experiment prefix (atlas-160006). cern_opendata_search_records and cern_opendata_get_records return it.
cursorNonext_cursor from the previous page, unchanged, with the same recid and index. Omit for the first page.

Output Schema

NameRequiredDescriptionDefault
capNoThe page size (limit) applied to this call.
errorNoPresent when the call failed. Absent on success.
filesNoThis page: regular files in record scope, index files in index scope.
recidNoThe record id.
scopeNorecord: the record's indexes and regular files; index: one index's files.
shownNoNumber of items returned on this page.
titleNoRecord title.
noticeNoContinuation, empty-result guidance or result caveats; absent when none.
indexesNoFile indexes on this page in record scope; the selected index in index scope.
childrenNoChild recids of a fileless umbrella record; empty otherwise.
has_moreNoTrue when more entries remain past this page.
truncatedNoTrue when more results remain past this page; notice says how to reach them.
portal_urlNoThe record page, where on-demand (tape) files are requested.
totalCountNoEntries in scope: indexes and regular files in record scope, member files in index scope.
next_cursorNoPass as cursor, with the same recid and index, for the next page.
availabilityNoRecord-level availability: online, partial, ondemand or requested.
availability_detailsNoFile counts by availability state for the whole record.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Files per page, 1-500. A value above 500 is served at 500."New value: +"Entries per page. Values above 2000 are served at that limit."
    • removedInput schema / properties / limit / maximum
      Removed value: -10000
    • changedOutput schema / properties / has_more / description
      Previous value: -"True when more files remain past this page."New value: +"True when more entries remain past this page."
    • changedOutput schema / properties / indexes / description
      Previous value: -"Every file index in record scope; only the selected one in index scope."New value: +"File indexes on this page in record scope; the selected index in index scope."
    • changedOutput schema / properties / totalCount / description
      Previous value: -"Files in scope: regular files in record scope, index files in index scope."New value: +"Entries in scope: indexes and regular files in record scope, member files in index scope."
  2. Changed8 schema fields changed
    • changedOutput schema / properties / children / description
      Previous value: -"Set only for an umbrella record holding no files itself: the child recids whose files make it up. Empty otherwise."New value: +"Child recids of a fileless umbrella record; empty otherwise."
    • changedOutput schema / properties / files / description
      Previous value: -"This page of files: regular files in record scope, the index's files in index scope."New value: +"This page: regular files in record scope, index files in index scope."
    • changedOutput schema / properties / files / items / properties / key / description
      Previous value: -"File key as the portal states it; index members read <index>.json_<n>. Absent when the portal lists the file without one; filename then names it."New value: +"Portal file key; index members use <index>.json_<n>. Absent for keyless files, named by filename instead."
    • changedOutput schema / properties / indexes / items / properties / availability / description
      Previous value: -"File counts by availability state, as the portal states them; empty ({}) when it states none."New value: +"Portal availability counts; {} when unstated."
    • changedOutput schema / properties / indexes / items / properties / key / description
      Previous value: -"Index key (…_file_index.json, or a name such as training_files.json); pass it as index to page its files."New value: +"Index key (…_file_index.json, training_files.json, etc.); pass as index to page its files."
    • changedOutput schema / properties / indexes / items / properties / number_files / description
      Previous value: -"Files in the index, as the portal states it, else the count of the files the index lists."New value: +"Portal file count, else count of listed index files."
    • changedOutput schema / properties / indexes / items / properties / size_in_bytes / description
      Previous value: -"Total size of the index files in bytes, as the portal states it, else the sum of the listed files' sizes."New value: +"Index size in bytes: portal total, else sum of listed file sizes."
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance for the next call: how to page on, why nothing matched and what to change, or a caveat about the results."New value: +"Continuation, empty-result guidance or result caveats; absent when none."
  3. Changed3 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Files per page, 1-500."New value: +"Files per page, 1-500. A value above 500 is served at 500."
    • changedInput schema / properties / limit / maximum
      Previous value: -500New value: +10000
    • changedInput schema / properties / recid / description
      Previous value: -"Record id: up to 12 digits (6004), optionally after an experiment prefix (atlas-160006); recid:6004 or a portal record URL also work. cern_opendata_search_records and cern_opendata_get_records return it."New value: +"Record id: up to 12 digits (6004), optionally after a lowercase experiment prefix (atlas-160006). cern_opendata_search_records and cern_opendata_get_records return it."
  4. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so safety is covered; the description adds genuine context beyond that—paginated traversal order, the metadata inclusion when an index is selected, and the tape/on-demand hold that blocks download until a portal request. It doesn't discuss error behavior or how large records paginate in practice, so not a 5.

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 front-loaded sentences with no filler: inventory, then the two modes, then the on-demand caveat. The field enumeration in the first sentence overlaps somewhat with the available output schema, which is the only minor redundancy.

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?

For a paginated, four-parameter read tool with a full output schema and annotations, everything needed to call it correctly—scope, cursor paging, index selection, tape-file limitation—is present. The return-value description is slightly superfluous given the output schema, but nothing important 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 description coverage is 100% and the schema itself explains recid format, index matching, limit ceilings and cursor reuse, so the baseline applies. The description confirms the mode switch tied to omitting or supplying 'index' but adds no new syntax or constraint details beyond what the schema already carries.

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?

The description uses a specific verb ('List') on a specific resource ('one record's files') and enumerates exactly what comes back: file indexes with XRootD URI-list URLs, and per-file XRootD URI, HTTPS URL, size, adler32 checksum and availability. This is far more discriminating than the sibling names (search_records, get_records, list_reference), so an agent can pick it without opening the schema.

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?

It lays out the two operating modes precisely: without 'index' you page through indexes first then regular files, with 'index' you page through that index's member files. It also states the prerequisite for on-demand files (request them on the record's portal page first). No explicit sibling alternative is named, which keeps it below a 5.

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.