Skip to main content
Glama
telota

bbaw-dse-mcp

by telota

sd_search_documents

Search for documents in Schleiermacher Digital by text, document type, and date. Filter results to locate letters, diaries, lectures, and other scholarly materials.

Instructions

Search documents in Schleiermacher Digital via eXist-db with facets.

PURPOSE: Primary search tool for finding documents by text, type, year, etc.

WHEN TO USE:

  • Full-text search in documents

  • Filter by document type (letter, diary, lecture, etc.)

  • Filter by year or date range

  • Any search query for document discovery

WHEN NOT TO USE:

  • For structured letter filtering by sender/receiver → use filter_letters()

  • For register search (persons, places) → use search_register()

  • For detailed text passages → use get_document_passages()

⚠️ CITATION WARNING: Only cite documents returned by this tool. Each result includes:

  • document_id: Use this EXACT value for citations

  • citation_url: Use this EXACT URL, do not construct your own NEVER invent document IDs or URLs that were not returned in the results.

Valid doc_types (from index):

  • "letter" or "letter fs" (8071 documents)

  • "lecture" or "lecture fs" (143 documents)

  • "chronology" (61 documents)

  • "intro" (42 documents)

  • "chronology-intro" (29 documents)

  • "diary" or "diary fs" (21 documents)

Args: query: Search terms (space-separated for multiple terms) doc_types: Filter by document types (letter, letter fs, diary, diary fs, lecture, lecture fs, chronology, intro) years: Filter by years (e.g., ["1810", "1811"]) date_from: Earliest date (ISO 8601, e.g., "1810-01-01") date_to: Latest date (ISO 8601, e.g., "1815-12-31") include_commentary: If True, search in commentary too (default: True) use_or_logic: If True, use OR between terms (default); if False, use AND limit: Maximum results (default: 50) ctx: FastMCP Context

Returns: List of SearchResult objects with document_id, title, type, date, kwic_snippets, and citation_url

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitYes
queryYes
yearsNo
date_toNo
date_fromNo
doc_typesNo
use_or_logicYes
include_commentaryYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description carries the full behavioral transparency burden. It goes well beyond a simple action statement by including a CITATION WARNING (never invent IDs/URLs, use exact values), explaining search logic (include_commentary, use_or_logic), mentioning the underlying eXist-db platform, and documenting the return fields (document_id, citation_url, etc.). This provides rich behavioral context for the agent, including a critical safety rule about citations.

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 description is well-organized with clear headings (PURPOSE, WHEN TO USE, WHEN NOT TO USE, CITATION WARNING, Valid doc_types, Args, Returns), making it easy to scan. It is verbose, though, with some redundancy: the opening one-liner 'Search documents...' repeats the PURPOSE, and the Valid doc_types list repeats the doc_types from Args while adding counts that may not be essential. Still, every section contributes value overall.

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?

The description covers all 8 parameters, return format, citation handling, and usage context, which is highly complete for a search tool. The main omission is lack of comparison with the sibling mop_search_documents, which represents a contextual ambiguity. Additionally, the 'ctx' parameter is only mentioned as 'FastMCP Context' with no explanation, though its purpose may be obvious from the framework. These minor gaps prevent a perfect score.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0% description coverage, so the parameter explanations in the description are essential. The Args section defines every parameter with meaning and examples: query as space-separated terms, doc_types with allowed values, years as list, date_from/date_to with ISO 8601 format, include_commentary and use_or_logic booleans with defaults, and limit with default. This fully compensates for the schema's lack of descriptions.

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?

The description clearly states 'Search documents in Schleiermacher Digital via eXist-db with facets' and elaborates with a PURPOSE section, naming the tool as the primary search tool for documents by text, type, year, etc. It distinguishes from several siblings in the WHEN NOT TO USE section (filter_letters, search_register, get_document_passages), but it does not differentiate from the sibling tool 'mop_search_documents', which has a nearly identical name and function. Thus it is clear but not fully distinguishing across the sibling set.

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 provides an explicit WHEN TO USE list (full-text search, filtering by type/year, any document discovery) and a WHEN NOT TO USE list naming three specific alternatives. However, it omits guidance on when to use mop_search_documents instead, which is a direct sibling likely serving a similar role. This leaves a gap in alternative selection, though the provided guidance is otherwise excellent.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/telota/bbaw-dse-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server