Skip to main content
Glama

Generate Normalized BibTeX from DOIs, PMIDs, or arXiv IDs

generate_bibtex
Read-onlyIdempotent

Convert DOI, PubMed PMID, and arXiv identifiers into clean BibTeX entries in input order, returning unresolved IDs separately so batch citation formatting can continue.

Instructions

Read-only, idempotent batch formatter that resolves an array of DOIs, PubMed PMIDs, or arXiv IDs in input order against Crossref, DataCite, PubMed, and arXiv and formats each into a deterministic @article{...} BibTeX entry (authorSurnameYearFirstword key). Partial failures never abort the batch: unresolvable identifiers are omitted from the bibtex string and listed in the failed array. Returns a JSON object with resolved_count (int), failed (array of unresolved identifier strings), and bibtex (newline-separated BibTeX blocks). When to use: use generate_bibtex when you already have one or more known DOIs/PMIDs/arXiv IDs and only need clean BibTeX output. Use verify_citation instead if you need chimera title/author/year mismatch checking.

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": {
      "identifiers": "<identifiers>"
    },
    "name": "generate_bibtex"
  }
}

Input Schema

NameRequiredDescriptionDefault
identifiersYesOrdered list of identifiers to convert to BibTeX: DOIs (e.g. '10.1038/s41586-021-03819-2'), PubMed IDs (e.g. 'PMID:34265844'), or arXiv IDs (e.g. 'arXiv:1706.03762').

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / identifiers / description
      Previous value: -"List of DOIs, PMIDs (e.g. 'PMID:34265844'), or arXiv IDs (e.g. 'arXiv:1706.03762')."New value: +"Ordered list of identifiers to convert to BibTeX: DOIs (e.g. '10.1038/s41586-021-03819-2'), PubMed IDs (e.g. 'PMID:34265844'), or arXiv IDs (e.g. 'arXiv:1706.03762')."
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover readOnly/openWorld/idempotent/non-destructive, and the description adds value beyond them: the upstream sources (Crossref, DataCite, PubMed, arXiv), input-order resolution, deterministic key construction, and the crucial partial-failure contract that unresolvable IDs never abort the batch. It also spells out the return object shape, which matters since no output schema exists.

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?

Dense but front-loaded, with the operation first, failure semantics second, and the alternative last. Every sentence carries information; the only minor cost is a long run-on paragraph that could be split for scanability.

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?

For a single-parameter batch formatter with no output schema, the description covers behavior, source routing, failure handling, return shape, and the competing sibling. Nothing an agent needs in order to invoke it 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% and the single parameter is well documented, so the baseline is 3. The description still adds semantics beyond the schema: identifiers are resolved in input order and invalid ones are tolerated rather than fatal, which changes how an agent should batch calls.

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+resource: resolves an array of DOIs/PMIDs/arXiv IDs and formats each into a deterministic `@article{...}` BibTeX entry. It also names the exact key pattern and the sibling it is not (`verify_citation`), so an agent can distinguish it without opening either schema.

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?

Explicit routing: use when you already have known identifiers and only need clean BibTeX output; use `verify_citation` instead if mismatch checking is needed. Both the when and the when-not are stated, with the discriminating condition.

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