Skip to main content
Glama
ianderso
by ianderso

reindex_search

Idempotent

Rebuild the full-text search index for a Gramps Web tree after large imports or when searches miss known records; returns a task_id to poll for completion.

Instructions

Rebuild the full-text index behind Gramps Web's search box.

The server updates the index in the background after each write. Rebuild it after a large import, or when search misses something the tree holds. Returns a task_id to poll with get_job.

Input Schema

NameRequiredDescriptionDefault
fullNoRebuild from scratch rather than updating incrementally. Slower, and the right choice after a large import.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds real value beyond that: the rebuild runs in the background and returns a task_id that must be polled with get_job. It stops short of saying whether search is degraded during the rebuild or how long it typically takes.

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?

Three short sentences, front-loaded with the action, then the trigger, then the return handle. Nothing is repeated from the schema and no sentence is filler.

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?

With no output schema, the description correctly supplies the one return detail that matters (task_id, poll via get_job) and covers the trigger conditions. Nothing an agent needs to invoke this correctly is missing.

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%, so the single 'full' flag's meaning, default, and tradeoff are already documented in the schema. The description only echoes the 'large import' motivation without adding format or precedence detail. Baseline 3 is correct.

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?

States a specific verb and resource ('Rebuild the full-text index behind Gramps Web's search box') plus the scope of the rebuild. No sibling tool performs indexing, and the description makes that role self-evident without requiring the agent to compare schemas.

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?

Gives explicit triggers ('after a large import, or when search misses something the tree holds') and an implicit when-not: the server already updates the index after each write, so a rebuild is normally unnecessary. That is exactly the decision context an agent needs.

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