Skip to main content
Glama
Day One MCP Server

Day One MCP Server

fts_search

Search journal entries with relevance-ranked full-text queries. Supports phrases, prefixes, boolean and proximity search plus filters by journal, year, date range, and starred status.

Instructions

Full-text search with relevance ranking.

Uses FTS5 for fast, ranked search results. Must run fts_sync first to build/update the search index.

Query syntax: - Basic terms: startup ideas (matches entries with both words) - Phrases: "morning run" (exact phrase match) - Prefix: build* (matches build, building, builder) - Boolean NOT: startup NOT fintech (has startup, excludes fintech) - Boolean AND: startup AND ideas (explicit AND, same as space) - Boolean OR: startup OR ideas (either term) - Proximity: NEAR(morning run, 5) (words within 5 tokens of each other)

Note: "AND NOT" is not valid syntax - use just "NOT" instead.

Results are ranked by relevance (BM25), not by date.

Args: query: FTS5 search query (see syntax above) limit: Maximum number of results (1-50, default 20) journal: Optional journal name filter starred_only: Only return starred entries year: Optional year filter (e.g., 2024) date_from: Optional start date filter (YYYY-MM-DD) date_to: Optional end date filter (YYYY-MM-DD) full_text: If True, returns complete entry text instead of snippet

Returns: Formatted search results with relevance-ranked snippets

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "fts_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNo
limitNo
queryYes
date_toNo
journalNo
date_fromNo
full_textNo
starred_onlyNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/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 delivers meaningful behavior: the index dependency implies staleness risk, ranking is BM25 rather than chronological, limit is capped at 50, and full_text switches from snippet to complete entry text. It omits edge cases such as empty/unbuilt index behavior and whether results are paginated.

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?

Purpose, prerequisite, and syntax are front-loaded, and the syntax bullet list plus the explicit 'AND NOT is not valid' warning earn their space. The trailing Args block largely mirrors the schema, but since the schema has zero descriptions it is not truly redundant.

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?

For an eight-parameter search tool with no annotations, the definition covers the prerequisite sync step, the ranking model, query dialect with examples, all parameters, and a short return summary; the presence of an output schema means return structure needn't be spelled out. An agent has everything needed to call this correctly.

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?

Schema description coverage is 0%, so the description must compensate, and it does: all eight parameters are explained, including the 1-50 limit range, date formats (YYYY-MM-DD), and an extensive mini-doc for the FTS5 query syntax with examples for phrases, prefixes, NOT, AND, OR, and NEAR. Remaining gaps are minor, e.g. whether 'journal' is an exact or partial match.

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 opens with a specific verb+resource ('Full-text search with relevance ranking') and clarifies the result ordering ('ranked by relevance (BM25), not by date'), which implicitly separates it from date-ordered siblings like read_recent_entries. It never explicitly names which sibling to prefer, so an agent must infer the search_entries vs fts_search split.

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 states an explicit precondition — 'Must run fts_sync first to build/update the search index' — which is the key usage gate for this tool. It does not state when to choose this over search_entries or when a simple listing would suffice, so guidance is clear but not complete routing.

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