Skip to main content
Glama
yomi

yomi

Official
by RikaiDev

search_messages

Search LINE messages using hybrid keyword and semantic ranking to find exact terms or paraphrases, returning an explicit mode so you know which matching produced the results.

Instructions

Search across your LINE messages. Hybrid ranking: FTS5 keyword search (covers every indexed message, so exact matches are never dropped) fused with semantic similarity when embeddings are available — the mode field reports which contributed (hybrid | semantic | keyword). Semantic ranking runs only when the vector index covers enough of the corpus and only within a timeout; otherwise the search degrades to the keyword index and says so in mode. If the index is empty and a session is live, it auto-collects the conversations within a time budget first; a populated index searches locally with no network. Empty index with no session returns an honest notice, never a fabricated match list.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (default 20).
queryYesSearch query. Plain keywords and natural-language descriptions both work — keyword matching catches exact terms, semantic matching catches paraphrases.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.1
  2. Removedv0.3.0
  3. First observedv0.2.0

TDQS

A3.9/5.0
Behavior5/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 so well: it discloses hybrid vs keyword vs semantic ranking, the `mode` field reporting which path ran, timeout/coverage-based degradation, auto-collection with a time budget, no-network local search, and an honest empty notice instead of fabricated results. That is unusually rich behavioral context for a read tool.

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?

Roughly five dense sentences, but they are front-loaded with the ranking model and each sentence carries behavioral information rather than filler. Slightly heavy for a two-parameter tool, but nothing is wasted.

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?

For a tool with no annotations and no output schema, the description covers ranking, fallback, and empty-result behavior thoroughly. It stops short of describing result shape or how `limit` interacts with the ranking, leaving a small gap.

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 100%, so both parameters are already documented — including the query's keyword/natural-language duality, which the description merely echoes. The `limit` parameter is never mentioned in the description, so no meaning is added beyond the schema.

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 ('Search across your LINE messages') and immediately characterizes the ranking approach. It is distinguishable from siblings like search_stickers by resource, though it never explicitly names an alternative search tool.

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?

Usage is implied by the resource rather than stated. The description covers conditional paths (empty index with a live session auto-collects; populated index searches locally), but never tells the agent when to prefer this over get_chat_messages or collect_messages.

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