Skip to main content
Glama
RikaiDev

yomi

Official
by RikaiDev

collect_messages

Fetch recent messages from LINE conversations into a local cross-conversation search index for semantic search. Omit chatIds to collect all chats, or specify perChat limit. Use to backfill or reconcile the index.

Instructions

Bulk-fetch recent messages from LINE conversations into Yomi's local cross-conversation search index (LINE has no native cross-chat search). Fetches up to perChat per chat (default 100) for chatIds, or all conversations when omitted, and best-effort embeds them for semantic search — re-running also repairs any messages still missing a vector. A background capture loop keeps the index current on its own, so call this only to force a reconcile or backfill specific chats. Undecryptable messages are skipped, not fabricated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chatIdsNoLINE chat/group/room MIDs to collect from, as returned by list_conversations. Omit to collect from all conversations.
perChatNoMaximum recent messages to fetch per chat (default 100).
Behavior5/5

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

With no annotations provided, the description fully discloses behavioral details: it fetches up to perChat messages, re-running repairs missing vectors, best-effort embedding, undecryptable messages skipped, and that a background loop usually handles updates. All relevant behaviors are explicitly stated.

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?

The description is well-structured and front-loaded with the main purpose. It contains all necessary information but is slightly longer than necessary. Still, every sentence adds value and it remains coherent.

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?

While the description explains behavior well, it does not mention what the agent can expect as output or return value, and there is no output schema. For a tool that fetches data, stating the outcome or structure would improve completeness.

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?

The input schema provides 100% coverage with descriptions for both parameters (chatIds and perChat). The description adds meaningful context: chatIds are MIDs from list_conversations, perChat defaults to 100, and omitting chatIds collects from all conversations. This goes beyond the schema alone.

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?

The description clearly states the tool bulk-fetches recent LINE messages into a local search index, distinguishing it from siblings like get_chat_messages and search_messages. It uses specific verbs ('bulk-fetch', 'repairs') and names the resource ('LINE conversations', 'Yomi's local cross-conversation search index').

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?

Explicitly states when to use: 'only to force a reconcile or backfill specific chats', and notes that normal updates are handled by a background loop, so this tool should not be used for routine updates. This provides clear guidance on alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RikaiDev/yomi'

If you have feedback or need assistance with the MCP directory API, please join our Discord server