Skip to main content
Glama

gutenberg-mcp-server

Get Gutenberg Book

gutenberg_get_book
Read-onlyIdempotent

Fetch Project Gutenberg metadata by book ID: titles, author names and aliases, translators, editors, contributor credits, edition notes, release date, imprint, reading ease, table of contents, subjects, classification, and available formats. Use is_readable before gutenberg_get_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": {
      "id": "<id>"
    },
    "name": "gutenberg_get_book"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesProject Gutenberg book ID. Visible in Gutenberg URLs (e.g., gutenberg.org/ebooks/1342) and returned by gutenberg_search_books and gutenberg_browse_popular. Example: 1342 for Pride and Prejudice, 2600 for War and Peace.

Output Schema

NameRequiredDescriptionDefault
idNoGutenberg ID.
lccNoLibrary of Congress Classification codes. [] means none in the RDF; null means unavailable.
errorNoPresent when the call failed. Absent on success.
titleNoBook title.
authorsNoPrimary author(s).
editorsNoEditors, if any.
formatsNoMap of MIME type to download URL. Key types: "text/plain; charset=utf-8" (preferred for gutenberg_get_text), "text/html", "application/epub+zip", "image/jpeg" (cover). Not every format is present for every book.
summaryNoFirst entry of summaries, not necessarily primary, or null when the source has none.
contentsNoCatalog table of contents with source line breaks, or null if unavailable.
subjectsNoLibrary of Congress subject headings.
copyrightNoCopyright status: false = public domain in the USA, true = under copyright, null = unknown.
languagesNoCatalog language codes for this edition.
summariesNoEvery source-provided summary, sorted. Empty when there are none.
media_typeNoSource media type, such as "Text" or "Sound" (audio). Use is_readable to check reader support.
bookshelvesNoProject Gutenberg bookshelf categories (e.g., "Best Books Ever Listings", "Category: Classics of Literature").
catalogAsOfNoLast recorded bulk RDF archive checkpoint, or null when unavailable or inapplicable.
is_readableNoEligible Text record with UTF-8 plain text, or HTML without audio formats. Does not guarantee the mirror file exists.
translatorsNoTranslators, if this is a translated work.
contributorsNoSource credits beyond authors, editors and translators. [] means none in the RDF; null means unavailable.
reading_easeNoCatalog reading-ease note, or null if unavailable.
release_dateNoProject Gutenberg ebook release date (YYYY-MM-DD), or null if unavailable.
source_notesNoSource-provided RDF bibliographic notes in document order, including explicit edition references. [] means inspected with no notes; null means unavailable from this source.
catalogSourceNoCatalog that answered: local mirror or per-book RDF.
download_countNoDownloads in the last 30 days at the source snapshot, used for popularity ranking.
has_plain_textNoTrue if media_type is "Text" and "text/plain; charset=utf-8" is present. HTML-only editions can still have is_readable=true.
source_imprintNoCatalog imprint statement, or null if unavailable.
alternative_titlesNoAlternative titles in catalog order. [] means none in the RDF; null means unavailable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "id",
      -      "title",
      -      "authors",
      -      "translators",
      -      "editors",
      -      "subjects",
      -      "bookshelves",
      -      "languages",
      -      "copyright",
      -      "media_type",
      -      "download_count",
      -      "source_notes",
      -      "is_readable",
      -      "summary",
      -      "summaries",
      -      "formats",
      -      "has_plain_text"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "id",
      +      "title",
      +      "alternative_titles",
      +      "authors",
      +      "translators",
      +      "editors",
      +      "contributors",
      +      "subjects",
      +      "lcc",
      +      "bookshelves",
      +      "languages",
      +      "copyright",
      +      "media_type",
      +      "download_count",
      +      "source_notes",
      +      "release_date",
      +      "source_imprint",
      +      "reading_ease",
      +      "contents",
      +      "is_readable",
      +      "summary",
      +      "summaries",
      +      "formats",
      +      "has_plain_text",
      +      "catalogSource",
      +      "catalogAsOf"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / alternative_titles
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Alternative titles in catalog order. [] means none in the RDF; null means unavailable."
      +}
    • addedOutput schema / properties / authors / items / properties / aliases
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Catalog aliases in order. [] means none in the RDF; null means unavailable."
      +}
    • addedOutput schema / properties / authors / items / properties / webpage
      Added value: +{
      +  "description": "English Wikipedia page supplied by the catalog, or null.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / authors / items / required
      Previous value: -[
      -  "name",
      -  "birth_year",
      -  "death_year"
      -]New value: +[
      +  "name",
      +  "birth_year",
      +  "death_year",
      +  "aliases",
      +  "webpage"
      +]
    • addedOutput schema / properties / catalogAsOf
      Added value: +{
      +  "description": "Last recorded bulk RDF archive checkpoint, or null when unavailable or inapplicable.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / catalogSource
      Added value: +{
      +  "description": "Catalog that answered: local mirror or per-book RDF.",
      +  "enum": [
      +    "mirror",
      +    "rdf"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / contents
      Added value: +{
      +  "description": "Catalog table of contents with source line breaks, or null if unavailable.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / contributors
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": false,
      +        "description": "Contributor credit.",
      +        "properties": {
      +          "birth_year": {
      +            "description": "Birth year, or null if unknown.",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "death_year": {
      +            "description": "Death year, or null if unknown or still living.",
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "name": {
      +            "description": "Contributor name.",
      +            "type": "string"
      +          },
      +          "role": {
      +            "description": "MARC relator label, or the catalog code when unmapped.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "role",
      +          "birth_year",
      +          "death_year"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Source credits beyond authors, editors and translators. [] means none in the RDF; null means unavailable."
      +}
    • addedOutput schema / properties / lcc
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Library of Congress Classification codes. [] means none in the RDF; null means unavailable."
      +}
    • addedOutput schema / properties / reading_ease
      Added value: +{
      +  "description": "Catalog reading-ease note, or null if unavailable.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / release_date
      Added value: +{
      +  "description": "Project Gutenberg ebook release date (YYYY-MM-DD), or null if unavailable.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / source_imprint
      Added value: +{
      +  "description": "Catalog imprint statement, or null if unavailable.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed3 schema fields changed
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `not_found`: No book exists with the given ID. `catalog_unavailable`: The Project Gutenberg catalog did not answer within the time this server allows for one lookup. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `not_found`: No book exists with the given ID. `catalog_unavailable`: The Project Gutenberg catalog did not answer, or returned an unreadable record, within the time this server allows for one lookup. `catalog_rejected`: The Project Gutenberg catalog refused the lookup outright rather than failing temporarily. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "not_found",
      -  "catalog_unavailable"
      -]New value: +[
      +  "not_found",
      +  "catalog_unavailable",
      +  "catalog_rejected"
      +]
    • changedOutput schema / properties / summaries / description
      Previous value: -"Every source-provided summary: sorted on the RDF mirror, upstream order on live fallback. Empty when there are none."New value: +"Every source-provided summary, sorted. Empty when there are none."
  3. Changed3 schema fields changed
    • changedOutput schema / properties / is_readable / description
      Previous value: -"True for non-Sound records with a supported UTF-8 plain-text or HTML format for gutenberg_get_text."New value: +"Eligible Text record with UTF-8 plain text, or HTML without audio formats. Does not guarantee the mirror file exists."
    • changedOutput schema / properties / summaries / description
      Previous value: -"Every summary Gutendex holds for this work, in upstream order. Usually one; some records carry a long and a short variant. Empty when there are none."New value: +"Every source-provided summary: sorted on the RDF mirror, upstream order on live fallback. Empty when there are none."
    • changedOutput schema / properties / summary / description
      Previous value: -"First entry of summaries — the primary auto-generated summary of the work, or null when Gutendex has none."New value: +"First entry of summaries, not necessarily primary, or null when the source has none."
  4. Changed1 schema field changed
    • changedOutput schema / properties / languages / description
      Previous value: -"Two-character language codes for this edition."New value: +"Catalog language codes for this edition."
  5. Changed6 schema fields changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "id",
      -      "title",
      -      "authors",
      -      "translators",
      -      "editors",
      -      "subjects",
      -      "bookshelves",
      -      "languages",
      -      "copyright",
      -      "media_type",
      -      "download_count",
      -      "summary",
      -      "summaries",
      -      "formats",
      -      "has_plain_text"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "id",
      +      "title",
      +      "authors",
      +      "translators",
      +      "editors",
      +      "subjects",
      +      "bookshelves",
      +      "languages",
      +      "copyright",
      +      "media_type",
      +      "download_count",
      +      "source_notes",
      +      "is_readable",
      +      "summary",
      +      "summaries",
      +      "formats",
      +      "has_plain_text"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • changedOutput schema / properties / download_count / description
      Previous value: -"Total downloads — popularity signal."New value: +"Downloads in the last 30 days at the source snapshot, used for popularity ranking."
    • changedOutput schema / properties / has_plain_text / description
      Previous value: -"True if media_type is \"Text\" AND a UTF-8 text/plain format (\"text/plain; charset=utf-8\") is present in formats — prerequisite for gutenberg_get_text."New value: +"True if media_type is \"Text\" and \"text/plain; charset=utf-8\" is present. HTML-only editions can still have is_readable=true."
    • addedOutput schema / properties / is_readable
      Added value: +{
      +  "description": "True for non-Sound records with a supported UTF-8 plain-text or HTML format for gutenberg_get_text.",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / media_type / description
      Previous value: -"\"Text\" for readable books, \"Sound\" for audio books. Only \"Text\" books have plain-text content available for gutenberg_get_text."New value: +"Source media type, such as \"Text\" or \"Sound\" (audio). Use is_readable to check reader support."
    • addedOutput schema / properties / source_notes
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Source-provided RDF bibliographic notes in document order, including explicit edition references. [] means inspected with no notes; null means unavailable from this source."
      +}
  6. Changed16 schema fields changed
    • removedOutput schema / properties / authors / items / properties / birth_year / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / authors / items / properties / birth_year / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / authors / items / properties / death_year / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / authors / items / properties / death_year / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / copyright / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / copyright / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedOutput schema / properties / editors / items / properties / birth_year / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / editors / items / properties / birth_year / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / editors / items / properties / death_year / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / editors / items / properties / death_year / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / summary / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / summary / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / translators / items / properties / birth_year / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / translators / items / properties / birth_year / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / translators / items / properties / death_year / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / translators / items / properties / death_year / type
      Added value: +[
      +  "number",
      +  "null"
      +]
  7. Changed5 schema fields changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "id",
      -      "title",
      -      "authors",
      -      "translators",
      -      "editors",
      -      "subjects",
      -      "bookshelves",
      -      "languages",
      -      "copyright",
      -      "media_type",
      -      "download_count",
      -      "summary",
      -      "formats",
      -      "has_plain_text"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "id",
      +      "title",
      +      "authors",
      +      "translators",
      +      "editors",
      +      "subjects",
      +      "bookshelves",
      +      "languages",
      +      "copyright",
      +      "media_type",
      +      "download_count",
      +      "summary",
      +      "summaries",
      +      "formats",
      +      "has_plain_text"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `not_found`: No book exists with the given ID. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `not_found`: No book exists with the given ID. `catalog_unavailable`: The Project Gutenberg catalog did not answer within the time this server allows for one lookup. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "not_found"
      -]New value: +[
      +  "not_found",
      +  "catalog_unavailable"
      +]
    • addedOutput schema / properties / summaries
      Added value: +{
      +  "description": "Every summary Gutendex holds for this work, in upstream order. Usually one; some records carry a long and a short variant. Empty when there are none.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / summary / description
      Previous value: -"Auto-generated summary of the work, when available. Absent on many older records."New value: +"First entry of summaries — the primary auto-generated summary of the work, or null when Gutendex has none."
  8. Changed6 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"
    • addedInput schema / additionalProperties
      Added 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 / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "id",
      +      "title",
      +      "authors",
      +      "translators",
      +      "editors",
      +      "subjects",
      +      "bookshelves",
      +      "languages",
      +      "copyright",
      +      "media_type",
      +      "download_count",
      +      "summary",
      +      "formats",
      +      "has_plain_text"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `not_found`: No book exists with the given ID. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "not_found"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "id",
      -  "title",
      -  "authors",
      -  "translators",
      -  "editors",
      -  "subjects",
      -  "bookshelves",
      -  "languages",
      -  "copyright",
      -  "media_type",
      -  "download_count",
      -  "summary",
      -  "formats",
      -  "has_plain_text"
      -]
  9. Changed1 schema field changed
    • changedOutput schema / properties / has_plain_text / description
      Previous value: -"True if media_type is \"Text\" AND a text/plain format (UTF-8 or ASCII) is present in formats — prerequisite for gutenberg_get_text."New value: +"True if media_type is \"Text\" AND a UTF-8 text/plain format (\"text/plain; charset=utf-8\") is present in formats — prerequisite for gutenberg_get_text."
  10. First observed

TDQS

B3.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is fully covered. The description adds no behavior beyond that: it does not say what happens with an out-of-range or nonexistent ID, whether fields can be absent, or anything about the call's cost or failure modes; it mostly restates the return payload, which the output schema already defines.

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

Conciseness3/5

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

A twelve-item field enumeration dominates the first sentence and duplicates what the output schema covers, pushing the one piece of actionable guidance (the get_text ordering hint) into a trailing clause. It is front-loaded on the right verb but spends most of its length on low-value listing.

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?

With an output schema present, return values need not be explained, yet the description spends its bulk doing exactly that. What is genuinely missing is sibling routing (search vs browse vs get) and error behavior for invalid IDs, leaving the definition adequate but not complete for a one-parameter lookup tool embedded in a four-tool family.

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 single id parameter already documents source, range and concrete examples (1342 for Pride and Prejudice). The description's 'by book ID' adds nothing the schema does not already say, so the baseline 3 applies.

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

Purpose5/5

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

States a specific verb and resource ('Fetch Project Gutenberg metadata by book ID') and enumerates the exact payload (titles, authors, translators, release date, formats), which cleanly separates it from gutenberg_get_text, the sibling that returns the book's actual content.

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?

The only routing guidance is 'Use is_readable before gutenberg_get_text,' which points toward a downstream tool but says nothing about when to call this tool versus gutenberg_search_books or gutenberg_browse_popular, nor that an ID from those tools is the intended input. Usage is implied rather than stated, and the is_readable sentence is ambiguous about whether it refers to a returned field or a separate check.

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.