Skip to main content
Glama

Format citations

format_citations
Read-onlyIdempotent

Format references in a citation style (APA 7, MLA 9, Chicago author-date, Harvard, Vancouver, IEEE, AMA) or export them as BibTeX, RIS or CSL-JSON. By default every reference is first verified against Crossref, PubMed and OpenAlex, and verified references are formatted from the database record, so wrong years, pages or author names in the input are corrected. References that could not be verified are formatted exactly as written and flagged in entries[].warnings. Returns the bibliography and, for text and html output, the matching in-text citation for each reference.

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

Input Schema

NameRequiredDescriptionDefault
styleNoCitation style: apa (APA 7), mla (MLA 9), chicago (Chicago author-date), harvard (Harvard), vancouver (Vancouver), ieee (IEEE), ama (AMA). Ignored for bibtex/ris/csl-json output.apa
outputNotext (plain bibliography), html, bibtex, ris or csl-json.text
verifyNoVerify each reference before formatting (recommended). When false, references are formatted exactly as given, without corrections.
referencesYesReferences in any form: a pasted list in any style, BibTeX, RIS, CSL-JSON, or DOIs one per line.

Output Schema

NameRequiredDescriptionDefault
quotaNo
styleYes
outputYes
contentYes
entriesYes
warningsYes
style_titleYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 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 / index / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / entries / items / properties / index / minimum
      Added value: +-9007199254740991
    • 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
  2. Changed1 schema field changed
    • addedOutput schema / properties / quota / properties / hint
      Added value: +{
      +  "enum": [
      +    "low",
      +    "intro"
      +  ],
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedOutput schema / properties / quota / properties / upgrade
      Added value: +{
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedOutput schema / properties / quota / properties / plan / enum
      Previous value: -[
      -  "anon",
      -  "free"
      -]New value: +[
      +  "anon",
      +  "free",
      +  "pro"
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / verify / description
      Previous value: -"Verify each reference before formatting (recommended). Set false only for references already verified in this conversation; they are then formatted exactly as given."New value: +"Verify each reference before formatting (recommended). When false, references are formatted exactly as given, without corrections."
  6. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that references are verified against Crossref, PubMed, and OpenAlex by default, that verified records are corrected from database data, and that unverified references are formatted exactly as written and flagged in entries[].warnings. It also states that text and HTML output include matching in-text citations.

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?

The description is four dense sentences: purpose first, then verification behavior, then unverified handling, then return behavior. Every sentence adds useful information and there is no redundant filler.

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 read-only formatting/export tool with an output schema and complete annotation coverage, the description supplies the important non-schema context: external verification sources, correction behavior, warning flags, and in-text citation output. No critical gap remains for correct invocation.

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 style, output, verify, and references semantics. The description reinforces the style and output options and explains the consequence of verification, but adds little parameter meaning beyond what the schema already provides.

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: format references in named citation styles or export as BibTeX/RIS/CSL-JSON. It is immediately clear what the tool does, but it does not explicitly distinguish itself from siblings such as verify_references or audit_bib when only verification or auditing is needed.

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 default formatting and verification behavior, but there is no explicit when-to-use or when-not-to-use guidance relative to verify_references or audit_bib. An agent can infer this is the formatting tool, but must rely on context rather than stated alternatives.

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.