Skip to main content
Glama

Collection statistics

get_statistics
Read-onlyIdempotent

Summarizes the indexed collection—document counts, errors, file sizes, and counts by file type and folder—so you can answer collection-wide questions and discover folder names for filtering.

Instructions

Summarize the indexed collection: number of documents, documents with errors, total file size and text, and counts per file type and per folder. Use it for questions about the collection as a whole, and to learn the folder names the folder filter takes. Read-only. Covers only the folders indexed by RootMind that this connection may access, as of the last indexing run (files changed since may be missing). Takes no parameters. It lists no single documents; use list_documents for that.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_statistics"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.6.1

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false, and destructiveHint=false, and the description mainly restates 'Read-only.' It does add context annotations do not carry: scope limited to folders this connection may access and staleness ('as of the last indexing run (files changed since may be missing)'). It says nothing about payload size or statistical format, so the addition is modest against a fully covered annotation set.

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?

Front-loads what is returned, then use cases, then the scope caveat and the sibling exclusion. Every clause carries information; no filler and no restatement of the title.

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 zero-parameter read tool with annotations carrying the safety profile and no output schema, this covers what an agent needs: the fields returned, access scope, and the staleness caveat. Minor gaps remain, such as whether error documents are included in the totals and how the statistics are shaped.

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?

There are zero parameters, so the baseline is 4, and the description correctly states 'Takes no parameters,' heading off any attempt to pass filters. Scope wording also implies results cannot be narrowed by argument.

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?

Specific verb and resource, with an enumeration of exactly what is summarized: document counts, documents with errors, total file size and text, and counts per file type and per folder. It also contrasts with list_documents, so an agent can distinguish it from list_documents, get_document_info, and the search tools without opening a schema.

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?

States two concrete use cases ('questions about the collection as a whole' and learning folder names for the `folder` filter) and an explicit exclusion with the alternative: 'It lists no single documents; use list_documents for that.'

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