Skip to main content
Glama
LanGuo

ats serve

by LanGuo

chunk_search

Search raw conversation chunks from past agent sessions using hybrid BM25 and semantic retrieval; optionally filter by session or workspace and return ranked matches.

Instructions

Search raw conversation chunks from agent session history using hybrid BM25 + semantic search.

Args: query: Natural language query session_id: Optional — restrict to a specific session (full ID) top_k: Number of chunks to return (default 20) include_graph: Expand top hits with chunks (from any session) that mention the same entity — a cross-session hop via shared file/commit/PR/etc. workspace: Optional — restrict to one project/workspace (substring match)

Returns: JSON list of chunks with chunk_text, session_id, chunk_index, and rrf_score

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
top_kNo
workspaceNo
session_idNo
include_graphNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it does reasonably well: it explains that include_graph performs a cross-session hop via shared entities, that session_id must be a full ID, and that workspace matches by substring. It does not state read-only/rate-limit characteristics, but for a search tool that is a minor gap.

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?

Front-loaded purpose sentence followed by Args/Returns blocks; each line is informative and none is filler. Slightly more verbose than strictly needed but well structured.

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?

With an output schema present, the description need not enumerate return fields, and it correctly gives only a brief Returns summary. It is complete for calling the tool, though the missing routing guidance against siblings leaves a small gap.

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

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and there are 5 params, so the description must compensate entirely, and it does: it documents query, session_id (full ID, optional), top_k (default 20), workspace (substring match), and include_graph with its cross-session expansion semantics.

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 raw conversation chunks from agent session history) plus the retrieval mechanism (hybrid BM25 + semantic). Clear enough to separate from graph_walk and recall, though it never states what those siblings do.

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

Usage Guidelines2/5

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

No explicit when-to-use or when-not-to-use guidance relative to recall or graph_walk. The include_graph note hints at graph-style behavior but the description never names an alternative tool or the condition that should select it.

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