Skip to main content
Glama

format_citation

Read-only

Formats PubMed article citations in APA, Vancouver, Harvard, or BibTeX styles and flags retracted publications.

Instructions

Format a citation for a PubMed article in APA, Vancouver, Harvard, or BibTeX style. Flags the article if it has been retracted.

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": {
      "pmid": "<pmid>"
    },
    "name": "format_citation"
  }
}

Input Schema

NameRequiredDescriptionDefault
pmidYesPubMed ID
styleNoCitation styleapa

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.5.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already state readOnlyHint=true, openWorldHint=true, and destructiveHint=false, so the safety profile is covered. The description adds useful behavior by noting that retracted articles are flagged, but it does not describe the output format, how the flag appears, or what happens for invalid PMIDs.

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 two tight sentences with no wasted wording. The core action and supported styles are front-loaded, and the retraction flag is a relevant secondary detail.

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

Completeness4/5

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

For a simple two-parameter, read-only tool with full schema coverage and annotations, the description is largely complete. The only meaningful gap is that it does not describe the response shape, especially how the retraction flag is presented, though no output schema exists to cover that.

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 both parameters are already documented, including the style enum and default. The description lists the same styles but adds no syntax, format, or validation detail beyond the schema.

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 states a specific verb and resource ("Format a citation for a PubMed article") and lists supported styles, making the tool's function clear. It does not name a sibling alternative, but no sibling appears to be a direct citation formatter, so differentiation is less critical here.

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 tool's narrow scope, but the description provides no explicit when-to-use or when-not-to-use guidance. It also does not clarify whether this should be preferred over check_references or other reference-related siblings in any workflow.

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