Skip to main content
Glama
Library of Congress MCP Server

Library of Congress MCP Server

by wmo4buva

loc_search

Search Library of Congress digital collections for books, manuscripts, photos, audio, and more; filter by location, subject, or contributor and paginate results.

Instructions

Search across all Library of Congress digital collections. Use this to find books, manuscripts, photos, audio recordings, and other materials.

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": "loc_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number for pagination (default 1)
sortNoSort results by: date, date_desc, title, title_desc, shelf_id, shelf_id_desc
countNoNumber of results per page (default 25, max 100)
queryNoSearch query string (e.g., "Abraham Lincoln", "baseball", "civil war")
facetsNoFilter results by facets (e.g., ["location:ohio", "subject:baseball", "contributor:lincoln"])
attributesNoSpecific attributes to return (e.g., ["title", "date", "contributors"])

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, yet it discloses nothing beyond scope: no statement that it is read-only, no mention of pagination defaults, result caps, or whether the search spans metadata only. 'Across all collections' is the only behavioral signal of value.

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?

Two short sentences with the core action front-loaded and no filler. The second sentence's material-type list is somewhat redundant with the first sentence's 'all digital collections' but remains useful orientation.

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

Completeness2/5

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

This is a six-parameter search tool with no annotations and no output schema, so the description should explain pagination, sorting, and faceting behavior. Instead it only states that search exists, leaving an agent unable to predict result shapes or sensible parameter choices.

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%, so page, sort, count, query, facets, and attributes are all self-documenting, and the baseline is 3. The description adds nothing about query syntax, facet format, or how count interacts with pagination.

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?

It names a specific verb and resource ('Search across all Library of Congress digital collections') and enumerates the material types returned, so the agent knows what it does. It does not distinguish itself from siblings like loc_search_format or loc_get_item, which the agent must infer.

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?

'Use this to find books, manuscripts, photos, audio recordings...' implies general discovery usage but gives no when-not guidance and never mentions the sibling search or lookup tools. The agent is left to guess whether a format-specific search or an item fetch is more appropriate.

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