Skip to main content
Glama

text_citation

Read-onlyIdempotent

Citation generator

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": {
      "style": "<style>",
      "title": "<title>"
    },
    "name": "text_citation"
  }
}

Input Schema

NameRequiredDescriptionDefault
doiNoA DOI (10.1037/ppm0000185) or its link. Written as an https://doi.org/ link, and used instead of a URL.
urlNoWeb address; for books, articles and chapters used only when there is no DOI.
cityNoChicago 17th: publisher city for books and chapters. Ignored by APA and MLA, and by Chicago 18th.
pageNoThe page or page range you are quoting, for the in-text citation or Chicago note.
yearNoYear as 2025 or a string such as 2025 or n.d. A negative or non-year number is a 422. Left out: n.d.
issueNoJournal issue, for example 3.
pagesNoA page range such as 45-60 (en dash, hyphen or em dash), or a single page, or an article number such as e0193972.
styleYesapa: APA 7th edition. mla: MLA 9th edition. chicago: Chicago notes-bibliography (see chicagoEdition).
titleYesTitle of the work in the capitalization it should have (APA sentence case, MLA and Chicago headline case). Used as typed.
volumeNoJournal volume, for example 12.
authorsNoPeople separated by semicolons, new lines or 'and': 'Smith, Jane; Lee, Kim'. 'Last, First' is exact; 'First Last' takes the last word as surname. Use groupAuthor for an organization.
editionNoBooks: 2, 2nd or 2nd ed. All become 2nd ed.
editorsNoChapters: the book's editors, written like authors.
siteNameNoWebsites: the name of the site (left out in APA when it is the same as the author).
bookTitleNoChapters: the title of the book that holds the chapter (required for book-chapter).
publisherNoBooks and chapters: the publisher's name only.
accessDateNoYYYY-MM-DD, for websites; printed by MLA, and by Chicago for undated pages; APA never prints it.
sourceTypeNoWhat is cited. Default is guessed from journalName, bookTitle or url, otherwise book.
groupAuthorNoAn organization as the author, for example World Health Organization.
journalNameNoJournal articles: the journal's title (required for journal-article).
chicagoEditionNoChicago only: 17 (default, with publisher city) or 18 (2024, no city).
publicationDateNoFull date YYYY-MM-DD (websites): written as April 24, 2025 in APA, 24 Apr. 2025 in MLA, April 24, 2025 in Chicago. Replaces year.
siteOrPublisherNoOlder field: becomes siteName for a website, the journal name for a journal article, and the publisher otherwise.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / accessDate / description
      Previous value: -"YYYY-MM-DD. Websites: MLA prints it when sent (and, with today's date, when the page has no date); Chicago prints it only for undated pages; APA never does."New value: +"YYYY-MM-DD, for websites; printed by MLA, and by Chicago for undated pages; APA never prints it."
    • changedInput schema / properties / authors / description
      Previous value: -"People, separated by semicolons, new lines or 'and': 'Smith, Jane; Lee, Kim' or 'Jane Smith and Kim Lee'. 'Last, First' is exact; 'First Last' takes the last word as the surname. Leave out when there is no author (the title leads) and use groupAuthor for an organization."New value: +"People separated by semicolons, new lines or 'and': 'Smith, Jane; Lee, Kim'. 'Last, First' is exact; 'First Last' takes the last word as surname. Use groupAuthor for an organization."
    • changedInput schema / properties / chicagoEdition / description
      Previous value: -"Chicago only. 17 (default): the edition the site's Citation Generator uses, publisher city included. 18: the newest edition (2024), no publisher city, up to 6 authors in a bibliography."New value: +"Chicago only: 17 (default, with publisher city) or 18 (2024, no city)."
    • addedInput schema / properties / issue / description
      Added value: +"Journal issue, for example 3."
    • changedInput schema / properties / sourceType / description
      Previous value: -"What is being cited. Default: journal-article when journalName is sent, book-chapter when bookTitle is sent, website when a url is sent without a publisher, otherwise book."New value: +"What is cited. Default is guessed from journalName, bookTitle or url, otherwise book."
    • changedInput schema / properties / title / description
      Previous value: -"The title of the page, book, article or chapter, in the capitalization it should have. APA wants sentence case; MLA and Chicago want headline case. It is used as typed and advice is returned in notes."New value: +"Title of the work in the capitalization it should have (APA sentence case, MLA and Chicago headline case). Used as typed."
    • changedInput schema / properties / url / description
      Previous value: -"The web address. For a website it is the page; for a book, article or chapter it is used only when there is no DOI. https:// is added to a bare domain."New value: +"Web address; for books, articles and chapters used only when there is no DOI."
    • addedInput schema / properties / volume / description
      Added value: +"Journal volume, for example 12."
  2. Changed31 schema fields changed
    • addedInput schema / properties / accessDate
      Added value: +{
      +  "description": "YYYY-MM-DD. Websites: MLA prints it when sent (and, with today's date, when the page has no date); Chicago prints it only for undated pages; APA never does.",
      +  "maxLength": 10,
      +  "type": "string"
      +}
    • addedInput schema / properties / authors / description
      Added value: +"People, separated by semicolons, new lines or 'and': 'Smith, Jane; Lee, Kim' or 'Jane Smith and Kim Lee'. 'Last, First' is exact; 'First Last' takes the last word as the surname. Leave out when there is no author (the title leads) and use groupAuthor for an organization."
    • addedInput schema / properties / authors / maxLength
      Added value: +2000
    • removedInput schema / properties / authors / minLength
      Removed value: -1
    • addedInput schema / properties / bookTitle
      Added value: +{
      +  "description": "Chapters: the title of the book that holds the chapter (required for book-chapter).",
      +  "maxLength": 500,
      +  "type": "string"
      +}
    • addedInput schema / properties / chicagoEdition
      Added value: +{
      +  "description": "Chicago only. 17 (default): the edition the site's Citation Generator uses, publisher city included. 18: the newest edition (2024), no publisher city, up to 6 authors in a bibliography.",
      +  "enum": [
      +    "17",
      +    "18"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / city
      Added value: +{
      +  "description": "Chicago 17th: publisher city for books and chapters. Ignored by APA and MLA, and by Chicago 18th.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • addedInput schema / properties / doi
      Added value: +{
      +  "description": "A DOI (10.1037/ppm0000185) or its link. Written as an https://doi.org/ link, and used instead of a URL.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • addedInput schema / properties / edition
      Added value: +{
      +  "description": "Books: 2, 2nd or 2nd ed. All become 2nd ed.",
      +  "maxLength": 40,
      +  "type": "string"
      +}
    • addedInput schema / properties / editors
      Added value: +{
      +  "description": "Chapters: the book's editors, written like authors.",
      +  "maxLength": 1000,
      +  "type": "string"
      +}
    • addedInput schema / properties / groupAuthor
      Added value: +{
      +  "description": "An organization as the author, for example World Health Organization.",
      +  "maxLength": 300,
      +  "type": "string"
      +}
    • addedInput schema / properties / issue
      Added value: +{
      +  "maxLength": 20,
      +  "type": "string"
      +}
    • addedInput schema / properties / journalName
      Added value: +{
      +  "description": "Journal articles: the journal's title (required for journal-article).",
      +  "maxLength": 300,
      +  "type": "string"
      +}
    • addedInput schema / properties / page
      Added value: +{
      +  "description": "The page or page range you are quoting, for the in-text citation or Chicago note.",
      +  "maxLength": 30,
      +  "type": "string"
      +}
    • addedInput schema / properties / pages
      Added value: +{
      +  "description": "A page range such as 45-60 (en dash, hyphen or em dash), or a single page, or an article number such as e0193972.",
      +  "maxLength": 30,
      +  "type": "string"
      +}
    • addedInput schema / properties / publicationDate
      Added value: +{
      +  "description": "Full date YYYY-MM-DD (websites): written as April 24, 2025 in APA, 24 Apr. 2025 in MLA, April 24, 2025 in Chicago. Replaces year.",
      +  "maxLength": 10,
      +  "type": "string"
      +}
    • addedInput schema / properties / publisher
      Added value: +{
      +  "description": "Books and chapters: the publisher's name only.",
      +  "maxLength": 300,
      +  "type": "string"
      +}
    • addedInput schema / properties / siteName
      Added value: +{
      +  "description": "Websites: the name of the site (left out in APA when it is the same as the author).",
      +  "maxLength": 300,
      +  "type": "string"
      +}
    • addedInput schema / properties / siteOrPublisher / description
      Added value: +"Older field: becomes siteName for a website, the journal name for a journal article, and the publisher otherwise."
    • addedInput schema / properties / siteOrPublisher / maxLength
      Added value: +300
    • addedInput schema / properties / sourceType
      Added value: +{
      +  "description": "What is being cited. Default: journal-article when journalName is sent, book-chapter when bookTitle is sent, website when a url is sent without a publisher, otherwise book.",
      +  "enum": [
      +    "website",
      +    "book",
      +    "journal-article",
      +    "book-chapter"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / style / description
      Added value: +"apa: APA 7th edition. mla: MLA 9th edition. chicago: Chicago notes-bibliography (see chicagoEdition)."
    • addedInput schema / properties / title / description
      Added value: +"The title of the page, book, article or chapter, in the capitalization it should have. APA wants sentence case; MLA and Chicago want headline case. It is used as typed and advice is returned in notes."
    • addedInput schema / properties / title / maxLength
      Added value: +500
    • addedInput schema / properties / url / description
      Added value: +"The web address. For a website it is the page; for a book, article or chapter it is used only when there is no DOI. https:// is added to a bare domain."
    • addedInput schema / properties / url / maxLength
      Added value: +2000
    • addedInput schema / properties / volume
      Added value: +{
      +  "maxLength": 20,
      +  "type": "string"
      +}
    • addedInput schema / properties / year / anyOf
      Added value: +[
      +  {
      +    "maxLength": 10,
      +    "type": "string"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • addedInput schema / properties / year / description
      Added value: +"Year as 2025 or a string such as 2025 or n.d. A negative or non-year number is a 422. Left out: n.d."
    • removedInput schema / properties / year / type
      Removed value: -[
      -  "string",
      -  "number"
      -]
    • changedInput schema / required
      Previous value: -[
      -  "style",
      -  "authors",
      -  "title"
      -]New value: +[
      +  "style",
      +  "title"
      +]
  3. Changed2 schema fields changed
    • addedInput schema / properties / authors / minLength
      Added value: +1
    • addedInput schema / properties / title / minLength
      Added value: +1
  4. First observed

TDQS

C2.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds nothing further: no mention that output is a formatted reference plus in-text citation, no note on validation errors (the schema hints at a 422 for bad year), no formatting caveats. Two words contribute zero behavioral context.

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

Conciseness2/5

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

Two words with no waste, but also no structure or front-loading of anything useful; this is under-specification rather than conciseness. Nothing here helps an agent decide or prepare a call.

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

Completeness1/5

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

A 23-parameter tool supporting three citation styles and four source types with no output schema should explain what is returned (bibliography entry, in-text citation, Chicago note) and how style/sourceType interact. None of that is present, so the definition is inadequate for the tool's complexity.

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% and the per-parameter docs are unusually rich (style editions, chicagoEdition behavior, sourceType guessing, author parsing rules), so the schema carries the full burden. The description adds no meaning beyond it, which is the baseline 3 when the schema is this complete.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Citation generator" restates the tool name (text_citation) with a near-synonym and adds no scope, source types, or output formats. An agent learns nothing beyond the noun phrase that it could not infer from the name itself.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus siblings such as text_paper_format, nor on prerequisites (e.g., that a style and title are mandatory, or that sourceType drives which other fields matter). Usage is only vaguely implied by the name.

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.

Resources