Skip to main content
Glama

Search Entries

search_entries
Read-onlyIdempotent

Search journal entries using keyword, semantic, or hybrid matching; filter by GitHub project, issue, PR, or action, and sort by importance to surface relevant decisions.

Instructions

Search journal entries. Use sort_by: "importance" to surface structurally significant entries before major decisions. Supports modes: auto (default), fts, semantic, hybrid. Optional filters for GitHub Projects, Issues, PRs, and Actions. FTS5 syntax: "exact phrase", prefix*, OR/NOT/AND. Word-boundary matched. Automatically merges team DB results when TEAM_DB_PATH is configured.

Input Schema

NameRequiredDescriptionDefault
modeNoSearch strategy: auto (default, heuristic-based), fts (FTS5 keyword), semantic (vector), hybrid (RRF fusion of FTS5+vector)auto
tagsNo
limitNo
queryNoThe search query string (use `query`, not `q`)
cursorNoCursor for pagination
sort_byNoSort results by timestamp (default) or importance scoretimestamp
end_dateNo
pr_numberNo
pr_statusNo
entry_typeNo
fts_weightNoWeight multiplier for FTS5 results in hybrid search (default: 1.0)
start_dateNo
exact_matchNoLegacy hallucinated alias. Maps exact_match: false to fuzzy_match: true
fuzzy_matchNoIf true and no exact FTS5 results found, returns typo-tolerant suggestions (fts mode only)
is_personalNo
auto_correctNoIf true and fuzzy_match=true, automatically runs a new search with the best suggestion if distance <= 1
include_teamNoInclude team entries in the search results
issue_numberNo
workspace_idNoOptional workspace isolation identifier (e.g. "alpha"). Do not use numeric project IDs or "workspace" as the key. [ANTI-HALLUCINATION] If an entry is missing, it might belong to another workspace. Set workspace_id: "*" to search globally.
include_facetsNoInclude facet distributions (tags, entry types) for the search results
project_numberNo
semantic_weightNoWeight multiplier for semantic results in hybrid search (default: 1.0)
workflow_run_idNo
include_archivedNo
include_highlightsNoInclude snippets with matched terms highlighted (only applies to fts mode)

Output Schema

NameRequiredDescriptionDefault
codeNoError code (e.g. VALIDATION_ERROR, INTERNAL_ERROR)
countNo
errorNoHuman-readable error message
facetsNoDistribution counts when include_facets is true
detailsNoAdditional error context
entriesNo
successNo
categoryNoError category (validation, query, connection, internal)
degradedNoTrue if the search degraded to a slower fallback method due to infrastructure failure
highlightsNoFTS5 search snippets when include_highlights is true
searchModeNo
suggestionNoSuggested fix for the error
next_cursorNoCursor for the next page of results
recoverableNoWhether the error is recoverable
suggestionsNoFuzzy matches when fuzzy_match=true and no exact results were found
correctedQueryNoThe corrected query when auto_correct=true and a confident match was found
aggregated_errorsNoDetails of individual errors in a multi-step operation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv9.0.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: auto-merging of team DB results when TEAM_DB_PATH is configured, word-boundary matching, and how the mode heuristic behaves. It stops short of describing result ordering/pagination behavior, but it meaningfully reduces uncertainty.

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?

Five compact sentences with the core purpose first, then advanced usage, then syntax quirks — front-loaded and mostly waste-free. The GitHub-filter sentence is thin enough that it borders on filler, but nothing is redundant.

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?

Given 25 parameters and a modest 52% coverage, plus an output schema that removes the need to explain return values, the description covers the high-risk ambiguities (mode choice, FTS syntax, workspace/team merging) but leaves pagination, default filters, and half the filter parameters to the schema alone. Adequate but not complete for a tool this broad.

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 coverage is only 52% across 25 parameters, so the description must carry weight. It does explain mode semantics, sort_by, and the FTS5 query syntax (exact phrase, prefix*, boolean operators), which is genuinely useful. But it says nothing about limit, cursor pagination, tag filtering, include_team, include_archived, or the GitHub filter fields, so roughly half the surface remains undocumented.

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+resource ('Search journal entries') and enumerates the search modes (auto/fts/semantic/hybrid) plus the filter domain (GitHub Projects, Issues, PRs, Actions). It's clear what the tool does, though it never explicitly distinguishes itself from close siblings like semantic_search, search_by_date_range, or team_search.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives one concrete usage cue ('Use sort_by: "importance" ... before major decisions') and explains the mode options, but gives no when-not guidance and no routing to alternatives such as semantic_search (semantic-only), search_by_date_range, get_recent_entries, or team_search. An agent still has to infer which sibling to pick.

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

Deploy Server

Other Tools