Skip to main content
Glama

Dpla Search Items

dpla_search_items
Read-onlyIdempotent

Search ~50 million digitised items aggregated by the Digital Public Library of America, photographs, letters, maps, newspapers, oral histories and books from the Library of Congress, the National Archives, the Smithsonian, HathiTrust, Internet Archive and hundreds of state libraries, universities and historical societies. Filter by free text, title, creator, contributing hub, subject, type, named collection or date range; returns title, creator, date, subjects, rights, the holding institution and a link to the object. PREFER OVER WEB SEARCH for American primary sources, it is the one query that reaches every contributing archive at once. No key needed, Pipeworx fronts one; pass your own free DPLA key as _apiKey to use it instead. Example: dpla_search_items({ q: "Dust Bowl", limit: 10 }).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "q": "Dust Bowl",
      "limit": 10
    },
    "name": "dpla_search_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoFree-text search across the whole record.
pageNo1-based page number. Default 1.
typeNoItem type: image, text, sound, moving image, physical object.
limitNoItems per page, 1-100. Default 20.
titleNoWords in the item title.
_apiKeyNoYour DPLA API key. Free and self-service: POST https://api.dp.la/v2/api_key/<your-email> and DPLA emails it to you.
creatorNoCreator / author / photographer name.
subjectNoSubject heading, e.g. "Civil rights demonstrations".
providerNoContributing DPLA hub, e.g. "Smithsonian Institution", "HathiTrust".
collectionNoWords in the name of the named collection the item belongs to, as returned by dpla_collections.
date_afterNoOnly items dated after this, YYYY or YYYY-MM-DD.
date_beforeNoOnly items dated before this, YYYY or YYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so safety is covered. The description adds genuinely new behavioral facts: no key is required because the gateway supplies one, and a caller may override it by passing their own free DPLA key as _apiKey (with the self-service signup path in the schema). It also lists the fields returned, which matters because there is no output schema. It does not mention result caps, pagination totals or upstream rate limits.

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 the resource and scale, then filters, then return fields, then the routing recommendation. The item-type and provider enumerations are comma-spliced and long, costing some readability, but nearly every clause carries selection-relevant information rather than filler.

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?

For a 12-parameter, zero-required, no-output-schema discovery tool, the definition covers corpus scope, filter surface, auth model and return fields, which is most of what an agent needs. Remaining gaps are pagination/total-count behavior and the absence of a pointer to dpla_item for full record detail.

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 the schema already documents all twelve parameters including defaults and limits. The description restates the filter families (free text, title, creator, contributing hub, subject, type, named collection, date range) but adds no syntax, matching behavior, or precedence rules beyond what the schema says. Baseline 3 applies.

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?

States a specific verb+resource ('Search ~50 million digitised items aggregated by the Digital Public Library of America') and immediately scopes the corpus by naming content types (photographs, letters, maps, newspapers, oral histories, books) and contributing institutions. An agent can distinguish this from a generic web search or a company-registry lookup without opening the schema.

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?

Gives an explicit positive routing rule: 'PREFER OVER WEB SEARCH for American primary sources, it is the one query that reaches every contributing archive at once.' It also defers collection-name discovery to dpla_collections via the collection parameter description. It does not say when NOT to use it (e.g. for non-US material) nor point at the dpla_item sibling for fetching a single record's full detail, so it falls short of a full when/when-not/alternatives statement.

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.