Skip to main content
Glama

Build FTS Index

mail_fts_index
Idempotent

Build or update the full-text search index for email bodies so body searches work; choose a full re-index or an incremental update after new mail arrives.

Instructions

Build or update the full-text search index for email bodies. Run with rebuild=true for a full re-index, or rebuild=false (default) for incremental updates. Use when: preparing for body search, updating search index after new emails

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_index"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax messages to process per batch
rebuildNoFull rebuild (true) or incremental update (false)

Output Schema

NameRequiredDescriptionDefault
totalYes
indexedYes
skippedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the agent knows this is a non-destructive, repeatable write. The description reinforces the full-vs-incremental distinction but adds nothing about cost, duration, whether searches are degraded during a rebuild, or whether it can run concurrently with mail operations. Given the annotations carry the safety profile, this is adequate but thin.

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 core action and the rebuild branch are front-loaded in the first two sentences, with usage triggers appended. Wording is economical with no filler, though the 'Use when' fragment is slightly clipped and could read more cleanly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is a simple two-parameter index maintenance operation with an output schema and full annotation coverage, so most of the burden is already met. However, for an index rebuild the agent would benefit from knowing expected runtime or batching implications of the limit parameter, which the description never addresses.

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?

Schema description coverage is 100% and both parameters (limit, rebuild) already have descriptions including defaults, minimums and maximums. The description's explanation of rebuild merely restates the schema wording, so it adds no new semantic meaning. Baseline 3 applies.

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 states a specific verb and resource: 'Build or update the full-text search index for email bodies', which clearly separates it from search tools like mail_search_body and from the sibling mail_fts_stats. It stops short of naming any sibling explicitly, so an agent must infer that this tool is the maintenance operation rather than a query.

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?

It gives an explicit 'Use when' clause covering the two main triggers (preparing for body search, updating after new emails) and ties rebuild=true to a full re-index versus the default incremental path. There is no stated when-not guidance, e.g. that this should not be run before every single search, and no named alternative such as mail_fts_stats for inspection.

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