Search INSPIRE literature
cern_inspire_search_literatureSearch INSPIRE-HEP papers with INSPIRE query syntax or free text, filtered by document type, subject, and year, sorted by relevance, recency, or citations. Returns one page of papers with recid, title, first author, date, citation counts, arXiv ID, DOI, publication, and an abstract snippet; pass a recid to cern_inspire_get_paper for the full record or to cern_inspire_export_citations ("recid:N") for BibTeX. Empty recognized field clauses are invalid; other malformed syntax can widen or empty the match, so check an unexpectedly broad or empty result against cern_inspire_list_reference topic search_syntax. 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_literature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, starting at 1. page × effective size (after clamping) may not exceed 10,000. | |
| size | No | Papers per page (positive integer, default 10; above 1000 uses 1000). | |
| sort | No | Result order: relevance (default), mostrecent, or mostcited. | relevance |
| query | Yes | INSPIRE query syntax or free text. Common operators: "a Jane.Doe.1" or "a Doe, J" (author), "t higgs boson" (title words), "cn atlas" or "collaboration:atlas" (collaboration), "date > 2015", "topcite 500+" (cited 500+ times), "refersto:recid:451647" (papers citing a record), "citedby:recid:451647" (its references), "j Phys.Rev.Lett." (journal), "eprint 1207.7214"; combine with and/or/not. Bare words search all fields. Empty recognized field clauses such as a: or a:"" (including whitespace-only quoted values) are invalid; other syntax is passed to INSPIRE without complete grammar validation. See cern_inspire_list_reference topic search_syntax. | |
| year_to | No | Latest year to include (1900–2100, inclusive), matched on the earliest date INSPIRE records for the paper. Omit for no upper bound. | |
| subjects | No | Restrict to INSPIRE subject categories (up to 4). Multiple values must ALL hold, not either. Values: Astrophysics, Phenomenology-HEP, Theory-HEP, Quantum Physics, Unknown, Gravitation and Cosmology, Experiment-HEP, Theory-Nucl, Accelerators, Instrumentation, General Physics, Experiment-Nucl, Math and Math Physics, Condensed Matter, Computing, Lattice, Other, Data Analysis and Statistics. | |
| year_from | No | Earliest year to include (1900–2100, inclusive), matched on the earliest date INSPIRE records for the paper. Omit for no lower bound. | |
| document_types | No | Restrict to INSPIRE document types (up to 4). Multiple values must ALL hold (published + review = published reviews), not either. Values: article, published, conference paper, thesis, review, note, proceedings, lectures, book chapter, book, introductory, activity report, report. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | The page size applied. | |
| page | No | The page returned. | |
| size | No | The effective page size after clamping. | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Number of papers on this page. | |
| notice | No | Guidance on an empty, very broad, or paged result, and each arXiv clause sent without its version suffix. | |
| papers | No | The papers on this page, in the requested order. | |
| hasMore | No | True when INSPIRE has a further page of results. | |
| nextPage | No | The page number to request next, with the same size, when one exists within the 10,000-result window. | |
| truncated | No | True when more results exist beyond this page. | |
| totalCount | No | Total literature records the query matched. | |
| appliedFilters | No | Sort and filters applied, e.g. "sort=mostcited; years=2012–2015", or "none". |