cern-inspire-mcp-server

Search INSPIRE-HEP papers, authors, experiments, HEPData records; get citation metrics and BibTeX.

我该使用它吗

质量与安全性

A
描述质量
100%
模式完整度
99%
命名质量
75%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

发现(2)

  • LOWTool 'cern_inspire_get_citation_summary' name length outside 3-30 range在 cern_inspire_get_citation_summary 中
  • LOWTool 'cern_inspire_search_experiments' name length outside 3-30 range在 cern_inspire_search_experiments 中

基于对工具定义和协议合规性的自动分析。

上下文开销

~14,140token 数(工具定义)
~20.1 KB典型响应大小
对注意力有显著影响(占 128k 上下文窗口的 11.05%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "cern-inspire-mcp-server": {
      "command": "node",
      "args": [
        "@cyanheads/cern-inspire-mcp-server"
      ]
    }
  }
}

可运行的软件包

npm@cyanheads/cern-inspire-mcp-server0.1.2streamable-http

远程端点

https://cern-inspire.caseyjhand.com/mcpstreamable-http

它能做什么

工具清单

工具(8)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢cern_inspire_search_literature(query, sort, document_types, subjects, year_from, ...)

Search 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. INSPIRE never rejects malformed syntax: an unparsed operator widens or empties the match, so a very broad or empty result usually means the query needs fixing (cern_inspire_list_reference topic search_syntax). Only the first 10,000 results of a query are reachable.

输入模式

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000,
      "description": "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. INSPIRE does not reject malformed syntax; see cern_inspire_list_reference topic search_syntax for the rest."
    },
    "sort": {
      "description": "Result order: relevance (default), mostrecent, or mostcited.",
      "default": "relevance",
      "type": "string",
      "enum": [
        "relevance",
        "mostrecent",
        "mostcited"
      ]
    },
    "document_types": {
      "description": "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.",
      "maxItems": 4,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "article",
          "published",
          "conference paper",
          "thesis",
          "review",
          "note",
          "proceedings",
          "lectures",
          "book chapter",
          "book",
          "introductory",
          "activity report",
          "report"
        ],
        "description": "An INSPIRE document type."
      }
    },
    "subjects": {
      "description": "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.",
      "maxItems": 4,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "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"
        ],
        "description": "An INSPIRE subject category."
      }
    },
    "year_from": {
      "description": "Earliest year to include (1900–2100, inclusive), matched on the earliest date INSPIRE records for the paper. Omit for no lower bound.",
      "type": "integer",
      "minimum": 1900,
      "maximum": 2100
    },
    "year_to": {
      "description": "Latest year to include (1900–2100, inclusive), matched on the earliest date INSPIRE records for the paper. Omit for no upper bound.",
      "type": "integer",
      "minimum": 1900,
      "maximum": 2100
    },
    "page": {
      "description": "Page number, starting at 1. page × size may not exceed 10,000.",
      "default": 1,
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "size": {
      "description": "Papers per page (1–100, default 10).",
      "default": 10,
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "required": [
    "query"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "properties": {
    "papers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "recid": {
            "type": "string",
            "description": "INSPIRE literature record ID; pass to cern_inspire_get_paper."
          },
          "title": {
            "type": "string",
            "description": "Title as text: publisher HTML, JATS, and MathML converted (scripts as _x or ^{xy}), LaTeX left as published."
          },
          "firstAuthor": {
            "description": "First author, when INSPIRE indexes one.",
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "First author, \"Surname, Given names\"."
              },
              "recid": {
                "description": "INSPIRE author record ID, when linked; pass as query to cern_inspire_search_authors for the profile.",
                "type": "string"
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false
          },
          "authorCount": {
            "description": "Number of authors, when INSPIRE indexes the count.",
            "type": "number"
          },
          "collaborations": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Collaboration name."
            },
            "description": "Collaborations credited on the paper; empty for most non-collaboration papers."
          },
          "date": {
            "description": "Earliest date INSPIRE records for the paper: YYYY, YYYY-MM, or YYYY-MM-DD.",
            "type": "string"
          },
          "documentTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "INSPIRE document type."
            },
            "description": "INSPIRE document types."
          },
          "citationCount": {
            "type": "number",
            "description": "Citations INSPIRE counts for the paper."
          },
          "citationCountWithoutSelf": {
            "description": "Citations excluding self-citations, when INSPIRE reports it.",
            "type": "number"
          },
          "arxivId": {
            "description": "arXiv identifier, when the paper has one.",
            "type": "string"
          },
          "arxivCategories": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "arXiv category."
            },
            "description": "arXiv categories of the e-print."
          },
          "doi": {
            "description": "First DOI, when the paper has one.",
            "type": "string"
          },
          "publication": {
            "description": "First publication reference: \"Journal Vol (Year) pages\" or its free-text form.",
            "type": "string"
          },
          "abstractSnippet": {
            "description": "Start of the abstract as text (arXiv-sourced when available; publisher markup converted, LaTeX left as published), up to 300 characters at a word boundary.",
            "type": "string"
          },
          "abstractTruncated": {
            "description": "True when the abstract continues past the snippet; cern_inspire_get_paper has it in full.",
            "type": "boolean"
          }
        },
        "required": [
          "recid",
          "title",
          "collaborations",
          "documentTypes",
          "citationCount",
          "arxivCategories"
        ],
        "additionalProperties": false,
        "description": "One matching paper."
      },
      "description": "The papers on this page, in the requested order."
    },
    "page": {
      "type": "number",
      "description": "The page returned."
    },
    "size": {
      "type": "number",
      "description": "The page size requested."
    },
    "hasMore": {
      "type": "boolean",
      "description": "True when INSPIRE has a further page of results."
    },
    "totalCount": {
      "type": "number",
      "description": "Total literature records the query matched."
    },
    "truncated": {
      "type": "boolean",
      "description": "True when more results exist beyond this page."
    },
    "shown": {
      "type": "number",
      "description": "Number of papers on this page."
    },
    "cap": {
      "type": "number",
      "description": "The page size applied."
    },
    "nextPage": {
      "description": "The page number to request next, when one exists within the 10,000-result window.",
      "type": "number"
    },
    "appliedFilters": {
      "type": "string",
      "description": "Sort and filters applied, e.g. \"sort=mostcited; years=2012–2015\", or \"none\"."
    },
    "notice": {
      "description": "Guidance on an empty, very broad, or paged result.",
      "type": "string"
    },
    "error": {
      "description": "Present when the call failed. Absent on success.",
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "JSON-RPC error code for this failure."
        },
        "message": {
          "type": "string",
          "description": "Human-readable description of what went wrong."
        },
        "data": {
          "type": "object",
          "properties": {
            "reason": {
              "type": "string",
              "description": "Machine-readable failure mode. Declared by this tool: `beyond_result_window`: page × size exceeds the 10,000 results INSPIRE serves for one query. `invalid_year_range`: year_from is later than year_to. `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.",
              "examples": [
                "beyond_result_window",
                "invalid_year_range",
                "invalid_query",
                "inspire_rate_limited",
                "pacer_shed",
                "upstream_unreadable"
              ]
            },
            "recovery": {
              "description": "Actionable next step for the caller.",
              "type": "object",
              "properties": {
                "hint": {
                  "type": "string"
                }
              },
              "required": [
                "hint"
              ],
              "additionalProperties": {}
            },
            "retryable": {
              "description": "Whether retrying may succeed.",
              "type": "boolean"
            }
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": {}
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "anyOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "required": [
        "papers",
        "page",
        "size",
        "hasMore",
        "totalCount",
        "truncated",
        "shown",
        "cap",
        "appliedFilters"
      ]
    },
    {
      "required": [
        "error"
      ]
    }
  ]
}
🟢cern_inspire_get_paper(paper, max_authors)

Fetch one paper's full INSPIRE-HEP record by recid, arXiv ID, or DOI: authors with affiliations and identifiers, abstract, publication references, arXiv and DOI identifiers, keywords, subjects, citation counts, linked experiments, texkeys, and whether HEPData holds its numerical tables (record DOI, latest version, table count, hepdata.net link). Also returns ready-made literature queries for the papers citing it and for its references. Large collaboration papers can list thousands of authors; max_authors caps the list while authorCount gives the full number.

输入模式

{
  "type": "object",
  "properties": {
    "paper": {
      "description": "INSPIRE recid (e.g. 451647), arXiv ID (1207.7214 or hep-th/9711200, with or without 'arXiv:', a version suffix, or an https://arxiv.org/abs/ or https://arxiv.org/pdf/ prefix), DOI (10.1016/…, with or without 'doi:' or an https://doi.org/ prefix; no * or ? wildcards), an https://inspirehep.net/literature/<recid> URL, or HEPData's ins<recid> form, alone or in an https://www.hepdata.net/record/ins<recid> URL. Up to 256 characters.",
      "type": "string",
      "maxLength": 256
    },
    "max_authors": {
      "description": "Most authors to list (0–500, default 25). The full count is always in authorCount.",
      "default": 25,
      "type": "integer",
      "minimum": 0,
      "maximum": 500
    }
  },
  "required": [
    "paper"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "properties": {
    "recid": {
      "type": "string",
      "description": "INSPIRE literature record ID."
    },
    "mergedFrom": {
      "description": "The recid asked for, when INSPIRE had merged that record into this one and redirects it here; cite and query this record by recid.",
      "type": "string"
    },
    "resolvedAs": {
      "type": "string",
      "enum": [
        "recid",
        "arxiv",
        "doi"
      ],
      "description": "Which identifier form the paper input was resolved from."
    },
    "title": {
      "type": "string",
      "description": "Title as text: publisher HTML, JATS, and MathML converted (scripts as _x or ^{xy}), LaTeX left as published."
    },
    "alternateTitles": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "An alternate title."
      },
      "description": "Other titles INSPIRE records (translations, preprint titles), converted to text like title."
    },
    "abstract": {
      "description": "Full abstract as text (arXiv-sourced when available): publisher markup converted like title, LaTeX left as published.",
      "type": "string"
    },
    "abstractSource": {
      "description": "Who supplied the abstract (e.g. arXiv, a publisher).",
      "type": "string"
    },
    "authorCount": {
      "type": "number",
      "description": "Total number of authors on the paper."
    },
    "authors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Author name, \"Surname, Given names\"."
          },
          "recid": {
            "description": "INSPIRE author record ID, when linked; pass as query to cern_inspire_search_authors for the profile.",
            "type": "string"
          },
          "bai": {
            "description": "INSPIRE BAI (e.g. Edward.Witten.1), when known; pass as author to cern_inspire_get_citation_summary.",
            "type": "string"
          },
          "orcid": {
            "description": "ORCID, when known.",
            "type": "string"
          },
          "affiliations": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Affiliation name."
            },
            "description": "Affiliations listed for this author on this paper."
          }
        },
        "required": [
          "name",
          "affiliations"
        ],
        "additionalProperties": false,
        "description": "One author."
      },
      "description": "Authors in record order, capped at max_authors."
    },
    "collaborations": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Collaboration name."
      },
      "description": "Collaborations credited on the paper; empty for most non-collaboration papers."
    },
    "experiments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Experiment legacy name (e.g. CERN-LHC-ATLAS)."
          },
          "recid": {
            "description": "INSPIRE experiment record ID, when linked; pass as query to cern_inspire_search_experiments for the experiment record.",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "description": "One linked experiment."
      },
      "description": "Accelerator experiments linked to the paper."
    },
    "date": {
      "description": "Earliest date INSPIRE records for the paper: YYYY, YYYY-MM, or YYYY-MM-DD.",
      "type": "string"
    },
    "preprintDate": {
      "description": "Preprint date, when recorded.",
      "type": "string"
    },
    "publicationDate": {
      "description": "Publication (imprint) date, when recorded.",
      "type": "string"
    },
    "publications": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "journal": {
            "description": "Journal title (abbreviated).",
            "type": "string"
          },
          "volume": {
            "description": "Journal volume.",
            "type": "string"
          },
          "year": {
            "description": "Publication year.",
            "type": "number"
          },
          "pages": {
            "description": "Page range or start page.",
            "type": "string"
          },
          "articleId": {
            "description": "Article ID, for journals that number articles.",
            "type": "string"
          },
          "freetext": {
            "description": "Free-text publication reference.",
            "type": "string"
          }
        },
        "additionalProperties": false,
        "description": "One publication reference."
      },
      "description": "Publication references (journal, volume, year, pages)."
    },
    "arxivId": {
      "description": "arXiv identifier, when the paper has one.",
      "type": "string"
    },
    "arxivCategories": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "arXiv category."
      },
      "description": "arXiv categories of the e-print."
    },
    "dois": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "A DOI."
      },
      "description": "DOIs of the paper."
    },
    "reportNumbers": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "A report number."
      },
      "description": "Report numbers."
    },
    "keywords": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "A keyword."
      },
      "description": "Keywords, de-duplicated."
    },
    "subjects": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "INSPIRE subject."
      },
      "description": "INSPIRE subject categories."
    },
    "documentTypes": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "INSPIRE document type."
      },
      "description": "INSPIRE document types."
    },
    "refereed": {
      "description": "True when published in a refereed venue, when recorded.",
      "type": "boolean"
    },
    "citeable": {
      "description": "INSPIRE citeable flag, when recorded.",
      "type": "boolean"
    },
    "core": {
      "description": "True when INSPIRE classes the paper as core HEP, when recorded.",
      "type": "boolean"
    },
    "numberOfPages": {
      "description": "Page count, when recorded.",
      "type": "number"
    },
    "citationCount": {
      "type": "number",
      "description": "Citations INSPIRE counts for the paper."
    },
    "citationCountWithoutSelf": {
      "description": "Citations excluding self-citations, when INSPIRE reports it.",
      "type": "number"
    },
    "texkeys": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "A texkey."
      },
      "description": "INSPIRE texkeys (BibTeX citation keys), current first."
    },
    "urls": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Link URL."
          },
          "description": {
            "description": "Link description, when given.",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "additionalProperties": false,
        "description": "One external link."
      },
      "description": "External links INSPIRE records for the paper."
    },
    "licenses": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Licence URL."
          },
          "material": {
            "description": "Which version of the paper the licence covers (e.g. preprint, publication), when recorded.",
            "type": "string"
          },
          "imposing": {
            "description": "Who imposes the licence, when recorded.",
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "additionalProperties": false,
        "description": "One licence."
      },
      "description": "Licences recorded for the paper."
    },
    "inspireUrl": {
      "type": "string",
      "description": "The paper on inspirehep.net."
    },
    "citingQuery": {
      "type": "string",
      "description": "Literature query for papers citing this one; pass to cern_inspire_search_literature."
    },
    "referencesQuery": {
      "type": "string",
      "description": "Literature query for this paper's references; pass to cern_inspire_search_literature."
    },
    "hepdata": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "available",
            "none",
            "lookup_failed"
          ],
          "description": "available: HEPData holds tables; none: it does not; lookup_failed: could not check."
        },
        "inspireDataRecid": {
          "description": "Record ID of the HEPData entry in INSPIRE's data collection.",
          "type": "string"
        },
        "recordDoi": {
          "description": "HEPData record DOI; cite it when reusing the data.",
          "type": "string"
        },
        "latestVersion": {
          "description": "Latest HEPData record version.",
          "type": "number"
        },
        "tableCount": {
          "description": "Number of tables in the latest version.",
          "type": "number"
        },
        "hepdataUrl": {
          "description": "The HEPData record page on hepdata.net, where the table values are read: keyed by the record number in recordDoi, or by this paper's recid (/record/ins followed by the recid) when recordDoi names no number.",
          "type": "string"
        },
        "otherRecords": {
          "description": "The paper's other HEPData records, in ascending record number, when it has more than one (at most 9 listed); the fields above describe the lowest-numbered record among the up to 10 the lookup returns.",
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "inspireDataRecid": {
                "description": "Record ID of the HEPData entry in INSPIRE's data collection.",
                "type": "string"
              },
              "recordDoi": {
                "description": "HEPData record DOI; cite it when reusing the data.",
                "type": "string"
              },
              "latestVersion": {
                "description": "Latest HEPData record version.",
                "type": "number"
              },
              "tableCount": {
                "description": "Number of tables in the latest version.",
                "type": "number"
              },
              "hepdataUrl": {
                "description": "The HEPData record page on hepdata.net, where the table values are read: keyed by the record number in recordDoi, or by this paper's recid (/record/ins followed by the recid) when recordDoi names no number.",
                "type": "string"
              }
            },
            "additionalProperties": false,
            "description": "Another HEPData record of this paper."
          }
        }
      },
      "required": [
        "status"
      ],
      "additionalProperties": false,
      "description": "HEPData availability for the paper's numerical tables."
    },
    "truncated": {
      "type": "boolean",
      "description": "True when the author list was capped at max_authors."
    },
    "shown": {
      "type": "number",
      "description": "Number of authors listed."
    },
    "cap": {
      "type": "number",
      "description": "The max_authors cap applied."
    },
    "notice": {
      "description": "Guidance when the recid asked for was merged into this record, the author list was capped, HEPData availability could not be checked, or the paper has more than one HEPData record.",
      "type": "string"
    },
    "error": {
      "description": "Present when the call failed. Absent on success.",
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "JSON-RPC error code for this failure."
        },
        "message": {
          "type": "string",
          "description": "Human-readable description of what went wrong."
        },
        "data": {
          "type": "object",
          "properties": {
            "reason": {
              "type": "string",
              "description": "Machine-readable failure mode. Declared by this tool: `paper_not_found`: The recid, arXiv ID, or DOI matches no INSPIRE literature record. `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.",
              "examples": [
                "paper_not_found",
                "inspire_rate_limited",
                "pacer_shed",
                "upstream_unreadable"
              ]
            },
            "recovery": {
              "description": "Actionable next step for the caller.",
              "type": "object",
              "properties": {
                "hint": {
                  "type": "string"
                }
              },
              "required": [
                "hint"
              ],
              "additionalProperties": {}
            },
            "retryable": {
              "description": "Whether retrying may succeed.",
              "type": "boolean"
            }
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": {}
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "anyOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "required": [
        "recid",
        "resolvedAs",
        "title",
        "alternateTitles",
        "authorCount",
        "authors",
        "collaborations",
        "experiments",
        "publications",
        "arxivCategories",
        "dois",
        "reportNumbers",
        "keywords",
        "subjects",
        "documentTypes",
        "citationCount",
        "texkeys",
        "urls",
        "licenses",
        "inspireUrl",
        "citingQuery",
        "referencesQuery",
        "hepdata",
        "truncated",
        "shown",
        "cap"
      ]
    },
    {
      "required": [
        "error"
      ]
    }
  ]
}
🟢cern_inspire_export_citations(query, format, sort, page, size)

Export INSPIRE-HEP's citation entries for the papers a literature query selects, as BibTeX or LaTeX \bibitem entries (EU or US style), keyed by INSPIRE texkeys and ready to paste into a bibliography. Name specific papers with "recid:451647 or arxiv:1207.7214 or doi:10.1016/…", or export a topic, author, or citing set with any query cern_inspire_search_literature accepts. Up to 50 entries per page; page through larger sets (only the first 10,000 matches are reachable). Entries are INSPIRE's verbatim text (long author lists arrive abbreviated as "First, Name and others").

输入模式

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000,
      "description": "Literature query selecting the papers to cite. Named papers: \"recid:451647 or arxiv:1207.7214 or doi:10.1016/j.physletb.2012.08.020\". Or any INSPIRE query: a topic (\"t higgs and topcite 500+\"), an author (\"a Edward.Witten.1\"), or the papers citing a record (\"refersto:recid:451647\"). See cern_inspire_list_reference topic search_syntax."
    },
    "format": {
      "description": "Entry format: bibtex (default), latex-eu, or latex-us (\\bibitem entries in European or US style).",
      "default": "bibtex",
      "type": "string",
      "enum": [
        "bibtex",
        "latex-eu",
        "latex-us"
      ]
    },
    "sort": {
      "description": "Entry order: relevance (default), mostrecent, or mostcited.",
      "default": "relevance",
      "type": "string",
      "enum": [
        "relevance",
        "mostrecent",
        "mostcited"
      ]
    },
    "page": {
      "description": "Page number, starting at 1. page × size may not exceed 10,000.",
      "default": 1,
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "size": {
      "description": "Entries per page (1–50, default 10).",
      "default": 10,
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "required": [
    "query"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "properties": {
    "format": {
      "type": "string",
      "enum": [
        "bibtex",
        "latex-eu",
        "latex-us"
      ],
      "description": "The entry format returned."
    },
    "page": {
      "type": "number",
      "description": "The page returned."
    },
    "entries": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "texkey": {
            "type": "string",
            "description": "INSPIRE texkey (the \\cite key), e.g. Maldacena:1997re; empty when INSPIRE gives none."
          },
          "text": {
            "type": "string",
            "description": "The entry, verbatim as INSPIRE serves it."
          }
        },
        "required": [
          "texkey",
          "text"
        ],
        "additionalProperties": false,
        "description": "One citation entry."
      },
      "description": "Citation entries, in the requested order."
    },
    "truncated": {
      "type": "boolean",
      "description": "True when more matched papers follow this page."
    },
    "shown": {
      "type": "number",
      "description": "Number of entries on this page."
    },
    "cap": {
      "type": "number",
      "description": "The page size applied."
    },
    "nextPage": {
      "description": "The page number to request next, when more papers follow within the 10,000-result window.",
      "type": "number"
    },
    "notice": {
      "description": "Guidance when nothing matched, the page is past the last or came back empty inside the match count, more papers follow, or the page could not be checked against the match count.",
      "type": "string"
    },
    "error": {
      "description": "Present when the call failed. Absent on success.",
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "JSON-RPC error code for this failure."
        },
        "message": {
          "type": "string",
          "description": "Human-readable description of what went wrong."
        },
        "data": {
          "type": "object",
          "properties": {
            "reason": {
              "type": "string",
              "description": "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, or was JSON or HTML where citation text was expected. Other values are possible when a failure originates below the handler.",
              "examples": [
                "beyond_result_window",
                "invalid_query",
                "inspire_rate_limited",
                "pacer_shed",
                "upstream_unreadable"
              ]
            },
            "recovery": {
              "description": "Actionable next step for the caller.",
              "type": "object",
              "properties": {
                "hint": {
                  "type": "string"
                }
              },
              "required": [
                "hint"
              ],
              "additionalProperties": {}
            },
            "retryable": {
              "description": "Whether retrying may succeed.",
              "type": "boolean"
            }
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": {}
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "anyOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "required": [
        "format",
        "page",
        "entries",
        "truncated",
        "shown",
        "cap"
      ]
    },
    {
      "required": [
        "error"
      ]
    }
  ]
}
🟢cern_inspire_search_authors(query, limit)

Find physicist profiles in INSPIRE-HEP by name, INSPIRE BAI, ORCID, INSPIRE ID, or author recid. Each profile carries its recid, BAI, ORCID, current and past positions, advisors, arXiv categories, links, awards, and a literatureQuery that selects the person's papers in cern_inspire_search_literature. A name returns ranked candidates (a bare surname can match tens of thousands of profiles, and a less-cited namesake can rank first), so confirm the person from positions and categories before passing a bai or recid to cern_inspire_get_citation_summary. An identifier matches exactly.

输入模式

{
  "type": "object",
  "properties": {
    "query": {
      "description": "A physicist's name (\"Witten, Edward\" or \"Edward Witten\") or one identifier: INSPIRE BAI (Edward.Witten.1, exact and case-sensitive), ORCID (0000-0002-7752-6073 or an orcid.org URL), INSPIRE ID (INSPIRE-00136372), or author recid.",
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "limit": {
      "description": "Profiles to return (1–25, default 5).",
      "default": 5,
      "type": "integer",
      "minimum": 1,
      "maximum": 25
    }
  },
  "required": [
    "query"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "properties": {
    "authors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "recid": {
            "type": "string",
            "description": "INSPIRE author record ID; pass to cern_inspire_get_citation_summary."
          },
          "name": {
            "type": "string",
            "description": "Name as INSPIRE records it, \"Last, First\"."
          },
          "preferredName": {
            "description": "Preferred display name, when recorded.",
            "type": "string"
          },
          "bai": {
            "description": "INSPIRE BAI (exact, case-sensitive); use in literature queries as \"a <BAI>\" or pass as author to cern_inspire_get_citation_summary.",
            "type": "string"
          },
          "orcid": {
            "description": "ORCID iD, when the profile links one.",
            "type": "string"
          },
          "inspireId": {
            "description": "INSPIRE ID (INSPIRE- plus 8 digits), when recorded.",
            "type": "string"
          },
          "otherIds": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "schema": {
                  "type": "string",
                  "description": "Identifier scheme (e.g. WIKIPEDIA, TWITTER, SPIRES)."
                },
                "value": {
                  "type": "string",
                  "description": "Identifier value in that scheme."
                }
              },
              "required": [
                "schema",
                "value"
              ],
              "additionalProperties": false,
              "description": "One further identifier."
            },
            "description": "Identifiers beyond BAI, ORCID, and INSPIRE ID."
          },
          "status": {
            "description": "Career status INSPIRE records (e.g. active, retired).",
            "type": "string"
          },
          "stub": {
            "description": "True when the profile is an unclaimed stub generated from paper metadata.",
            "type": "boolean"
          },
          "currentPositions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "institution": {
                  "type": "string",
                  "description": "Institution name as INSPIRE records it."
                },
                "rank": {
                  "description": "Rank or role (e.g. SENIOR, PHD, POSTDOC), when recorded.",
                  "type": "string"
                },
                "startDate": {
                  "description": "Start date (YYYY or YYYY-MM), when recorded.",
                  "type": "string"
                },
                "endDate": {
                  "description": "End date (YYYY or YYYY-MM), when recorded.",
                  "type": "string"
                },
                "institutionRecid": {
                  "description": "INSPIRE institution record ID, when the position links one; pass affid:N, N being this ID, as the query of cern_inspire_search_literature or cern_inspire_get_citation_summary for the institution's papers.",
                  "type": "string"
                }
              },
              "required": [
                "institution"
              ],
              "additionalProperties": false,
              "description": "One position held."
            },
            "description": "Positions marked current."
          },
          "pastPositions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "institution": {
                  "type": "string",
                  "description": "Institution name as INSPIRE records it."
                },
                "rank": {
                  "description": "Rank or role (e.g. SENIOR, PHD, POSTDOC), when recorded.",
                  "type": "string"
                },
                "startDate": {
                  "description": "Start date (YYYY or YYYY-MM), when recorded.",
                  "type": "string"
                },
                "endDate": {
                  "description": "End date (YYYY or YYYY-MM), when recorded.",
                  "type": "string"
                },
                "institutionRecid": {
                  "description": "INSPIRE institution record ID, when the position links one; pass affid:N, N being this ID, as the query of cern_inspire_search_literature or cern_inspire_get_citation_summary for the institution's papers.",
                  "type": "string"
                }
              },
              "required": [
                "institution"
              ],
              "additionalProperties": false,
              "description": "One position held."
            },
            "description": "Earlier positions."
          },
          "arxivCategories": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "arXiv category."
            },
            "description": "arXiv categories the person publishes in."
          },
          "advisors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Advisor name."
                },
                "degreeType": {
                  "description": "Degree supervised (e.g. phd, master), when recorded.",
                  "type": "string"
                },
                "recid": {
                  "description": "Advisor author record ID, when linked.",
                  "type": "string"
                }
              },
              "required": [
                "name"
              ],
              "additionalProperties": false,
              "description": "One advisor."
            },
            "description": "Advisors INSPIRE records."
          },
          "urls": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "description": "URL."
                },
                "description": {
                  "description": "Label INSPIRE gives the URL, when any.",
                  "type": "string"
                }
              },
              "required": [
                "url"
              ],
              "additionalProperties": false,
              "description": "One web link."
            },
            "description": "Web links on the profile."
          },
          "awards": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Award name."
                },
                "year": {
                  "description": "Year awarded, when recorded.",
                  "type": "number"
                }
              },
              "required": [
                "name"
              ],
              "additionalProperties": false,
              "description": "One award."
            },
            "description": "Awards INSPIRE records."
          },
          "literatureQuery": {
            "type": "string",
            "description": "Literature query selecting this person's papers; pass to cern_inspire_search_literature."
          }
        },
        "required": [
          "recid",
          "name",
          "otherIds",
          "currentPositions",
          "pastPositions",
          "arxivCategories",
          "advisors",
          "urls",
          "awards",
          "literatureQuery"
        ],
        "additionalProperties": false,
        "description": "One matching author profile."
      },
      "description": "Matching profiles, in INSPIRE relevance order."
    },
    "totalCount": {
      "type": "number",
      "description": "Total author profiles the query matched."
    },
    "truncated": {
      "type": "boolean",
      "description": "True when more profiles matched than were returned."
    },
    "shown": {
      "type": "number",
      "description": "Number of profiles returned."
    },
    "cap": {
      "type": "number",
      "description": "The limit applied."
    },
    "matchedAs": {
      "type": "string",
      "description": "How the query was read: orcid, inspire_id, bai, or recid (exact identifier match), or name (free-text search)."
    },
    "notice": {
      "description": "Guidance on an empty or capped result.",
      "type": "string"
    },
    "error": {
      "description": "Present when the call failed. Absent on success.",
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "JSON-RPC error code for this failure."
        },
        "message": {
          "type": "string",
          "description": "Human-readable description of what went wrong."
        },
        "data": {
          "type": "object",
          "properties": {
            "reason": {
              "type": "string",
              "description": "Machine-readable failure mode. Declared by this tool: `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.",
              "examples": [
                "invalid_query",
                "inspire_rate_limited",
                "pacer_shed",
                "upstream_unreadable"
              ]
            },
            "recovery": {
              "description": "Actionable next step for the caller.",
              "type": "object",
              "properties": {
                "hint": {
                  "type": "string"
                }
              },
              "required": [
                "hint"
              ],
              "additionalProperties": {}
            },
            "retryable": {
              "description": "Whether retrying may succeed.",
              "type": "boolean"
            }
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": {}
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "anyOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "required": [
        "authors",
        "totalCount",
        "truncated",
        "shown",
        "cap",
        "matchedAs"
      ]
    },
    {
      "required": [
        "error"
      ]
    }
  ]
}
🟢cern_inspire_get_citation_summary(author, query, document_types, subjects, year_from, ...)

Compute INSPIRE-HEP's citation summary for one author or for any literature query: h-index, citation totals, average citations per paper, and paper counts per citation bucket (0, 1–9, 10–49, 50–99, 100–249, 250–499, 500+), each for all citeable papers and for published papers, plus citations received per year. Pass exactly one of author (a BAI, ORCID, INSPIRE ID, or author recid — resolve a name with cern_inspire_search_authors first) or query (any INSPIRE literature query: a topic, collaboration, institution, or "a <BAI>"). Document type and subject filters narrow every figure. year_from and year_to narrow the summary to papers from those years, and exclude_self_citations recounts it without self-citations; any of them leaves out citations per year, which INSPIRE cannot narrow that way.

输入模式

{
  "type": "object",
  "properties": {
    "author": {
      "description": "One author identifier: INSPIRE BAI (Edward.Witten.1, exact and case-sensitive), ORCID (0000-0002-7752-6073 or an orcid.org URL), INSPIRE ID (INSPIRE-00136372), or author recid. Not a name — resolve names with cern_inspire_search_authors first. Pass this or query, not both.",
      "type": "string",
      "maxLength": 200
    },
    "query": {
      "description": "An INSPIRE literature query, e.g. \"collaboration:atlas\", \"t neutrino oscillation\", \"a Edward.Witten.1\", or \"affid:902725\" for an institution's papers (CERN; affid takes the institution recid that cern_inspire_search_authors and cern_inspire_search_experiments return). Literature queries do not match ORCIDs; pass an ORCID as author. Pass this or author, not both.",
      "type": "string",
      "maxLength": 1000
    },
    "document_types": {
      "description": "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.",
      "maxItems": 4,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "article",
          "published",
          "conference paper",
          "thesis",
          "review",
          "note",
          "proceedings",
          "lectures",
          "book chapter",
          "book",
          "introductory",
          "activity report",
          "report"
        ],
        "description": "An INSPIRE document type."
      }
    },
    "subjects": {
      "description": "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.",
      "maxItems": 4,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "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"
        ],
        "description": "An INSPIRE subject category."
      }
    },
    "year_from": {
      "description": "Earliest year to include (1900–2100, inclusive), matched on the earliest date INSPIRE records for the paper. Omit for no lower bound.",
      "type": "integer",
      "minimum": 1900,
      "maximum": 2100
    },
    "year_to": {
      "description": "Latest year to include (1900–2100, inclusive), matched on the earliest date INSPIRE records for the paper. Omit for no upper bound.",
      "type": "integer",
      "minimum": 1900,
      "maximum": 2100
    },
    "exclude_self_citations": {
      "description": "Count citations without self-citations (INSPIRE's definition), default false. Setting it leaves out citationsByYear, which always includes self-citations.",
      "default": false,
      "type": "boolean"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "properties": {
    "target": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "author",
            "query"
          ],
          "description": "author when an author identifier was resolved; query for a literature query."
        },
        "authorRecid": {
          "description": "INSPIRE author record ID the identifier resolved to (author target only).",
          "type": "string"
        },
        "authorName": {
          "description": "Name on the resolved author profile (author target only).",
          "type": "string"
        },
        "query": {
          "type": "string",
          "description": "The literature query summarized (\"authors.recid:N\" for an author target)."
        }
      },
      "required": [
        "kind",
        "query"
      ],
      "additionalProperties": false,
      "description": "What the summary covers."
    },
    "matchedRecords": {
      "type": "number",
      "description": "Literature records the query matched, citeable or not."
    },
    "citeablePapers": {
      "type": "number",
      "description": "Citeable papers among the matched records."
    },
    "hIndex": {
      "type": "object",
      "properties": {
        "all": {
          "type": "number",
          "description": "h-index over all citeable papers."
        },
        "published": {
          "type": "number",
          "description": "h-index over published papers."
        }
      },
      "required": [
        "all",
        "published"
      ],
      "additionalProperties": false,
      "description": "h-index for all citeable and for published papers."
    },
    "all": {
      "type": "object",
      "properties": {
        "papers": {
          "type": "number",
          "description": "Number of citeable papers."
        },
        "citations": {
          "type": "number",
          "description": "Citations to the citeable papers."
        },
        "averageCitations": {
          "description": "Mean citations per citeable paper; omitted when there are no papers.",
          "type": "number"
        }
      },
      "required": [
        "papers",
        "citations"
      ],
      "additionalProperties": false,
      "description": "Totals over citeable papers."
    },
    "published": {
      "type": "object",
      "properties": {
        "papers": {
          "type": "number",
          "description": "Number of published papers."
        },
        "citations": {
          "type": "number",
          "description": "Citations to the published papers."
        },
        "averageCitations": {
          "description": "Mean citations per published paper; omitted when there are no papers.",
          "type": "number"
        }
      },
      "required": [
        "papers",
        "citations"
      ],
      "additionalProperties": false,
      "description": "Totals over published papers."
    },
    "buckets": {
      "type": "object",
      "properties": {
        "all": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "range": {
                "type": "string",
                "enum": [
                  "0",
                  "1–9",
                  "10–49",
                  "50–99",
                  "100–249",
                  "250–499",
                  "500+"
                ],
                "description": "Citation-count range of the bucket."
              },
              "papers": {
                "type": "number",
                "description": "Papers whose citation count falls in the range."
              }
            },
            "required": [
              "range",
              "papers"
            ],
            "additionalProperties": false,
            "description": "One citation bucket."
          },
          "description": "Papers per citation range, over citeable papers."
        },
        "published": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "range": {
                "type": "string",
                "enum": [
                  "0",
                  "1–9",
                  "10–49",
                  "50–99",
                  "100–249",
                  "250–499",
                  "500+"
                ],
                "description": "Citation-count range of the bucket."
              },
              "papers": {
                "type": "number",
                "description": "Papers whose citation count falls in the range."
              }
            },
            "required": [
              "range",
              "papers"
            ],
            "additionalProperties": false,
            "description": "One citation bucket."
          },
          "description": "Papers per citation range, over published papers."
        }
      },
      "required": [
        "all",
        "published"
      ],
      "additionalProperties": false,
      "description": "Papers per citation range, for all citeable and for published papers."
    },
    "citationsByYear": {
      "description": "Citations per year in ascending order, each counted in the year of the citing record's earliest date, self-citations included, over every matched record (citeable or not), so the sum can exceed all.citations. A year without citations has no row, and the current year counts citations to date. Empty when nothing matched or no matched record is cited; omitted when year_from, year_to, or exclude_self_citations is set, when INSPIRE did not return the series, or when the query matches more than about 150,000 records, which INSPIRE cannot count in time, unless INSPIRE answers within about 2 s (a series it has cached).",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "year": {
            "type": "number",
            "description": "Year of the citing records' earliest date."
          },
          "citations": {
            "type": "number",
            "description": "Citations the matched records received from records of that year."
          }
        },
        "required": [
          "year",
          "citations"
        ],
        "additionalProperties": false,
        "description": "Citations received in one year."
      }
    },
    "effectiveQuery": {
      "type": "string",
      "description": "The literature query sent to INSPIRE."
    },
    "appliedFilters": {
      "type": "string",
      "description": "Filters applied, e.g. \"document_types=published; years=2012–2015; exclude_self_citations=true\", or \"none\"."
    },
    "notice": {
      "description": "Guidance when no citeable paper matched, or when citations per year were left out or could not be read.",
      "type": "string"
    },
    "error": {
      "description": "Present when the call failed. Absent on success.",
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "JSON-RPC error code for this failure."
        },
        "message": {
          "type": "string",
          "description": "Human-readable description of what went wrong."
        },
        "data": {
          "type": "object",
          "properties": {
            "reason": {
              "type": "string",
              "description": "Machine-readable failure mode. Declared by this tool: `missing_target`: Neither or both of author and query were given. `author_not_identifier`: author is not a BAI, ORCID, INSPIRE ID, or recid — usually a name. `author_not_found`: The author identifier matches no INSPIRE profile. `invalid_year_range`: year_from is later than year_to. `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.",
              "examples": [
                "missing_target",
                "author_not_identifier",
                "author_not_found",
                "invalid_year_range",
                "invalid_query",
                "inspire_rate_limited",
                "pacer_shed",
                "upstream_unreadable"
              ]
            },
            "recovery": {
              "description": "Actionable next step for the caller.",
              "type": "object",
              "properties": {
                "hint": {
                  "type": "string"
                }
              },
              "required": [
                "hint"
              ],
              "additionalProperties": {}
            },
            "retryable": {
              "description": "Whether retrying may succeed.",
              "type": "boolean"
            }
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": {}
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "anyOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "required": [
        "target",
        "matchedRecords",
        "citeablePapers",
        "hIndex",
        "all",
        "published",
        "buckets",
        "effectiveQuery",
        "appliedFilters"
      ]
    },
    {
      "required": [
        "error"
      ]
    }
  ]
}
🟢cern_inspire_search_experiments(query, limit)

Find experiments, collaborations, and facilities in INSPIRE-HEP (ATLAS, CMS, DUNE, Belle II, …) by name, accelerator, or INSPIRE legacy name (CERN-LHC-CMS); digits alone look up an experiment recid. Each record carries the accelerator, host institutions, collaboration and subgroups, classification, lifecycle dates (proposed, approved, started, completed, ongoing), INSPIRE's paper count, a description, and a literatureQuery to pass to cern_inspire_search_literature or cern_inspire_get_citation_summary for the experiment's papers.

输入模式

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Experiment, collaboration, accelerator, or facility name (ATLAS, LHCb, Tevatron), an INSPIRE legacy name (CERN-LHC-CMS), or an experiment recid (digits only)."
    },
    "limit": {
      "description": "Experiments to return (1–25, default 5).",
      "default": 5,
      "type": "integer",
      "minimum": 1,
      "maximum": 25
    }
  },
  "required": [
    "query"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "properties": {
    "experiments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "recid": {
            "type": "string",
            "description": "INSPIRE experiment record ID."
          },
          "legacyName": {
            "type": "string",
            "description": "INSPIRE legacy name (e.g. CERN-LHC-ATLAS), the key literatureQuery uses."
          },
          "name": {
            "description": "Experiment name (e.g. ATLAS), when recorded.",
            "type": "string"
          },
          "shortName": {
            "description": "Short form of the name, when recorded.",
            "type": "string"
          },
          "longName": {
            "description": "Full descriptive name, when recorded.",
            "type": "string"
          },
          "accelerator": {
            "description": "Accelerator the experiment runs at, when any.",
            "type": "string"
          },
          "institutions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Institution name."
                },
                "recid": {
                  "description": "INSPIRE institution record ID, when linked; pass affid:N, N being this ID, as the query of cern_inspire_search_literature or cern_inspire_get_citation_summary for the institution's papers.",
                  "type": "string"
                }
              },
              "required": [
                "name"
              ],
              "additionalProperties": false,
              "description": "One host institution."
            },
            "description": "Host institutions."
          },
          "collaboration": {
            "description": "The collaboration running the experiment, when recorded.",
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "Collaboration name."
              },
              "subgroups": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "Subgroup name."
                },
                "description": "Named subgroups of the collaboration."
              }
            },
            "required": [
              "name",
              "subgroups"
            ],
            "additionalProperties": false
          },
          "classification": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Classification path, e.g. \"Collider Experiments|Hadrons|p p\"."
            },
            "description": "INSPIRE classification paths."
          },
          "projectTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Project type."
            },
            "description": "Project types (e.g. experiment, collaboration, accelerator)."
          },
          "dateProposed": {
            "description": "Date proposed, when recorded.",
            "type": "string"
          },
          "dateApproved": {
            "description": "Date approved, when recorded.",
            "type": "string"
          },
          "dateStarted": {
            "description": "Date started, when recorded.",
            "type": "string"
          },
          "dateCompleted": {
            "description": "Date completed; omitted while ongoing or when unrecorded.",
            "type": "string"
          },
          "ongoing": {
            "description": "True when INSPIRE marks the experiment as still running, false when it records a completion date; omitted when INSPIRE records neither, so the status is unknown.",
            "type": "boolean"
          },
          "numberOfPapers": {
            "description": "INSPIRE's stored paper count; it can trail the number of records literatureQuery matches.",
            "type": "number"
          },
          "description": {
            "description": "Description as INSPIRE records it.",
            "type": "string"
          },
          "urls": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "description": "URL."
                },
                "description": {
                  "description": "Label INSPIRE gives the URL, when any.",
                  "type": "string"
                }
              },
              "required": [
                "url"
              ],
              "additionalProperties": false,
              "description": "One web link."
            },
            "description": "Web links."
          },
          "nameVariants": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Alternative name."
            },
            "description": "Alternative names INSPIRE matches."
          },
          "core": {
            "description": "True when INSPIRE marks the record as core HEP.",
            "type": "boolean"
          },
          "literatureQuery": {
            "description": "Literature query selecting this experiment's papers; pass to cern_inspire_search_literature, or as query to cern_inspire_get_citation_summary. Absent when the record has no legacy name, or the name holds a quote or backslash that cannot sit inside the query's quoted clause.",
            "type": "string"
          }
        },
        "required": [
          "recid",
          "legacyName",
          "institutions",
          "classification",
          "projectTypes",
          "urls",
          "nameVariants"
        ],
        "additionalProperties": false,
        "description": "One matching experiment record."
      },
      "description": "Matching experiment records, in INSPIRE relevance order."
    },
    "totalCount": {
      "type": "number",
      "description": "Total experiment records the query matched."
    },
    "truncated": {
      "type": "boolean",
      "description": "True when more records matched than were returned."
    },
    "shown": {
      "type": "number",
      "description": "Number of records returned."
    },
    "cap": {
      "type": "number",
      "description": "The limit applied."
    },
    "notice": {
      "description": "Guidance on an empty or capped result.",
      "type": "string"
    },
    "error": {
      "description": "Present when the call failed. Absent on success.",
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "JSON-RPC error code for this failure."
        },
        "message": {
          "type": "string",
          "description": "Human-readable description of what went wrong."
        },
        "data": {
          "type": "object",
          "properties": {
            "reason": {
              "type": "string",
              "description": "Machine-readable failure mode. Declared by this tool: `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.",
              "examples": [
                "invalid_query",
                "inspire_rate_limited",
                "pacer_shed",
                "upstream_unreadable"
              ]
            },
            "recovery": {
              "description": "Actionable next step for the caller.",
              "type": "object",
              "properties": {
                "hint": {
                  "type": "string"
                }
              },
              "required": [
                "hint"
              ],
              "additionalProperties": {}
            },
            "retryable": {
              "description": "Whether retrying may succeed.",
              "type": "boolean"
            }
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": {}
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "anyOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "required": [
        "experiments",
        "totalCount",
        "truncated",
        "shown",
        "cap"
      ]
    },
    {
      "required": [
        "error"
      ]
    }
  ]
}
🟢cern_inspire_search_hepdata(query, sort, page, size)

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.

输入模式

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000,
      "description": "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."
    },
    "sort": {
      "description": "Result order: relevance (default) or mostrecent.",
      "default": "relevance",
      "type": "string",
      "enum": [
        "relevance",
        "mostrecent"
      ]
    },
    "page": {
      "description": "Page number, starting at 1. page × size may not exceed 10,000.",
      "default": 1,
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "size": {
      "description": "Records per page (1–50, default 10).",
      "default": 10,
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "required": [
    "query"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "properties": {
    "records": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "inspireDataRecid": {
            "type": "string",
            "description": "Record ID of the HEPData entry in INSPIRE's data collection."
          },
          "title": {
            "type": "string",
            "description": "Title of the HEPData submission (usually the paper title) as text: publisher markup converted (scripts as _x or ^{xy}), LaTeX left as published."
          },
          "paperRecids": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "INSPIRE literature record ID."
            },
            "description": "Literature records the data belongs to; pass to cern_inspire_get_paper."
          },
          "collaborations": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Collaboration name."
            },
            "description": "Collaborations credited."
          },
          "experiments": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "INSPIRE experiment legacy name."
            },
            "description": "Experiments credited, by INSPIRE legacy name."
          },
          "keywords": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Keyword as INSPIRE stores it, e.g. \"cmenergies: 13000.0-13000.0\"."
            },
            "description": "HEPData keywords: reactions, observables, phrases, centre-of-mass energies."
          },
          "abstractSnippet": {
            "description": "Start of the first abstract with text, as text (numeric character references and 13 common named entities such as &lt; and &amp; decoded, other named entities left as written; publisher markup converted; LaTeX left as published), up to 300 characters at a word boundary.",
            "type": "string"
          },
          "abstractTruncated": {
            "description": "True when the abstract continues past the snippet.",
            "type": "boolean"
          },
          "recordDoi": {
            "description": "HEPData record DOI; cite it when reusing the data.",
            "type": "string"
          },
          "hepdataRecid": {
            "description": "HEPData record number, parsed from the record DOI: the N in hepdata.net/record/N. It is not an INSPIRE recid; pass one of paperRecids to cern_inspire_get_paper.",
            "type": "string"
          },
          "latestVersion": {
            "description": "Latest HEPData record version.",
            "type": "number"
          },
          "tableCount": {
            "description": "Number of tables in the latest version.",
            "type": "number"
          },
          "hepdataUrl": {
            "description": "The HEPData record page on hepdata.net, where the table values are read: keyed by hepdataRecid, or by the first of paperRecids (/record/ins followed by that recid) when the record DOI names no number.",
            "type": "string"
          },
          "created": {
            "description": "Date INSPIRE created the data record.",
            "type": "string"
          },
          "citationCount": {
            "description": "Citations INSPIRE counts for the data record.",
            "type": "number"
          }
        },
        "required": [
          "inspireDataRecid",
          "title",
          "paperRecids",
          "collaborations",
          "experiments",
          "keywords"
        ],
        "additionalProperties": false,
        "description": "One matching HEPData record."
      },
      "description": "The HEPData records on this page, in the requested order."
    },
    "page": {
      "type": "number",
      "description": "The page returned."
    },
    "size": {
      "type": "number",
      "description": "The page size requested."
    },
    "hasMore": {
      "type": "boolean",
      "description": "True when INSPIRE has a further page of results."
    },
    "totalCount": {
      "type": "number",
      "description": "Total HEPData records the query matched."
    },
    "truncated": {
      "type": "boolean",
      "description": "True when more results exist beyond this page."
    },
    "shown": {
      "type": "number",
      "description": "Number of records on this page."
    },
    "cap": {
      "type": "number",
      "description": "The page size applied."
    },
    "nextPage": {
      "description": "The page number to request next, when one exists within the 10,000-result window.",
      "type": "number"
    },
    "notice": {
      "description": "Guidance on an empty or paged result.",
      "type": "string"
    },
    "error": {
      "description": "Present when the call failed. Absent on success.",
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "JSON-RPC error code for this failure."
        },
        "message": {
          "type": "string",
          "description": "Human-readable description of what went wrong."
        },
        "data": {
          "type": "object",
          "properties": {
            "reason": {
              "type": "string",
              "description": "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.",
              "examples": [
                "beyond_result_window",
                "invalid_query",
                "inspire_rate_limited",
                "pacer_shed",
                "upstream_unreadable"
              ]
            },
            "recovery": {
              "description": "Actionable next step for the caller.",
              "type": "object",
              "properties": {
                "hint": {
                  "type": "string"
                }
              },
              "required": [
                "hint"
              ],
              "additionalProperties": {}
            },
            "retryable": {
              "description": "Whether retrying may succeed.",
              "type": "boolean"
            }
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": {}
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "anyOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "required": [
        "records",
        "page",
        "size",
        "hasMore",
        "totalCount",
        "truncated",
        "shown",
        "cap"
      ]
    },
    {
      "required": [
        "error"
      ]
    }
  ]
}
🟢cern_inspire_list_reference(topic)

Decode the vocabulary the other cern_inspire tools take: INSPIRE search syntax (field operators, boolean logic, sort orders, the 10,000-result window, and how malformed queries behave), identifier forms (recid, arXiv, DOI, BAI, ORCID, INSPIRE ID, institution recid, texkey, HEPData DOIs), the document_types and subjects filter values, citation-summary buckets, and HEPData record versions and DOIs. Static content with no upstream call; use it to build a query or to recover from an empty or unexpectedly broad result.

输入模式

{
  "type": "object",
  "properties": {
    "topic": {
      "type": "string",
      "enum": [
        "search_syntax",
        "identifiers",
        "document_types",
        "subjects",
        "citation_buckets",
        "hepdata"
      ],
      "description": "Which vocabulary to decode: search_syntax (query operators and rules), identifiers (paper, author, experiment, institution, and HEPData identifier forms), document_types, subjects, citation_buckets (citation-summary ranges and terms), or hepdata (record versions, DOIs, and licence)."
    }
  },
  "required": [
    "topic"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "properties": {
    "topic": {
      "type": "string",
      "enum": [
        "search_syntax",
        "identifiers",
        "document_types",
        "subjects",
        "citation_buckets",
        "hepdata"
      ],
      "description": "The topic decoded."
    },
    "entries": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "term": {
            "type": "string",
            "description": "The operator, identifier form, value, or concept."
          },
          "meaning": {
            "type": "string",
            "description": "What it means and how the tools use it."
          },
          "example": {
            "description": "A working example, when one applies.",
            "type": "string"
          }
        },
        "required": [
          "term",
          "meaning"
        ],
        "additionalProperties": false,
        "description": "One vocabulary entry."
      },
      "description": "The entries for the topic."
    },
    "error": {
      "description": "Present when the call failed. Absent on success.",
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "JSON-RPC error code for this failure."
        },
        "message": {
          "type": "string",
          "description": "Human-readable description of what went wrong."
        },
        "data": {
          "type": "object",
          "properties": {
            "reason": {
              "type": "string",
              "description": "Machine-readable failure mode."
            },
            "recovery": {
              "description": "Actionable next step for the caller.",
              "type": "object",
              "properties": {
                "hint": {
                  "type": "string"
                }
              },
              "required": [
                "hint"
              ],
              "additionalProperties": {}
            },
            "retryable": {
              "description": "Whether retrying may succeed.",
              "type": "boolean"
            }
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": {}
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "anyOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "required": [
        "topic",
        "entries"
      ]
    },
    {
      "required": [
        "error"
      ]
    }
  ]
}

社区

评价此服务器

证据

最近观测

已验证未记录版本8 个工具