Skip to main content
Glama
Library of Congress MCP Server

Library of Congress MCP Server

by wmo4buva

loc_search_format

Search Library of Congress digital collections within a chosen material format—audio, books, films, maps, photos, and more—to find relevant items by query, facets, and pagination.

Instructions

Search within a specific format/type of Library of Congress materials (audio, books, films, maps, photos, etc.)

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": {
      "format": "<format>"
    },
    "name": "loc_search_format"
  }
}

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
facetsNoFilter results by facets
formatYesMaterial format to search within

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/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 disclosure burden, and it adds nothing beyond purpose: no statement that results are paginated, no default page size, no note on sort behavior, and no indication of what a result record contains. The read-only nature is only weakly implied by 'Search'.

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?

A single front-loaded sentence with no filler; the format scoping is stated first. It is arguably too terse for a six-parameter tool, but nothing is wasted.

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

Completeness3/5

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

With a fully documented schema and no output schema, the description covers the minimum an agent needs to select the tool. It is still thin for a search tool: no guidance on combining query with facets, on pagination limits, or on result shape.

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 coverage is 100%, so all six parameters including enums and pagination defaults are already documented, which sets the baseline at 3. The description's examples ('films') do not match the actual enum value ('film-and-videos'), a small inconsistency that could mislead rather than help.

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 ('Search') and resource ('Library of Congress materials') scoped to a single format/type, which distinguishes it from a general loc_search. The parenthetical examples make the format scoping concrete, though it never names the sibling it differs from.

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?

Usage is implied by 'within a specific format/type' — an agent can infer this is the tool to pick when a material type is known. However, there is no explicit when-to-use versus loc_search, no exclusions, and no note on what happens if format is omitted (it is required).

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