Skip to main content
Glama
pubverify-mcp

pubverify-mcp

format_citations

Convert PMID lists into official PubMed NLM, AMA, APA, MLA, BibTeX, or RIS citations and clean HTML sub/sup tags to Unicode for accurate references.

Instructions

Export official PubMed NLM, AMA, APA, or MLA citations (via NCBI Citation Exporter) or BibTeX / RIS entries for a list of PMIDs. Automatically converts HTML / tags (e.g. RuO2) to clean Unicode text.

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": {
      "pmids": "<pmids>"
    },
    "name": "format_citations"
  }
}

Input Schema

NameRequiredDescriptionDefault
pmidsYesList of numeric PMIDs (up to 50).
styleNoCitation format (default 'nlm').nlm
clean_htmlNoConvert inline HTML <sub>/<sup> tags to clean Unicode (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden. It usefully discloses the external NCBI Citation Exporter dependency and the HTML-to-Unicode transformation, but says nothing about failure behavior for invalid PMIDs, rate limits, or whether output is one combined block versus per-PMID entries. Partial but not thorough disclosure for a zero-annotation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with zero filler; the primary capability (citation export for PMIDs) is front-loaded and the transformation caveat follows. Every clause contributes information.

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

Completeness3/5

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

For a 3-parameter tool with no annotations and no output schema, the description covers inputs and the transformation but omits what is returned (a single string? a list aligned to PMIDs?) and how partial failures are handled. Reasonably complete, but the output contract is left undefined.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents pmids, style, and clean_html, and the baseline is 3. The description reinforces the format list and adds the concrete RuO2 example for HTML conversion, but adds no syntax or constraint detail beyond what the schema states.

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 ('Export official PubMed ... citations ... or BibTeX / RIS entries for a list of PMIDs') and even names the backing service (NCBI Citation Exporter). This clearly separates it from verify_citations, but the description never explicitly contrasts the two, so the separation is inferred rather than stated.

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 only implied by 'for a list of PMIDs'; there is no explicit when-to-use statement, no guidance on choosing format_citations over verify_citations or search_pubmed, and no stated prerequisite such as PMIDs needing to be valid or resolvable. Adequate but leaves routing to the agent.

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