Skip to main content
Glama

cern-opendata-mcp-server

Get CERN Open Data Records

cern_opendata_get_records
Read-onlyIdempotent

Fetch full metadata, license and citation for up to 20 records by recid, DOI, CMS dataset path or documentation slug. Includes production steps and cross sections when published. Set include_scripts to true for inline production configurations. Documentation and news bodies come in slices of up to 30,000 characters; continue with body_offset and one id. All resolved records are returned. Pass ids beyond the first 20 back from deferred for the next lookup. Use cern_opendata_list_files for file lists. Unresolved ids return under missing with guidance.

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": {
      "ids": "<ids>"
    },
    "name": "cern_opendata_get_records"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesIdentifiers to resolve: up to 100, of which the first 20 distinct are looked up and the rest returned under deferred. Forms may be mixed; exact duplicates collapse.
body_offsetNoWith exactly one documentation or news id: where its body slice starts, in characters (UTF-16 code units), usually the body_next_offset an earlier call returned. 0 (the default) is the body's start and is accepted with any ids; above 0 needs exactly one id.
include_scriptsNoInclude verbatim inline production scripts and generator fragments.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
noticeNoContinuation calls for cut documentation bodies or ids past the first 20 left unread; absent when none.
missingNoIdentifiers that resolved to no record; empty when every id resolved.
recordsNoResolved records, in the order of their first matching input.
deferredNoIds past the first 20, in input order, not looked up. Pass as ids to fetch them; empty when none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / include_scripts
      Added value: +{
      +  "default": false,
      +  "description": "Include verbatim inline production scripts and generator fragments.",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / deferred / description
      Previous value: -"Continuation ids: budget-omitted records in input order, then ids past the first 20, not looked up. The response budget is 64,000 bytes; the first record is always whole even when larger. Pass as ids to fetch them; empty when none."New value: +"Ids past the first 20, in input order, not looked up. Pass as ids to fetch them; empty when none."
    • changedOutput schema / properties / notice / description
      Previous value: -"Continuation calls for a cut documentation body, budget-deferred records or ids past the first 20 left unread; absent when none."New value: +"Continuation calls for cut documentation bodies or ids past the first 20 left unread; absent when none."
    • addedOutput schema / properties / records / items / properties / cross_section
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "CMS cross-section metadata as published; numeric spellings are preserved.",
      +  "properties": {
      +    "filter_efficiency": {
      +      "description": "Filter efficiency, as a ratio.",
      +      "type": "string"
      +    },
      +    "filter_efficiency_error": {
      +      "description": "Reported filter efficiency error.",
      +      "type": "string"
      +    },
      +    "matching_efficiency": {
      +      "description": "Matching efficiency, as a ratio.",
      +      "type": "string"
      +    },
      +    "matching_efficiency_error": {
      +      "description": "Reported matching efficiency error.",
      +      "type": "string"
      +    },
      +    "neg_weight_fraction": {
      +      "description": "Percent of events with negative weights.",
      +      "type": "string"
      +    },
      +    "total_value": {
      +      "description": "Final cross section in pb.",
      +      "type": "string"
      +    },
      +    "total_value_uncertainty": {
      +      "description": "Cross-section uncertainty in pb.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedOutput schema / properties / records / items / properties / links / items / properties / source / enum
      Previous value: -[
      -  "abstract",
      -  "note",
      -  "usage",
      -  "validation",
      -  "use_with",
      -  "pileup",
      -  "software"
      -]New value: +[
      +  "abstract",
      +  "methodology",
      +  "note",
      +  "usage",
      +  "validation",
      +  "use_with",
      +  "pileup",
      +  "software"
      +]
    • addedOutput schema / properties / records / items / properties / methodology_scripts_notice
      Added value: +{
      +  "description": "Omitted script count and the tool call that retrieves them.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / records / items / properties / methodology_steps
      Added value: +{
      +  "description": "Production steps in portal order, including repeats.",
      +  "items": {
      +    "additionalProperties": false,
      +    "description": "One production step.",
      +    "properties": {
      +      "configuration_files": {
      +        "description": "Configuration entries in portal order.",
      +        "items": {
      +          "additionalProperties": false,
      +          "description": "One upstream configuration entry.",
      +          "properties": {
      +            "cms_confdb_id": {
      +              "description": "CMS configuration database id.",
      +              "type": "string"
      +            },
      +            "process": {
      +              "description": "CMS process name.",
      +              "type": "string"
      +            },
      +            "script": {
      +              "description": "Verbatim inline configuration, with include_scripts.",
      +              "type": "string"
      +            },
      +            "title": {
      +              "description": "Configuration title or file name.",
      +              "type": "string"
      +            },
      +            "url": {
      +              "description": "Configuration URL.",
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "generators": {
      +        "description": "Generators used by the step.",
      +        "items": {
      +          "description": "One generator name.",
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "global_tag": {
      +        "description": "Step conditions tag, including explicit blanks.",
      +        "type": "string"
      +      },
      +      "output_dataset": {
      +        "description": "Output dataset path.",
      +        "type": "string"
      +      },
      +      "release": {
      +        "description": "Software release for the step.",
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "Step label as published.",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Changed29 schema fields changed
    • changedOutput schema / properties / deferred / description
      Previous value: -"Inputs left for another call, in input order: those whose records were left out to hold the response to 64,000 bytes (never the first record, which is returned whole even when larger), then ids past the first 20, which were not looked up. Pass them as ids to fetch them. Empty when nothing was left out."New value: +"Continuation ids: budget-omitted records in input order, then ids past the first 20, not looked up. The response budget is 64,000 bytes; the first record is always whole even when larger. Pass as ids to fetch them; empty when none."
    • changedOutput schema / properties / notice / description
      Previous value: -"Caveats about the returned records: a documentation body with more to read, records deferred by the response budget, or ids past the first 20 that were not looked up, each with the call that continues it."New value: +"Continuation calls for a cut documentation body, budget-deferred records or ids past the first 20 left unread; absent when none."
    • changedOutput schema / properties / records / items / description
      Previous value: -"One record with its metadata, license and citation; file lists are not included."New value: +"Record metadata, license and citation; no file lists."
    • changedOutput schema / properties / records / items / properties / availability_details / description
      Previous value: -"File counts by availability state (online, on demand), as the portal reports them."New value: +"Portal-reported online/on-demand file counts."
    • changedOutput schema / properties / records / items / properties / body / description
      Previous value: -"Docs and news: the page body (markdown), at most 30,000 characters (UTF-16 code units) from body_offset."New value: +"Docs/news markdown: up to 30,000 characters (UTF-16 code units) from body_offset."
    • changedOutput schema / properties / records / items / properties / body_length / description
      Previous value: -"Docs and news: length of the whole body in characters (UTF-16 code units)."New value: +"Whole docs/news body length in UTF-16 code units."
    • changedOutput schema / properties / records / items / properties / body_next_offset / description
      Previous value: -"Docs and news: where the rest of the body starts, present only when more follows; pass it as body_offset with this id alone to continue."New value: +"Next docs/news slice start; absent at end. Pass as body_offset with this id alone to continue."
    • changedOutput schema / properties / records / items / properties / body_offset / description
      Previous value: -"Docs and news: where this body slice starts in the whole body; 0 for its start."New value: +"Docs/news slice start in UTF-16 code units; 0 is the body start."
    • changedOutput schema / properties / records / items / properties / body_truncated / description
      Previous value: -"Docs and news: true when more body follows this slice (see body_next_offset)."New value: +"More docs/news body follows; continue at body_next_offset."
    • changedOutput schema / properties / records / items / properties / category / properties / primary / description
      Previous value: -"Physics category, such as Standard Model Physics or Higgs, exactly as stored (the search category filter)."New value: +"Exact physics category for the search category filter (Standard Model Physics, Higgs, etc.)."
    • changedOutput schema / properties / records / items / properties / collections / description
      Previous value: -"Portal collections, exact and case-sensitive (the search collection filter)."New value: +"Exact, case-sensitive collections for the search collection filter."
    • changedOutput schema / properties / records / items / properties / dataset_semantics / description
      Previous value: -"Pages describing the dataset variables, on the portal; a record with an inline dictionary carries variables instead."New value: +"Portal variable-description pages; inline dictionaries appear in variables instead."
    • changedOutput schema / properties / records / items / properties / distribution / description
      Previous value: -"Distribution summary: formats, events, files and size."New value: +"Formats, event/file counts and byte size."
    • changedOutput schema / properties / records / items / properties / id / description
      Previous value: -"Portal id: the recid for records, the slug for documentation and news."New value: +"Portal id: recid for records, slug for docs and news."
    • changedOutput schema / properties / records / items / properties / kind / description
      Previous value: -"doc for documentation and news pages (they carry a slug), record otherwise."New value: +"doc for docs and news (slug); record otherwise."
    • changedOutput schema / properties / records / items / properties / license / properties / basis / description
      Previous value: -"record: stated on the record; cern_terms_default: a Dataset with no license of its own, CC0 under the CERN Open Data Terms of Use; not_stated: no license stated."New value: +"record: explicit license; cern_terms_default: Dataset without its own license, CC0 under CERN Open Data Terms of Use; not_stated: unstated."
    • changedOutput schema / properties / records / items / properties / links / description
      Previous value: -"Links from the abstract, note, usage, validation, use_with and pile-up sections and software links; empty when none."New value: +"Metadata and software links, with origin in source; empty when none."
    • changedOutput schema / properties / records / items / properties / matched_inputs / description
      Previous value: -"The requested ids that resolved to this record, as given."New value: +"Requested ids resolving here, as given."
    • changedOutput schema / properties / records / items / properties / pileup_html / description
      Previous value: -"Simulated data: how pile-up events were mixed in, HTML as the portal sent it; the pile-up datasets are in links with source pileup."New value: +"Pile-up mixing, original HTML; pile-up datasets appear in links with source pileup."
    • changedOutput schema / properties / records / items / properties / recid / description
      Previous value: -"Record id: digits (6004), or an experiment prefix and digits (atlas-160006); absent on docs and news."New value: +"Recid: digits (6004) or prefixed digits (atlas-160006); absent on docs and news."
    • changedOutput schema / properties / records / items / properties / relations / items / properties / type / description
      Previous value: -"Relation type as the portal states it (isParentOf, isChildOf, isRelatedTo); the portal applies it inconsistently."New value: +"Portal relation (isParentOf, isChildOf, isRelatedTo), inconsistently applied upstream."
    • changedOutput schema / properties / records / items / properties / run_numbers / description
      Previous value: -"Run numbers the record covers, as strings."New value: +"Covered run numbers, as strings."
    • changedOutput schema / properties / records / items / properties / stripping / description
      Previous value: -"LHCb datasets and stripping pages: the stripping stream and version."New value: +"LHCb dataset/stripping-page stream and version."
    • changedOutput schema / properties / records / items / properties / system_details / description
      Previous value: -"Software environment summary; cern_opendata_get_analysis_env expands it."New value: +"Software environment; cern_opendata_get_analysis_env expands it."
    • changedOutput schema / properties / records / items / properties / title_additional / description
      Previous value: -"Descriptive secondary title; used in the citation when present."New value: +"Secondary title; included in the citation when present."
    • changedOutput schema / properties / records / items / properties / type / description
      Previous value: -"Record type as the portal classifies it."New value: +"Portal record classification."
    • changedOutput schema / properties / records / items / properties / type / properties / primary / description
      Previous value: -"Primary type: Dataset, Software, Environment, Documentation, Supplementaries or News. Empty when the record states none."New value: +"Dataset, Software, Environment, Documentation, Supplementaries or News; empty when unstated."
    • changedOutput schema / properties / records / items / properties / type / properties / secondary / description
      Previous value: -"Secondary types, such as Collision or Simulated; empty when none."New value: +"Secondary types (Collision, Simulated, etc.); empty when none."
    • changedOutput schema / properties / records / items / properties / variables / description
      Previous value: -"The variable dictionary of a derived or event-level dataset, every entry."New value: +"Complete variable dictionary of a derived or event-level dataset."
  3. Changed4 schema fields changed
    • changedInput schema / properties / ids / description
      Previous value: -"Identifiers to resolve, 1-20: an array, or one comma-separated string. Forms may be mixed; duplicates collapse."New value: +"Identifiers to resolve: up to 100, of which the first 20 distinct are looked up and the rest returned under deferred. Forms may be mixed; exact duplicates collapse."
    • changedInput schema / properties / ids / maxItems
      Previous value: -20New value: +100
    • changedOutput schema / properties / deferred / description
      Previous value: -"Inputs whose records were left out to hold the response to 64,000 bytes, in input order; pass them as ids to fetch those records. Empty when every resolved record is returned."New value: +"Inputs left for another call, in input order: those whose records were left out to hold the response to 64,000 bytes (never the first record, which is returned whole even when larger), then ids past the first 20, which were not looked up. Pass them as ids to fetch them. Empty when nothing was left out."
    • changedOutput schema / properties / notice / description
      Previous value: -"Caveats about the returned records: a documentation body with more to read, or records deferred by the response budget, each with the call that continues it."New value: +"Caveats about the returned records: a documentation body with more to read, records deferred by the response budget, or ids past the first 20 that were not looked up, each with the call that continues it."
  4. First observed

TDQS

A4.4/5.0
Behavior5/5

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

The annotations already declare a safe read-only idempotent profile, and the description adds concrete operational behavior beyond them: only the first 20 distinct ids are resolved, the remainder are returned under deferred, unresolved ids appear under missing, body slices cap at 30,000 characters with body_offset continuation, and inline scripts require include_scripts. This is substantial disclosure beyond structured fields.

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 and every sentence carries operational detail about batching, slicing or routing. The prose is dense and would be easier to scan with shorter clauses, but there is no filler.

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?

Covers the batching limit, deferred and missing handling, body slicing continuation, and the file-list alternative. Annotations cover safety and an output schema exists, so nothing critical is missing for correct invocation.

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% and already documents ids forms, the 20-of-100 batching rule, body_offset constraints, and include_scripts. The description repeats rather than extends those parameter semantics, so the baseline 3 applies.

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 'Fetch' and resource 'full metadata, license and citation', and names the accepted identifier forms. It distinguishes itself from cern_opendata_list_files by directing file-list requests there, so an agent can choose without opening either 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?

Gives clear context for batch resolution and continuation: pass ids beyond the first 20 from deferred, and use cern_opendata_list_files for file lists. It stops short of saying when to prefer search_records or how to obtain ids initially, leaving one relevant alternative unaddressed.

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.