Skip to main content
Glama

In text citation

in_text_citation
Read-only

Generate APA, MLA, Chicago, Harvard, or IEEE in-text citations from author/year or DOI/ISBN, with optional page numbers and narrative form.

Instructions

The in text citation that goes with a source, with an optional page number and an optional narrative form for a sentence where the author is named. Give authors and year, or a doi or an isbn and the record fills them in. Inputs: authors (family name plus optional given names), year, doi, isbn, page, form (parenthetical or narrative) and style (apa7, mla9, chicago-ad or ieee). A doi or an isbn cannot be combined with the other one. Example prompt: "Give the APA in text citation for Smith and Jones 2020 on page 14."

Input Schema

NameRequiredDescriptionDefault
doiNoA DOI like 10.1038/nature14539, or a doi.org link. The lookup fills in the authors and the year.
formNoparenthetical is the usual brackets, like (Smith & Jones, 2020, p. 14). narrative puts the author in your sentence and keeps the rest in brackets, like Smith and Jones (2020, p. 14).parenthetical
isbnNoA 10 or 13 digit ISBN. Dashes are fine. The lookup fills in the authors and the year.
pageNo
yearNo
styleNoCitation style. Aliases such as APA, MLA 9 and Chicago are accepted. Valid styles: apa7, mla9, chicago-ad (Chicago author date), harvard and ieee.apa7
authorsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.6
    • changedInput schema / properties / style / description
      Previous value: -"Citation style. Aliases such as APA, MLA 9 and Chicago are accepted. Valid styles: apa7, mla9, chicago-ad (Chicago author date)."New value: +"Citation style. Aliases such as APA, MLA 9 and Chicago are accepted. Valid styles: apa7, mla9, chicago-ad (Chicago author date), harvard and ieee."
  2. First observedv0.1.3

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already establish read-only and open-world behavior, and the description adds meaningful context: DOI/ISBN lookup fills in authors and year, and DOI and ISBN are mutually exclusive. It still does not describe the return format or lookup failure behavior, so it is strong but not exhaustive.

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 description is front-loaded and reasonably sized, with the purpose and key behavior stated first and an example at the end. The explicit input list partly repeats the schema, but it earns its place by adding meaning such as author formatting and style aliases.

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 seven-parameter citation generator with no output schema and many sibling tools, the description covers inputs, styles, form, and the DOI/ISBN exclusivity constraint. It omits explicit sibling routing and does not state what the return value looks like, leaving meaningful gaps for an agent selecting among citation tools.

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 57% schema description coverage, the description meaningfully supplements the schema by explaining author family/given names, parenthetical versus narrative form, accepted styles, and DOI/ISBN lookup behavior. Parameter names page and year remain unexplained beyond their names, but the overall semantic coverage is good.

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 identifies a specific output, an in-text citation, and adds the optional page number and narrative form. It is clear enough to distinguish the tool from a bibliography generator, but it never explicitly names or contrasts itself with siblings such as format_citation, so it falls 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?

It explains that the user can provide authors and year, or a DOI or ISBN, and that DOI and ISBN cannot be combined, plus gives an example prompt. However, it does not say when to choose this tool over format_citation, format_bibliography, cite_from_doi, or cite_from_isbn, so usage guidance is implied rather than explicit.

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