Skip to main content
Glama

cern-inspire-mcp-server

Search INSPIRE institutions

cern_inspire_search_institutions
Read-onlyIdempotent

Find institutions in INSPIRE-HEP (universities, departments, laboratories) by name words, an exact recorded name, or recid, for the recid that affid:N takes. Free text (University of Washington, Tokyo) returns candidates in INSPIRE's order, not by size: a university's papers often sit under department records whose parent is its "(main)" record, so pick from each record's hierarchy, paper count, and related records, and page on before concluding a unit is absent. legacy_ICN:"NAME" matches one recorded name exactly and case-sensitively (legacy_ICN:"Tokyo U."), using the name in an affiliation from cern_inspire_get_paper (authors[].affiliations[].name or supervisors[].affiliations[].name). If that affiliation has a recid, pass it directly as the query. Each record carries that recorded name (legacyIcn, which aff NAME matches), hierarchy, institution types, cities, country codes, INSPIRE's paper count, parent, successor, and predecessor links, inactive status, and a literatureQuery (affid:N) for cern_inspire_search_literature or cern_inspire_get_citation_summary. affid:N matches one record; join several with or. Returns one page of records; request the next with page and the same limit. 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_institutions"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, starting at 1. page × effective limit (after clamping) may not exceed 10,000.
limitNoInstitutions per page (positive integer, default 25; above 1000 uses 1000).
queryYesInstitution name words (University of Washington, Tokyo); one exact recorded name as legacy_ICN:"NAME" (case-sensitive, e.g. legacy_ICN:"Tokyo U."; legacy_ICN clauses joined with or match nothing); or an institution recid (digits only).

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / limit / description
      Previous value: -"Institutions per page (positive integer, default 25; above 25 uses 25)."New value: +"Institutions per page (positive integer, default 25; above 1000 uses 1000)."
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld/idempotent annotations by disclosing result ordering ('INSPIRE's order, not by size'), the hierarchy pitfall where papers sit under department records whose parent is the '(main)' record, and the hard cap that only the first 10,000 results are reachable. Paging semantics ('request the next with page and the same limit') are stated explicitly.

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 free-text caveat are front-loaded, and nearly every sentence carries operational information. It is dense to the point of being run-on in the middle section, where the legacy_ICN / record-field naming ('legacyIcn, which aff NAME matches') is restated in compressed form and costs the reader a re-read.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Output schema exists, so return format need not be explained, yet the description still names the useful fields (hierarchy, paper count, parent/successor/predecessor, inactive status, literatureQuery) so the agent knows what to inspect for disambiguation. Combined with the 10,000-result cap and paging rules, nothing needed to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description adds real query-construction semantics beyond the schema, notably that legacy_ICN matching is case-sensitive, that legacy_ICN clauses joined with 'or' match nothing, and that multiple affid:N values join with 'or'. It adds less for page/limit than for query.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Find institutions in INSPIRE-HEP') and enumerates the three accepted query modes: name words, an exact recorded name, or recid. It also disambiguates downstream siblings by naming cern_inspire_search_literature, cern_inspire_get_citation_summary, and cern_inspire_get_paper in the role they play relative to this tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-to-use guidance for each mode, including the workflow 'use the name in an affiliation from cern_inspire_get_paper' and 'If that affiliation has a recid, pass it directly as the query.' It also warns against a false negative ('page on before concluding a unit is absent'), which is exactly the kind of exclusion an agent needs.

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.