Skip to main content
Glama

internet-archive-mcp-server

Get Internet Archive Item

ia_get_item
Read-onlyIdempotent

Retrieve metadata and the file manifest for an Internet Archive item by identifier. Returns title, creator, description (as plain text), the publication date, when the item was made public and when it was added to the Archive, subjects, collections, license, language, publisher, ISBN, OCLC and LCCN numbers, Open Library edition and work IDs, volume, the running time of an audio or video item, the page-image count of a text item, whether the item is access-restricted, the total file count, and a page of files, each with its format, size, and direct download URL, and for an audio or video file the track title, track number, and duration it is catalogued with; a file marked private cannot be downloaded. Pages hold up to max_files files (default 50, at most 500 per call) starting at file_offset; set format to keep a single file type (e.g. "DjVuTXT", "Text PDF", "VBR MP3"). The primary tool to act on a search result from ia_search_items. Use ia_get_text to retrieve the readable text of a text item.

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": {
      "identifier": "<identifier>"
    },
    "name": "ia_get_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoKeep only files whose format equals this value, ignoring case — e.g. "DjVuTXT", "Text PDF", "VBR MP3". Applied before paging. Omit to list every format.
max_filesNoMaximum number of files to return (default 50). One call returns at most 500: a larger value (up to 300,000) is served as 500, with a notice naming the next file_offset.
identifierYesInternet Archive item identifier, e.g. "prideprejudice00aust" (Pride and Prejudice), from ia_search_items results; or an archive.org item URL, such as https://archive.org/details/prideprejudice00aust or its download, stream, metadata, or embed form, read as the identifier it names.
file_offsetNoZero-based position in the (format-filtered) file list to start from (default 0). To read the next page, add the number of files returned to the previous file_offset, or pass the file_offset the notice names.

Output Schema

NameRequiredDescriptionDefault
capNoThe page size applied: max_files, or 500 when a larger value was capped.
dateNoPublication date when provided; a few records carry a list, relayed as received. For when the item reached the Archive, see publicdate and addeddate.
isbnNoISBN(s) when provided, as catalogued.
lccnNoLibrary of Congress Control Number(s) when provided.
errorNoPresent when the call failed. Absent on success.
filesNoThis page of the manifest in upstream order — up to max_files files (at most 500) from file_offset, after the format filter.
shownNoNumber of files returned on this page.
titleNoItem title when provided; a few records carry a list, relayed as received.
noticeNoPaging guidance with the next file_offset, or the formats present when the filter matched nothing.
rightsNoRights statement when provided; a few records carry a list, relayed as received.
volumeNoVolume designation when provided (e.g. "2", "v.6", "ser. 3, v. 10 (1912-16)"); a few records carry a list (e.g. ["1931", "18"]), relayed as received.
creatorNoCreator or author name(s) when provided.
oclc_idNoOCLC (WorldCat) number(s) when provided.
runtimeNoTotal running time of an audio or video item as catalogued, e.g. "13:06:44", "20:33", or free text such as "27 min 13 sec"; a list is relayed as received.
subjectNoSubject or topic tag(s) when provided.
languageNoLanguage(s) of the item when provided.
addeddateNoWhen the item was added to the Archive, as the Metadata API stores it: "YYYY-MM-DD HH:MM:SS" in UTC, or on some records a bare "YYYY-MM-DD"; a list is relayed as received.
mediatypeNoMedia type (texts, audio, movies, etc.); a list is relayed as received.
publisherNoPublisher statement (e.g. "London : George Allen") when provided; a few records carry a list, relayed as received.
truncatedNoTrue when more files remain past this page.
collectionNoCollection(s) this item belongs to when provided.
file_countNoTotal number of files in the full item manifest, before filtering and paging.
identifierNoThe item identifier.
licenseurlNoLicense URL when provided; a few records carry a list, relayed as received.
publicdateNoWhen the item was made public on the Archive, as the Metadata API stores it: "YYYY-MM-DD HH:MM:SS" in UTC; a list is relayed as received. Nearly every item has it, dated or not.
totalCountNoNumber of files matching the format filter, before paging.
descriptionNoItem description when provided, converted from the HTML the Archive stores to plain text: <br> and each paragraph, div, or list item start a new line, existing line breaks are kept, and a link reads as its label followed by its URL in parentheses.
image_countNoNumber of scanned page images of a texts item, covers and calibration cards included — not a printed page count. Omitted for other media types, where the Archive counts something else.
openlibrary_workNoOpen Library work ID (e.g. "OL66554W") when provided; a list is relayed as received.
access_restrictedNoPresent when the item is in an access-restricted collection, such as a lending library. Whether a download is refused is per file: see each file’s private.
openlibrary_editionNoOpen Library edition ID (e.g. "OL7173379M") when provided; a list is relayed as received.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed25 schema fields changed
    • addedOutput schema / properties / addeddate
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Single added date.",
      +      "type": "string"
      +    },
      +    {
      +      "description": "Multiple added dates.",
      +      "items": {
      +        "description": "Added date.",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  ],
      +  "description": "When the item was added to the Archive, as the Metadata API stores it: \"YYYY-MM-DD HH:MM:SS\" in UTC, or on some records a bare \"YYYY-MM-DD\"; a list is relayed as received."
      +}
    • changedOutput schema / properties / date / description
      Previous value: -"Publication or upload date when provided; a few records carry a list, relayed as received."New value: +"Publication date when provided; a few records carry a list, relayed as received. For when the item reached the Archive, see publicdate and addeddate."
    • addedOutput schema / properties / files / items / properties / length
      Added value: +{
      +  "description": "Duration as catalogued: minutes and seconds (\"06:21\") or seconds (\"381.1\", \"1133.07\"). The copies of one recording can carry different values, so compare lengths within one format.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / files / items / properties / title
      Added value: +{
      +  "description": "Track or chapter title of an audio or video file, as catalogued. Some derived copies, such as an Ogg made from an MP3, lack it.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / files / items / properties / track
      Added value: +{
      +  "description": "Track number as catalogued: \"1\", \"01\", or \"1/37\" (track of total); \"0\" on checksum and file-list files.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / licenseurl / anyOf
      Added value: +[
      +  {
      +    "description": "Single license URL.",
      +    "type": "string"
      +  },
      +  {
      +    "description": "Multiple license URLs.",
      +    "items": {
      +      "description": "License URL.",
      +      "type": "string"
      +    },
      +    "type": "array"
      +  }
      +]
    • changedOutput schema / properties / licenseurl / description
      Previous value: -"License URL when provided."New value: +"License URL when provided; a few records carry a list, relayed as received."
    • removedOutput schema / properties / licenseurl / type
      Removed value: -"string"
    • addedOutput schema / properties / mediatype / anyOf
      Added value: +[
      +  {
      +    "description": "Single media type.",
      +    "type": "string"
      +  },
      +  {
      +    "description": "Multiple media types.",
      +    "items": {
      +      "description": "Media type.",
      +      "type": "string"
      +    },
      +    "type": "array"
      +  }
      +]
    • changedOutput schema / properties / mediatype / description
      Previous value: -"Media type (texts, audio, movies, etc.)."New value: +"Media type (texts, audio, movies, etc.); a list is relayed as received."
    • removedOutput schema / properties / mediatype / type
      Removed value: -"string"
    • addedOutput schema / properties / openlibrary_edition / anyOf
      Added value: +[
      +  {
      +    "description": "Single Open Library edition ID.",
      +    "type": "string"
      +  },
      +  {
      +    "description": "Multiple Open Library edition IDs.",
      +    "items": {
      +      "description": "Open Library edition ID.",
      +      "type": "string"
      +    },
      +    "type": "array"
      +  }
      +]
    • changedOutput schema / properties / openlibrary_edition / description
      Previous value: -"Open Library edition ID (e.g. \"OL7173379M\") when provided."New value: +"Open Library edition ID (e.g. \"OL7173379M\") when provided; a list is relayed as received."
    • removedOutput schema / properties / openlibrary_edition / type
      Removed value: -"string"
    • addedOutput schema / properties / openlibrary_work / anyOf
      Added value: +[
      +  {
      +    "description": "Single Open Library work ID.",
      +    "type": "string"
      +  },
      +  {
      +    "description": "Multiple Open Library work IDs.",
      +    "items": {
      +      "description": "Open Library work ID.",
      +      "type": "string"
      +    },
      +    "type": "array"
      +  }
      +]
    • changedOutput schema / properties / openlibrary_work / description
      Previous value: -"Open Library work ID (e.g. \"OL66554W\") when provided."New value: +"Open Library work ID (e.g. \"OL66554W\") when provided; a list is relayed as received."
    • removedOutput schema / properties / openlibrary_work / type
      Removed value: -"string"
    • addedOutput schema / properties / publicdate
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Single public date.",
      +      "type": "string"
      +    },
      +    {
      +      "description": "Multiple public dates.",
      +      "items": {
      +        "description": "Public date.",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  ],
      +  "description": "When the item was made public on the Archive, as the Metadata API stores it: \"YYYY-MM-DD HH:MM:SS\" in UTC; a list is relayed as received. Nearly every item has it, dated or not."
      +}
    • addedOutput schema / properties / rights / anyOf
      Added value: +[
      +  {
      +    "description": "Single rights statement.",
      +    "type": "string"
      +  },
      +  {
      +    "description": "Multiple rights statements.",
      +    "items": {
      +      "description": "Rights statement.",
      +      "type": "string"
      +    },
      +    "type": "array"
      +  }
      +]
    • changedOutput schema / properties / rights / description
      Previous value: -"Rights statement when provided."New value: +"Rights statement when provided; a few records carry a list, relayed as received."
    • removedOutput schema / properties / rights / type
      Removed value: -"string"
    • addedOutput schema / properties / runtime
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Single running time.",
      +      "type": "string"
      +    },
      +    {
      +      "description": "Multiple running times.",
      +      "items": {
      +        "description": "Running time.",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  ],
      +  "description": "Total running time of an audio or video item as catalogued, e.g. \"13:06:44\", \"20:33\", or free text such as \"27 min 13 sec\"; a list is relayed as received."
      +}
    • addedOutput schema / properties / volume / anyOf
      Added value: +[
      +  {
      +    "description": "Single volume designation.",
      +    "type": "string"
      +  },
      +  {
      +    "description": "Multiple volume designations.",
      +    "items": {
      +      "description": "Volume designation.",
      +      "type": "string"
      +    },
      +    "type": "array"
      +  }
      +]
    • changedOutput schema / properties / volume / description
      Previous value: -"Volume designation when provided (e.g. \"2\", \"v.6\", \"ser. 3, v. 10 (1912-16)\")."New value: +"Volume designation when provided (e.g. \"2\", \"v.6\", \"ser. 3, v. 10 (1912-16)\"); a few records carry a list (e.g. [\"1931\", \"18\"]), relayed as received."
    • removedOutput schema / properties / volume / type
      Removed value: -"string"
  2. Changed1 schema field changed
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `invalid_identifier`: identifier holds \"/\" or \":\" but is not an archive.org item URL: a URL on another site, a Wayback Machine capture, or an archive.org page that names no item. `item_not_found`: The identifier does not exist in the Internet Archive. `archive_unavailable`: The Internet Archive Metadata API did not answer within the request timeout, could not be reached, answered HTTP 5xx after retries, 429, or another 4xx, or sent an unreadable response. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `invalid_identifier`: identifier holds \"/\" or \":\" but is not an archive.org item URL: a URL on another site, a Wayback Machine capture, or an archive.org page that names no item. `item_not_found`: The identifier does not exist in the Internet Archive. `archive_unavailable`: The Internet Archive Metadata API did not answer within the request timeout or the call's 55 s deadline (the request timeout when that is longer), could not be reached, answered HTTP 5xx after retries, 429, or another 4xx, or sent an unreadable response. Other values are possible when a failure originates below the handler."
  3. Changed21 schema fields changed
    • changedInput schema / properties / identifier / description
      Previous value: -"Internet Archive item identifier, e.g. \"prideprejudice00aust\" (Pride and Prejudice). Obtain from ia_search_items results."New value: +"Internet Archive item identifier, e.g. \"prideprejudice00aust\" (Pride and Prejudice), from ia_search_items results; or an archive.org item URL, such as https://archive.org/details/prideprejudice00aust or its download, stream, metadata, or embed form, read as the identifier it names."
    • addedOutput schema / properties / access_restricted
      Added value: +{
      +  "const": true,
      +  "description": "Present when the item is in an access-restricted collection, such as a lending library. Whether a download is refused is per file: see each file’s private.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / date / anyOf
      Added value: +[
      +  {
      +    "description": "Single date.",
      +    "type": "string"
      +  },
      +  {
      +    "description": "Multiple date values.",
      +    "items": {
      +      "description": "Date value.",
      +      "type": "string"
      +    },
      +    "type": "array"
      +  }
      +]
    • changedOutput schema / properties / date / description
      Previous value: -"Publication or upload date when provided."New value: +"Publication or upload date when provided; a few records carry a list, relayed as received."
    • removedOutput schema / properties / date / type
      Removed value: -"string"
    • changedOutput schema / properties / description / anyOf
      Previous value: -[
      -  {
      -    "description": "Single description string.",
      -    "type": "string"
      -  },
      -  {
      -    "description": "Multiple description strings.",
      -    "items": {
      -      "description": "Description string.",
      -      "type": "string"
      -    },
      -    "type": "array"
      -  }
      -]New value: +[
      +  {
      +    "description": "Single description, as plain text.",
      +    "type": "string"
      +  },
      +  {
      +    "description": "Multiple descriptions, each as plain text.",
      +    "items": {
      +      "description": "Description, as plain text.",
      +      "type": "string"
      +    },
      +    "type": "array"
      +  }
      +]
    • changedOutput schema / properties / description / description
      Previous value: -"Item description when provided."New value: +"Item description when provided, converted from the HTML the Archive stores to plain text: <br> and each paragraph, div, or list item start a new line, existing line breaks are kept, and a link reads as its label followed by its URL in parentheses."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `item_not_found`: The identifier does not exist in the Internet Archive. `archive_unavailable`: The Internet Archive Metadata API did not answer within the request timeout, could not be reached, answered HTTP 5xx after retries, 429, or another 4xx, or sent an unreadable response. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `invalid_identifier`: identifier holds \"/\" or \":\" but is not an archive.org item URL: a URL on another site, a Wayback Machine capture, or an archive.org page that names no item. `item_not_found`: The identifier does not exist in the Internet Archive. `archive_unavailable`: The Internet Archive Metadata API did not answer within the request timeout, could not be reached, answered HTTP 5xx after retries, 429, or another 4xx, or sent an unreadable response. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "item_not_found",
      -  "archive_unavailable"
      -]New value: +[
      +  "invalid_identifier",
      +  "item_not_found",
      +  "archive_unavailable"
      +]
    • addedOutput schema / properties / files / items / properties / private
      Added value: +{
      +  "const": true,
      +  "description": "Present when the manifest marks this file private: the Archive refuses its download, so ia_get_text cannot read it.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / image_count
      Added value: +{
      +  "description": "Number of scanned page images of a texts item, covers and calibration cards included — not a printed page count. Omitted for other media types, where the Archive counts something else.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / isbn
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Single ISBN.",
      +      "type": "string"
      +    },
      +    {
      +      "description": "Multiple ISBNs.",
      +      "items": {
      +        "description": "ISBN.",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  ],
      +  "description": "ISBN(s) when provided, as catalogued."
      +}
    • addedOutput schema / properties / lccn
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Single LCCN.",
      +      "type": "string"
      +    },
      +    {
      +      "description": "Multiple LCCNs.",
      +      "items": {
      +        "description": "LCCN.",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  ],
      +  "description": "Library of Congress Control Number(s) when provided."
      +}
    • addedOutput schema / properties / oclc_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Single OCLC number.",
      +      "type": "string"
      +    },
      +    {
      +      "description": "Multiple OCLC numbers.",
      +      "items": {
      +        "description": "OCLC number.",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  ],
      +  "description": "OCLC (WorldCat) number(s) when provided."
      +}
    • addedOutput schema / properties / openlibrary_edition
      Added value: +{
      +  "description": "Open Library edition ID (e.g. \"OL7173379M\") when provided.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / openlibrary_work
      Added value: +{
      +  "description": "Open Library work ID (e.g. \"OL66554W\") when provided.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / publisher
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Single publisher statement.",
      +      "type": "string"
      +    },
      +    {
      +      "description": "Multiple publisher statements.",
      +      "items": {
      +        "description": "Publisher statement.",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  ],
      +  "description": "Publisher statement (e.g. \"London : George Allen\") when provided; a few records carry a list, relayed as received."
      +}
    • addedOutput schema / properties / title / anyOf
      Added value: +[
      +  {
      +    "description": "Single title.",
      +    "type": "string"
      +  },
      +  {
      +    "description": "Multiple title values.",
      +    "items": {
      +      "description": "Title value.",
      +      "type": "string"
      +    },
      +    "type": "array"
      +  }
      +]
    • changedOutput schema / properties / title / description
      Previous value: -"Item title when provided by the metadata."New value: +"Item title when provided; a few records carry a list, relayed as received."
    • removedOutput schema / properties / title / type
      Removed value: -"string"
    • addedOutput schema / properties / volume
      Added value: +{
      +  "description": "Volume designation when provided (e.g. \"2\", \"v.6\", \"ser. 3, v. 10 (1912-16)\").",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld), and the description adds genuinely new behavior: paging arithmetic (max_files default 50, 500-per-call ceiling with a notice naming the next file_offset, format filter applied before paging) and the private-file download restriction. These are operational traits an agent could not infer from the annotations.

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?

Purpose and routing are front-loaded, but the middle sentence is a sprawling run-on that enumerates every returned field (title, creator, ISBN, OCLC, LCCN, Open Library IDs, page counts, track durations...). Since an output schema already exists, this catalogue is largely wasted length that buries the actionable paging and filtering details.

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

Completeness5/5

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

For a four-parameter read tool with annotations and an output schema, everything an agent needs to call it correctly is present: identifier formats, paging ceiling mechanics, format filtering, and the handoff to sibling tools. Return-value details are over-supplied rather than missing.

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 description mostly restates what the schema already documents — the same format examples ('DjVuTXT', 'Text PDF', 'VBR MP3'), the same default of 50, and the same offset-increment advice. The sentence 'Pages hold up to max_files files ... starting at file_offset' usefully frames the three paging parameters together, but adds little meaning beyond the schema.

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?

The description opens with a specific verb+resource pair ('Retrieve metadata and the file manifest for an Internet Archive item by identifier') and immediately names the sibling relationship to ia_search_items (source of identifiers) and ia_get_text (the readable-text alternative). An agent can distinguish this from all four listed siblings without opening a schema.

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

Usage Guidelines5/5

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

It states explicitly that this is 'the primary tool to act on a search result from ia_search_items' and redirects text retrieval to ia_get_text, which is a concrete when-to-use/when-to-use-other pair. It also supplies the operational exclusion that private files cannot be downloaded.

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.