Skip to main content
Glama

gutenberg-mcp-server

Get Gutenberg Book

gutenberg_get_book
Read-onlyIdempotent

Fetch complete metadata for a Project Gutenberg book by ID — title, authors (with birth/death years), translators, editors, source bibliographic notes, subjects, bookshelves, languages, copyright status, and the full formats map with download URLs (plain text, HTML, EPUB, cover image, etc.). Use is_readable before gutenberg_get_text; source_notes may identify specific editions.

Input Schema

TableJSON 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

TableJSON Schema
NameRequiredDescriptionDefault
idNoGutenberg ID.
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 — the primary auto-generated summary of the work, or null when Gutendex has none.
subjectsNoLibrary of Congress subject headings.
copyrightNoCopyright status: false = public domain in the USA, true = under copyright, null = unknown.
languagesNoTwo-character language codes for this edition.
summariesNoEvery 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.
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").
is_readableNoTrue for non-Sound records with a supported UTF-8 plain-text or HTML format for gutenberg_get_text.
translatorsNoTranslators, if this is a translated work.
source_notesNoSource-provided RDF bibliographic notes in document order, including explicit edition references. [] means inspected with no notes; null means unavailable from this source.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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."
      +}
  2. 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"
      +]
  3. 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."
  4. 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"
      -]
  5. 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."
  6. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint and idempotentHint, so the safety profile is covered. The description adds useful context about source bibliographic notes and the formats map containing download URLs, but says nothing about error behavior, missing/deleted IDs, or rate limits that a fetch tool might need.

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 verb and resource lead the description, followed by a dense but well-organized field enumeration, then a short follow-up sentence. It is efficient, though the long field list partially duplicates what the output schema already conveys.

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 one-parameter fetch tool with an output schema covering return values and annotations covering safety, the description supplies enough context to invoke it correctly. It is missing only the sibling-routing detail that would make the picture fully complete.

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?

With a single parameter and 100% schema description coverage (including URL and example IDs like 1342/2600), the schema already fully documents the input. The description adds nothing beyond the schema for the id parameter, so the baseline of 3 applies.

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?

States a specific verb and resource ('Fetch complete metadata for a Project Gutenberg book by ID') and enumerates the returned fields, so the agent knows exactly what it retrieves. The 'by ID' scope implicitly separates it from gutenberg_search_books and gutenberg_browse_popular, but those siblings are never named as alternatives, so differentiation is left partly to inference.

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 description offers workflow context ('Use is_readable before gutenberg_get_text; source_notes may identify specific editions'), which tells the agent how this tool fits a pipeline but not when to choose it over its siblings. There is no explicit when-to-use or exclusion guidance for gutenberg_get_book itself.

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.