Skip to main content
Glama

Audit a .bib file

audit_bib
Read-onlyIdempotent

Audit a BibTeX (.bib) file: check every entry against Crossref, PubMed and OpenAlex, including retractions, and report the result per citation key. Each key gets one status: verified, verified_with_corrections (real paper, some fields wrong), likely_fabricated, not_found (could not be confirmed either way), retracted, or ambiguous. Also reports duplicate citation keys and the same DOI under two keys. Returns corrected_bib: the same file with confirmed field corrections applied and a % audit_bib comment above every entry that was not verified cleanly; keys and fields that were not wrong are left exactly as written, and an entry that could not be confirmed is never rewritten. At most 50 entries per call.

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": {
      "bib": "<bib>"
    },
    "name": "audit_bib"
  }
}

Input Schema

NameRequiredDescriptionDefault
bibYesThe contents of the .bib file (BibTeX or BibLaTeX).

Output Schema

NameRequiredDescriptionDefault
quotaYes
entriesYes
skippedYesEntries with no citation key, which were not checked.
summaryYes
checked_atYes
corrected_bibYes
duplicate_doisYesA DOI cited under more than one key.
duplicate_keysYesCitation keys used by more than one entry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed28 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / properties / entries / items / properties / corrected / properties / year / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / entries / items / properties / corrected / properties / year / minimum
      Added value: +-9007199254740991
    • changedOutput schema / properties / entries / items / properties / links / additionalProperties
      Previous value: -trueNew value: +{}
    • addedOutput schema / properties / quota / properties / limit / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / quota / properties / limit / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / quota / properties / used / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / quota / properties / used / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / skipped / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / skipped / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / summary / properties / ambiguous / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / summary / properties / ambiguous / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / summary / properties / likely_fabricated / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / summary / properties / likely_fabricated / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / summary / properties / not_checked / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / summary / properties / not_checked / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / summary / properties / not_found / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / summary / properties / not_found / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / summary / properties / retracted / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / summary / properties / retracted / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / summary / properties / total / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / summary / properties / total / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / summary / properties / verified / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / summary / properties / verified / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / summary / properties / verified_with_corrections / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / summary / properties / verified_with_corrections / minimum
      Added value: +-9007199254740991
  2. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive, open-world), the description discloses the exact status taxonomy, that duplicates and duplicate DOIs are reported, that confirmed corrections are applied in corrected_bib, that entries not verified cleanly get a '% audit_bib' comment, and that unconfirmed entries are never rewritten. That last point is a critical mutation-safety guarantee the annotations alone do not convey.

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?

The scope and status list are front-loaded, and each sentence carries operational content (statuses, duplicates, corrected_bib behavior, entry cap). The status enumeration is dense but earns its place as the tool's result vocabulary; only mild tightening is possible.

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 one-input tool with an output schema, this definition covers everything an agent needs: what is checked, the possible outcomes, side effects on the returned file, and the per-call limit. The corrected_bib explanation adds semantics that an output schema would not convey, notably the never-rewrite guarantee.

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?

The single parameter is fully documented in the schema, so the baseline is 3; the description adds real meaning by clarifying that the input is the whole file contents and by imposing a 50-entry semantic limit that is not expressed in the schema. It stops short of specifying what happens past 50 entries.

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?

The description opens with a specific verb and resource ('Audit a BibTeX (.bib) file') and enumerates the sources checked (Crossref, PubMed, OpenAlex) plus retraction checking, so the agent knows exactly what the tool does. It does not name a sibling such as verify_references or check_retractions to explicitly draw the boundary, which keeps it just short of 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 detailed outcome vocabulary and by the operational cap 'At most 50 entries per call', which tells the agent to batch large files. However, there is no explicit statement of when to prefer this over verify_references or check_retractions, and no when-not guidance.

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.