Skip to main content
Glama

Dpla Collections

dpla_collections
Read-onlyIdempotent

Which named collections inside DPLA's contributing institutions hold material on a topic — the curated groupings an archive defines around a subject, a donor or a project — each with how many matching items it holds. Backed by the collection-title facet of DPLA's item search (DPLA retired its separate collections endpoint), so q scopes the list to collections whose items match the text and title matches words in the collection name. Use it to see how American libraries have organised a subject before pulling records with dpla_search_items({ collection }). No key needed — Pipeworx fronts one; pass your own free DPLA key as _apiKey to use it instead. Example: dpla_collections({ q: "Civil War" }).

Input Schema

NameRequiredDescriptionDefault
qNoFree text; lists the collections whose items match it.
limitNoMaximum collections to return, 1-200. Default 20. Ordered by item count, most first.
titleNoWords in the collection name.
_apiKeyNoYour DPLA API key. Free and self-service: POST https://api.dp.la/v2/api_key/<your-email> and DPLA emails it to you.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations cover safety (readOnly/idempotent/non-destructive), and the description adds real context beyond them: it explains the facet-based implementation, that DPLA retired its collections endpoint, and the built-in vs. user-supplied API key behavior. Slightly short of 5 for not discussing rate limits or result ordering nuances beyond 'most first'.

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?

Purpose is front-loaded and content is substantive, but the parenthetical asides and API-key footnote make it slightly denser than ideal; every sentence still carries usable information.

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 no output schema, the description still conveys the return shape ('each with how many matching items it holds'), the key handling, and the example invocation, leaving nothing an agent needs to call it correctly.

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 baseline is 3, but the description adds meaning beyond the schema by explaining how q scopes the list to collections whose items match versus how title matches words in the collection name — clarifying the interplay of the two filters.

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 resource (named collections in DPLA institutions) with what it returns (matching item counts), and clearly distinguishes it from dpla_search_items and dpla_item by scope.

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 says when to use it ('to see how American libraries have organised a subject before pulling records with dpla_search_items({ collection })'), naming the alternative tool and the sequencing. Nothing left to inference.

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.