Skip to main content
Glama
Day One MCP Server

Day One MCP Server

fts_sync

Synchronizes the Day One search index so new or modified journal entries become searchable, with an option to rebuild the full index when results are corrupted or out of sync.

Instructions

Sync the search index with the Day One database.

Run this to make new or modified entries searchable. The sync is incremental by default (only processes changes since last sync).

Args: full_rebuild: If True, clears and rebuilds the entire index. Use this if the index seems corrupted or out of sync.

Returns: Sync statistics (entries added, updated, duration)

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

Input Schema

NameRequiredDescriptionDefault
full_rebuildNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the default behavior is incremental (only changes since last sync) and that full_rebuild clears the entire index before rebuilding — effectively flagging the destructive path. It does not mention permissions, whether sync is blocking, or concurrency effects on searches, which are the remaining gaps for an index-mutating operation.

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?

Front-loaded with the core action, then the incremental-default note, then a structured Args/Returns block. Every sentence is useful; the only minor cost is the slightly redundant restatement of purpose in the first two lines.

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?

Given a single-parameter maintenance tool with an output schema already covering return values, the description supplies the decision-relevant facts: incremental vs full, and the corruption use case. Minor omissions (locking/concurrency, required index state) prevent a 5.

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?

Schema description coverage is 0%, so the description must compensate for the single parameter, and it does: full_rebuild is explained as a default-false switch that clears and rebuilds the whole index, with the exact symptom (corruption/out-of-sync index) that should prompt setting it. That is more than the schema conveys.

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?

States a specific verb and resource: 'Sync the search index with the Day One database,' and immediately clarifies that the effect is to make new or modified entries searchable. That makes it distinct in practice from read-only siblings like fts_search or search_entries, though no sibling is named 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?

Gives clear triggering context ('Run this to make new or modified entries searchable') plus a specific escalation condition ('Use this if the index seems corrupted or out of sync'). There is no explicit 'do not use' clause, but for a one-parameter maintenance tool the guidance is practically sufficient.

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