Skip to main content
Glama
telota

bbaw-dse-mcp

by telota

sd_get_collection_stats

Retrieve document counts and metadata for a collection to assess its size and content before browsing or searching. Provides quick statistics to verify data availability.

Instructions

Get statistics about documents in a collection.

PURPOSE: Understand the size and content of a collection.

WHEN TO USE:

  • User asks "how many documents are there?"

  • Getting an overview before browsing/searching

  • Verifying data availability

Args: collection: Collection path (relative to data_path). Empty = root.

Returns: CollectionStats object with document counts and metadata

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collectionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesFull path to the collection
total_filesYesTotal number of files
tei_documentsYesNumber of TEI documents
Behavior3/5

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

No annotations are provided, so the description must convey behavior. It states that it returns a CollectionStats object and describes the collection parameter, implying a read-only operation. However, it does not explicitly deny side effects, mention permissions, or discuss limitations, so it is adequate but not comprehensive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections (PURPOSE, WHEN TO USE, Args, Returns) and no wasted words. It is compact yet informative, staying within a few sentences.

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?

For a tool with one parameter and an output schema, the description provides sufficient guidance for an agent to decide when and how to invoke it. It covers the main use cases, parameter meaning, and return type, making it a complete standalone description.

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 schema only defines a single string parameter with a default. The description adds critical context: 'collection' is a path relative to data_path, and an empty value represents the root collection. This fully compensates for the 0% schema description coverage.

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 opens with 'Get statistics about documents in a collection' and includes a PURPOSE section clarifying it measures size/content. This clearly distinguishes it from sibling tools like sd_list_collections or sd_list_collection_contents.

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 WHEN TO USE section gives concrete scenarios (e.g., 'how many documents are there?') and advises using it before browsing/searching. It does not explicitly state when not to use it or name alternative tools, so it is clear but lacks exclusionary guidance.

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