Skip to main content
Glama

cern-inspire-mcp-server

Search HEPData records

cern_inspire_search_hepdata
Read-onlyIdempotent

Find HEPData measurement records by physics content — process, observable, energy, collaboration — when the paper is unknown, through INSPIRE-HEP's index of every HEPData submission. Each hit carries the paper recids (pass to cern_inspire_get_paper), collaborations, keywords (reactions such as "P P --> TOP TOPBAR X", observables, centre-of-mass energies), the HEPData record DOI (recordDoi, the citation for the data), latest version, table count, and hepdataUrl, the hepdata.net record page that holds the table values; this tool does not return the values themselves. Only the first 10,000 results of a query are reachable.

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": {
      "query": "<query>"
    },
    "name": "cern_inspire_search_hepdata"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, starting at 1. page × effective size (after clamping) may not exceed 10,000.
sizeNoRecords per page (positive integer, default 10; above 1000 uses 1000).
sortNoResult order: relevance (default) or mostrecent.relevance
queryYesFree text or INSPIRE syntax over HEPData records, e.g. top pair differential cross section 13 TeV; collaborations.value:LHCb; keywords.value:"Inclusive"; or literature.control_number:<recid> for one paper's data. Empty recognized field clauses such as t: or a:"" are invalid; other syntax is passed to INSPIRE without complete grammar validation. See cern_inspire_list_reference topic search_syntax.

Output Schema

NameRequiredDescriptionDefault
capNoThe page size applied.
pageNoThe page returned.
sizeNoThe effective page size after clamping.
errorNoPresent when the call failed. Absent on success.
shownNoNumber of records on this page.
noticeNoGuidance on an empty or paged result.
hasMoreNoTrue when INSPIRE has a further page of results.
recordsNoThe HEPData records on this page, in the requested order.
nextPageNoThe page number to request next, with the same size, when one exists within the 10,000-result window.
truncatedNoTrue when more results exist beyond this page.
totalCountNoTotal HEPData records the query matched.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / size / description
      Previous value: -"Records per page (positive integer, default 10; above 50 uses 50)."New value: +"Records per page (positive integer, default 10; above 1000 uses 1000)."
  2. Changed3 schema fields changed
    • changedInput schema / properties / query / description
      Previous value: -"Free text or INSPIRE syntax over HEPData records, e.g. top pair differential cross section 13 TeV; collaborations.value:LHCb; keywords.value:\"Inclusive\"; or literature.control_number:<recid> for one paper's data. INSPIRE does not reject malformed syntax; see cern_inspire_list_reference topic search_syntax."New value: +"Free text or INSPIRE syntax over HEPData records, e.g. top pair differential cross section 13 TeV; collaborations.value:LHCb; keywords.value:\"Inclusive\"; or literature.control_number:<recid> for one paper's data. Empty recognized field clauses such as t: or a:\"\" are invalid; other syntax is passed to INSPIRE without complete grammar validation. See cern_inspire_list_reference topic search_syntax."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `beyond_result_window`: page × effective size (after clamping) exceeds the 10,000 results INSPIRE serves for one query. `invalid_query`: INSPIRE answered 400 to a parameter value it refuses. `inspire_rate_limited`: INSPIRE returned 429 after the pacer and retries. `pacer_shed`: The server's outbound INSPIRE queue could not start the request within the call's remaining budget. `upstream_unreadable`: The INSPIRE body exceeded the byte ceiling, was HTML where JSON was expected, or was invalid JSON. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `beyond_result_window`: page × effective size (after clamping) exceeds the 10,000 results INSPIRE serves for one query. `invalid_query`: A recognized field clause has no value, or INSPIRE answered 400 to a parameter value it refuses. `inspire_rate_limited`: INSPIRE returned 429 after the pacer and retries. `pacer_shed`: The server's outbound INSPIRE queue could not start the request within the call's remaining budget. `upstream_unreadable`: The INSPIRE body exceeded the byte ceiling, was HTML where JSON was expected, or was invalid JSON. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / nextPage / description
      Previous value: -"The page number to request next, when one exists within the 10,000-result window."New value: +"The page number to request next, with the same size, when one exists within the 10,000-result window."
  3. Changed5 schema fields changed
    • changedInput schema / properties / page / description
      Previous value: -"Page number, starting at 1. page × size may not exceed 10,000."New value: +"Page number, starting at 1. page × effective size (after clamping) may not exceed 10,000."
    • changedInput schema / properties / size / description
      Previous value: -"Records per page (1–50, default 10)."New value: +"Records per page (positive integer, default 10; above 50 uses 50)."
    • changedInput schema / properties / size / maximum
      Previous value: -50New value: +9007199254740991
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `beyond_result_window`: page × size exceeds the 10,000 results INSPIRE serves for one query. `invalid_query`: INSPIRE answered 400 to a parameter value it refuses. `inspire_rate_limited`: INSPIRE returned 429 after the pacer and retries. `pacer_shed`: The server's outbound INSPIRE queue could not start the request within the call's remaining budget. `upstream_unreadable`: The INSPIRE body exceeded the byte ceiling, was HTML where JSON was expected, or was invalid JSON. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `beyond_result_window`: page × effective size (after clamping) exceeds the 10,000 results INSPIRE serves for one query. `invalid_query`: INSPIRE answered 400 to a parameter value it refuses. `inspire_rate_limited`: INSPIRE returned 429 after the pacer and retries. `pacer_shed`: The server's outbound INSPIRE queue could not start the request within the call's remaining budget. `upstream_unreadable`: The INSPIRE body exceeded the byte ceiling, was HTML where JSON was expected, or was invalid JSON. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / size / description
      Previous value: -"The page size requested."New value: +"The effective page size after clamping."
  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 cover safety (readOnly, idempotent, openWorld), yet the description adds real behavioral content: what each hit contains (recids, DOI, version, table count, hepdataUrl) and the critical limitation that table values are not returned here. It also discloses the 10,000-result reachability cap, a behavioral constraint that matters for pagination strategy.

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 and the "paper unknown" qualifier are front-loaded, followed by return contents and then the result cap — a sensible ordering. The middle sentence is a long enumeration of return fields that partly duplicates the output schema, which costs some density.

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 read-only search tool with a full output schema, the definition covers the key gaps: the two-stage workflow (search here, fetch paper via recid), the fact that values live on hepdata.net rather than in the response, and the deep-paging ceiling. The return-field enumeration is somewhat redundant against the output schema, but nothing an agent needs in order 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 description coverage is 100%, including rich query syntax examples, the page×size clamping rule, and the sort enum, so the schema already carries parameter meaning. The description adds nothing about page, size, or sort, leaving this at the baseline for fully documented schemas.

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?

"Find HEPData measurement records by physics content — process, observable, energy, collaboration" gives a specific verb plus a precisely scoped resource and names the discriminating dimensions. It immediately separates itself from literature search by stating "when the paper is unknown", so an agent can choose between this and cern_inspire_search_literature/cern_inspire_get_paper without opening a 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?

The condition "when the paper is unknown" is an explicit when-to-use signal, and the description names the downstream handoff ("pass to cern_inspire_get_paper") so the agent knows the follow-up path. It stops short of naming the alternative tool to use when the paper *is* known, so the routing is implied rather than fully spelled out.

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.