Skip to main content
Glama
InspireHEP MCP Server

InspireHEP MCP Server

Search Papers

search_papers
Read-onlyIdempotent

Search InspireHEP for papers using free-text or field-specific queries, with sorting by relevance, recency, or citations and support for paging and compact results.

Instructions

Search InspireHEP for papers matching a query.

Supports free-text and field-specific queries such as:

  • "dark matter direct detection"

  • "author:ellis title:higgs"

  • "collaboration:ATLAS supersymmetry"

  • "find a weinberg and t electroweak"

Args: query: Search query string. sort: Sort order — "bestmatch", "mostrecent", or "mostcited". size: Number of results to return (1-100, default 10). page: One-based result page. Keep query, size, and sort fixed when paging. compact: Return identifiers, title, date, citation count and source URL only.

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": "search_papers"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoOne-based result page; keep size and sort fixed.
sizeNo
sortNobestmatch
queryYes
compactNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.4.0
    • addedInput schema / properties / compact
      Added value: +{
      +  "default": false,
      +  "title": "Compact",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / page
      Added value: +{
      +  "default": 1,
      +  "description": "One-based result page; keep size and sort fixed.",
      +  "minimum": 1,
      +  "title": "Page",
      +  "type": "integer"
      +}
    • addedInput schema / properties / query / maxLength
      Added value: +2048
    • addedInput schema / properties / query / minLength
      Added value: +1
    • addedInput schema / properties / size / maximum
      Added value: +100
    • addedInput schema / properties / size / minimum
      Added value: +1
    • addedInput schema / properties / sort / enum
      Added value: +[
      +  "bestmatch",
      +  "mostrecent",
      +  "mostcited"
      +]
  2. Changed4 schema fields changedv0.3.0
    • addedOutput schema / additionalProperties
      Added value: +true
    • removedOutput schema / properties
      Removed value: -{
      -  "result": {
      -    "title": "Result",
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "result"
      -]
    • changedOutput schema / title
      Previous value: -"search_papersOutput"New value: +"search_papersDictOutput"
  3. First observedv0.1.4

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint and destructiveHint=false, so the safety profile is fully covered. The description adds two genuine behaviors beyond that: what compact returns and the stability constraint while paging. With annotations carrying the safety burden and an output schema present, this is solid but not distinctive.

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 examples are front-loaded, and the Args block is scannable. Minor waste: the Args section restates schema facts (1-100 range, default 10) that the schema already encodes, and the fourth example ("find a weinberg and t electroweak") is obscure enough that its value is questionable.

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

Completeness4/5

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

For an open-world, single-required-param search tool with an output schema, the definition covers the query dialect, paging discipline, and the compact-mode tradeoff, which is what an agent needs to call it correctly. Nothing critical is missing; only explicit sibling routing would make it fully complete.

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

Parameters5/5

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

Schema description coverage is only 20%, so the description must compensate, and it does: every one of the five parameters is explained, including the sort enum values, the size range and default, the one-based page with its paging caveat, and the otherwise undocumented effect of compact on returned fields. This adds meaning well beyond the raw schema.

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

Purpose4/5

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

States a specific verb and resource ("Search InspireHEP for papers matching a query") and shows the query dialect, so an agent knows exactly what the tool retrieves. It does not, however, distinguish itself from the sibling search_by_collaboration, which the shown "collaboration:ATLAS" query example arguably overlaps with.

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

Usage Guidelines4/5

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

Gives concrete usage context via query-syntax examples and an explicit paging rule ("keep query, size, and sort fixed when paging"), which is real guidance an agent can act on. It stops short of naming when to prefer a sibling such as search_by_collaboration or get_author_papers.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.