Skip to main content
Glama

chatlog_search

Search chat logs with FTS5 keyword matching or apply filters by conversation, agent, model, and time for precise retrieval.

Instructions

Search chat_log rows. FTS5 keyword when query is non-empty; filter-only when empty.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kNo
queryYes
sinceNo
untilNo
agent_idNo
databaseNo
model_idNo
providerNo
host_agentNo
search_modeNohybrid
conversation_idNo
Behavior2/5

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

With no annotations, the description must disclose behavioral traits. It mentions the FTS5 vs filter mode based on query emptiness but omits other behaviors like result limits, pagination, sorting, or side effects (presumably read-only). There is no mention of how parameters like k, since, until interact.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences that front-load the main functional purpose. No wasted words; every part adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 11 parameters, no output schema, and no annotations, the description is insufficient for an agent to fully understand the tool's capabilities and usage. It does not explain return values, pagination, or how filters combine.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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. It explains the query parameter's role in switching modes but leaves all other parameters (k, since, until, etc.) unexplained beyond their schema titles and defaults.

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?

Clearly states it searches chat_log rows and distinguishes between full-text search (FTS5) when query is non-empty and filter-only when empty. This differentiates it from siblings like chatlog_status or chatlog_write.

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?

Implies usage: use keyword search when query is non-empty, otherwise it filters. No explicit guidance on when to use this tool over alternatives like memory_search or chatlog_status, nor exclusions or prerequisites.

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/skynetcmd/m3-memory'

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