Skip to main content
Glama

Audit All Citations in a Document (Markdown, LaTeX, BibTeX)

audit_document_citations
Read-onlyIdempotent

Validate all citations in a Markdown, LaTeX, BibTeX, or plain-text document, detecting fabricated, mismatched, and retracted references and returning an integrity report.

Instructions

Read-only, idempotent bulk citation auditor that extracts all inline DOIs, PubMed PMIDs, arXiv IDs, and BibTeX @article{...} entries from a Markdown, LaTeX, BibTeX, or draft text block and verifies each concurrently (up to 6 parallel workers) against Crossref, DataCite, PubMed, OpenAlex, and arXiv. Returns a JSON report containing total_citations, verified_count, chimera_count (real identifier paired with mismatched BibTeX title/author/year), fabricated_count (unresolvable identifiers), retracted_count, integrity_score (0.0 to 100.0 percentage), per-citation results, and a human-readable summary. If no citations are present, returns total_citations: 0 and integrity_score: 100.0. When to use: use audit_document_citations to validate an entire manuscript, bibliography, or LLM response at once. For checking a single DOI/PMID/arXiv ID with specific claimed metadata, use verify_citation instead.

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": {
      "text": "<text>"
    },
    "name": "audit_document_citations"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesFull Markdown, LaTeX, BibTeX (`.bib`), or plain-text document containing inline DOIs ('10.xxxx/...'), PMIDs ('PMID:12345678'), arXiv IDs ('arXiv:2103.00020'), or BibTeX entries.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / text / description
      Previous value: -"Full text (Markdown, LaTeX, BibTeX, or draft response) containing citations to audit."New value: +"Full Markdown, LaTeX, BibTeX (`.bib`), or plain-text document containing inline DOIs ('10.xxxx/...'), PMIDs ('PMID:12345678'), arXiv IDs ('arXiv:2103.00020'), or BibTeX entries."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered; the description goes beyond that by disclosing the concurrency model (up to 6 parallel workers), the five upstream providers queried, and the exact semantics of `chimera_count`, `fabricated_count`, and `retracted_count`. The zero-citation edge case (`total_citations: 0`, `integrity_score: 100.0`) is a genuinely useful behavioral disclosure an agent could not infer. It stops short of discussing rate limits, partial-failure behavior when a provider is down, or latency, which keeps it off a 5.

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 correctly — the identity and scope come first, then mechanics, then return shape, then the routing rule. It is dense rather than padded, though the enumeration of every return field makes the middle sentence long and would read better as a short list. Given there is no output schema, that enumeration largely earns its place.

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?

With no output schema, the description must carry the return contract, and it does: named count fields, the `integrity_score` range, per-citation `results`, and a `summary`. Combined with explicit source coverage, concurrency, and the empty-input edge case, an agent has everything needed to call this correctly and interpret the result.

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?

With one parameter at 100% schema coverage, the schema already carries the full burden, so the baseline is high. The description reinforces the identifier syntax and accepted formats and adds the notion of a "draft text block," but contributes no new syntax details beyond the schema's examples.

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?

Opens with a specific verb+resource ("bulk citation auditor") and immediately narrows scope to the accepted formats (Markdown, LaTeX, BibTeX, draft text) and identifier types (DOI, PMID, arXiv ID, BibTeX entries). It explicitly contrasts itself with the sibling `verify_citation`, so an agent can route between bulk and single-citation checks 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?

The "When to use" clause is explicit: whole manuscripts, bibliographies, or LLM responses go here; a single DOI/PMID/arXiv ID with specific claimed metadata goes to `verify_citation`. It names both the positive case and the alternative, which is the strongest form of routing guidance.

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