Skip to main content
Glama

FTS Index Statistics

mail_fts_stats
Read-onlyIdempotent

Report indexed message count, total messages, and index size to verify full-text search is current and diagnose search issues.

Instructions

Get statistics about the full-text search index: how many messages are indexed, total messages, index size. Use when: checking if FTS index is up to date, diagnosing search issues

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": "mail_fts_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
response_formatNoOutput format: 'json' for structured data, 'markdown' for human-readable textjson

Output Schema

NameRequiredDescriptionDefault
dbSizeMbYes
indexedCountYes
totalMessagesYes
lastIndexedRowidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare this read-only, idempotent, closed-world and non-destructive, so the safety profile is fully covered. The description adds the diagnostic framing but nothing further about cost, latency, or freshness of the returned counters, which is where the marginal value would be.

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?

Two tight sentences: the payload is front-loaded, the field list is informative rather than padding, and the when-to-use clause follows without any redundant restatement.

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 tool is simple, the single parameter is fully described in the schema, and an output schema exists so return values need not be explained. What is missing is minor: no hint about whether the stats are live or cached, and no pointer to the sibling that performs the actual indexing.

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

Parameters3/5

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

Only one optional parameter exists and the schema documents its enum and default at 100% coverage, so the baseline applies. The description adds no information about response_format or how the two output shapes differ.

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 gives a specific verb ('Get statistics') and resource ('full-text search index'), and enumerates what the stats contain (indexed messages, total messages, index size). It implicitly separates itself from mail_fts_index by reporting counts rather than building the index, though it never names that sibling explicitly.

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 'Use when' clause gives concrete triggers: verifying the index is current and diagnosing search problems. It stops short of an explicit exclusion ('do not use to rebuild the index; use mail_fts_index'), so the agent must infer the boundary.

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