Skip to main content
Glama
mcp-libraryofcongress

mcp-libraryofcongress

List the digital collections

list_collections
Read-onlyIdempotent

List Library of Congress digital collections to find curated corpora and the collection filters needed before searching catalogue items.

Instructions

List the digital collections of the Library of Congress: bodies of material a curator chose, described and published together. Use it to see what is there before searching, since a collection names a corpus that a query would have to guess at. 'collection_filter' on each row is the wording search_items takes as its 'collection' argument, and 'searchable_media_types' names the catalogues that filter can be sent to. A collection whose 'searchable_media_types' is empty gathers a kind of thing the catalogue search is not divided into, such as web archives; set 'searchable_only' to leave those out. 'item_count' is how many records the collection gathers, which is the size of the corpus rather than the number of rows here.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_collections"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoWhich page of collections, from 1.
limitNoCollections to return.
searchable_onlyNoKeep only the collections whose formats name a media_type, which are the ones search_items can be asked for.
max_description_charsNoBudget for one collection's description.

Output Schema

NameRequiredDescriptionDefault
pageYes
notesYes
totalYesCollections the Library publishes, not the number returned.
collectionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv3.1.0
    • removedOutput schema / properties / collections / items / properties / description / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / collections / items / properties / description / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / collections / items / properties / identifier / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / collections / items / properties / identifier / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / collections / items / properties / items_url / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / collections / items / properties / items_url / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. Changed5 schema fields changedv2.1.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / searchable_only
      Added value: +{
      +  "default": false,
      +  "description": "Keep only the collections whose formats name a media_type, which are the ones search_items can be asked for.",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / collections / items / properties / collection_filter / description
      Previous value: -"Pass as 'collection' to search_items to keep results within this collection."New value: +"Pass as 'collection' to search_items, together with one of 'searchable_media_types', to keep results within this collection."
    • addedOutput schema / properties / collections / items / properties / searchable_media_types
      Added value: +{
      +  "description": "The 'media_type' values search_items can be asked with for this collection, read off the formats the Library publishes for it. Empty when none of those formats names a catalogue.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / collections / items / required
      Previous value: -[
      -  "identifier",
      -  "title",
      -  "collection_filter",
      -  "description",
      -  "item_count",
      -  "subjects",
      -  "formats",
      -  "source_url",
      -  "items_url"
      -]New value: +[
      +  "identifier",
      +  "title",
      +  "collection_filter",
      +  "searchable_media_types",
      +  "description",
      +  "item_count",
      +  "subjects",
      +  "formats",
      +  "source_url",
      +  "items_url"
      +]
  3. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world behavior, so safety needs no restatement. The description adds genuine context beyond that: it explains that 'item_count' is corpus size rather than returned row count, and that empty 'searchable_media_types' marks material the catalogue search cannot express (e.g. web archives). Remaining gap is pagination/total-count behavior.

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?

Front-loaded with purpose and then field semantics in a compact sequence, with no filler sentences. It is somewhat dense and long for a list tool, and the aside 'bodies of material a curator chose, described and published together' is ornamental rather than operational.

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?

With an output schema and full annotation coverage, the description supplies exactly what is missing: why to call it, how its output feeds search_items, and the meaning of the two non-obvious fields. Nothing an agent needs in order to call it correctly and interpret the result is absent.

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?

Schema coverage is 100%, so the baseline is 3, but the description earns above baseline by explaining the consequence of 'searchable_only' in domain terms (excluding collections with empty searchable_media_types, such as web archives) rather than just restating the schema's wording. 'page', 'limit' and 'max_description_chars' are left entirely to 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?

A specific verb plus resource ('List the digital collections of the Library of Congress') with an added definition of what a collection is. It is clearly distinguishable from search_items, which it names as the downstream consumer of the 'collection_filter' values returned here.

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?

Explicitly states when to use it ('see what is there before searching, since a collection names a corpus that a query would have to guess at') and ties the returned 'collection_filter' to search_items' 'collection' argument. It also gives when-to-set guidance for 'searchable_only' and what an empty 'searchable_media_types' means.

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