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" }).

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": "Civil War",
      "limit": 10
    },
    "name": "dpla_collections"
  }
}

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.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds real context beyond that: the tool is backed by the item search's collection-title facet because DPLA retired its separate collections endpoint, and no key is required unless the caller supplies `_apiKey`. It stops short of describing pagination or result ordering, though ordering is picked up in the schema.

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?

The purpose and scope lead, followed by the mechanism, the usage guidance, the auth note and a worked example. It is one dense paragraph and the endpoint-retirement aside is slightly expendable, but almost every sentence carries decision-relevant information.

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?

There is no output schema, and the description compensates by stating that each returned collection includes how many matching items it holds. Combined with the filter semantics and auth behaviour, an agent has what it needs to call this correctly; only ordering and pagination behaviour are absent from the prose.

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 description coverage is 100%, so the baseline is 3. The description nonetheless adds meaning beyond the field docs by explaining that `q` matches against items inside a collection (not the collection name) and that `title` matches words in the collection name, clarifying how the two filters differ in effect.

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 states a specific verb-equivalent and resource: named collections inside DPLA's contributing institutions that hold material on a topic, including the curated-grouping framing (subject, donor, project) and item counts. It is clearly distinguishable from dpla_search_items (which pulls records) and dpla_item (which fetches a single item), so an agent can route without opening schemas.

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?

It gives an explicit when-to-use: survey how libraries have organised a subject before pulling records with dpla_search_items({ collection }). It also explains the division of labour between the `q` and `title` filters and notes the underlying facet, which is exactly the guidance needed to pick the right filter.

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.