Skip to main content
Glama

Search Library of Congress

media.loc.search
Read-onlyIdempotent

Search 415K+ digitized historical items at LOC (photos, manuscripts, maps, newspapers, films, rare books). Filter by online format (image/audio/video/text/web archive) or collection slug. Public domain by US statute (17 USC §105)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number for pagination (1-based).
limitNoResults per page (default 20, max 50).
queryYesFree-text search across LOC's 415K+ digitized items (e.g. "civil war", "suffrage", "lincoln").
formatNoOptional filter by online format — image, audio, film/video, online text, or web archive.
collectionNoOptional collection slug to scope the search (e.g. "rosa-parks-papers").

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already provide readOnlyHint, destructiveHint, idempotentHint, openWorldHint, so the agent knows the tool is safe and read-only. The description adds useful context about public domain status (17 USC §105) and the types of content, enhancing transparency beyond annotations.

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

Conciseness5/5

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

The description is concise at three short sentences, front-loaded with the core purpose. Every sentence adds value: search scope, filter options, and legal status. No unnecessary words.

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?

Given the tool has 5 parameters and an output schema, the description covers search scope, filters, and legal status. Pagination is handled by schema. It is complete enough for an agent to understand the tool's purpose and basic usage, though it could mention that results are paginated or include the total count.

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 100% schema description coverage, the schema already describes all 5 parameters adequately. The description restates filter options (format and collection) but adds minimal new meaning beyond what's in the parameter descriptions.

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 clearly states the tool searches 415K+ digitized historical items at LOC, listing specific item types (photos, manuscripts, etc.). It distinguishes from sibling tools like media.loc.collections (lists collections) and media.loc.item (gets item details) by focusing on search over the entire digitized corpus.

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

Usage Guidelines4/5

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

The description implies usage for searching historical items with filters, but does not explicitly state when not to use it or mention alternatives like media.loc.item for individual details. However, the context is clear enough for an agent to infer appropriate use.

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.