Skip to main content
Glama
InspireHEP MCP Server

InspireHEP MCP Server

Get BibTeX

get_bibtex
Read-onlyIdempotent

Retrieve BibTeX citation entries for papers by passing a DOI, arXiv ID, or InspireHEP record ID, returning formatted references with title and texkey.

Instructions

Retrieve the BibTeX citation entry for a paper.

Accepts any common identifier format:

  • Inspire ID: "3456"

  • arXiv ID: "arxiv:2301.12345", "arxiv:hep-ph/0123456", or full URL

  • DOI: "10.1103/PhysRevLett.123.456789" or full URL

Args: identifier: A DOI, arXiv ID, or InspireHEP record ID.

Returns the BibTeX entry along with paper title, texkey, and the resolved Inspire record ID.

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": {
      "identifier": "<identifier>"
    },
    "name": "get_bibtex"
  }
}

Input Schema

NameRequiredDescriptionDefault
identifierYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.0
    • addedInput schema / properties / identifier / maxLength
      Added value: +512
    • addedInput schema / properties / identifier / minLength
      Added value: +1
  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: -"get_bibtexOutput"New value: +"get_bibtexDictOutput"
  3. First observedv0.1.4

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds useful behavioral detail about which identifier shapes are accepted and what comes back, but says nothing about failure modes when an identifier cannot be resolved or about the network lookup implied by openWorldHint.

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?

Front-loaded with the core purpose, then a scannable bullet list of accepted identifier formats, then args and returns. The Args line partially duplicates the format bullets, which is the only real waste; everything else earns its place.

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

Completeness4/5

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

For a single-parameter lookup with an output schema and full annotation coverage, this covers identifier syntax and expected return contents well. The remaining gap is behavior on unresolvable or ambiguous identifiers, which an agent would want to know before retrying blindly.

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 description coverage is 0%, so the description has to carry the parameter meaning, and it does: it enumerates concrete Inspire ID, arXiv ID (including the hep-ph/ legacy form and full URL) and DOI formats. The Args line restates the same set slightly more tersely, without adding validation or error semantics for malformed input.

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 — 'Retrieve the BibTeX citation entry for a paper' — which is immediately distinguishable from siblings like get_paper_details or get_references by the artifact it returns. It stops short of explicitly naming a sibling for contrast, so it lands just under a 5.

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

Usage Guidelines3/5

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

Usage is implied by the resource: call it when you need a citation string rather than full metadata. There is no explicit when-to-use or when-not-to-use guidance, and no mention of the siblings an agent might pick instead for citation-adjacent needs such as get_references.

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