Skip to main content
Glama

search_via_parent

Delegate semantic search to parent process for children without embeddings. Send query and receive top-N results from shared database via signal-based communication.

Instructions

Delegate a semantic search to the parent process (or any peer with embeddings loaded). For light children spawned with THREADKEEPER_NO_EMBEDDINGS=1, this is how you reach into the shared DB's semantic index without loading PyTorch yourself.

Mechanism: posts a 'search_request' signal addressed to the parent's cid (auto-resolved via tasks.parent_cid; falls back to broadcast if none). The parent's search_proxy daemon answers with a 'search_response' signal. This tool blocks until reply or timeout_s.

scope: 'notes' (default) or 'dialog'. mode: 'hybrid'|'semantic'|'fts' (dialog scope only). k: top-N results, 1..100.

Returns formatted result lines, or 'timeout' if no parent answers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
kNo
scopeNonotes
modeNohybrid
timeout_sNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden and discloses the tool's blocking nature, signal-based mechanism, fallback to broadcast, and return values (formatted lines or 'timeout'). It does not mention idempotency or side effects, but the read-only nature is implied.

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?

The description is efficiently structured with a clear purpose statement, mechanism explanation, and parameter list. Every sentence adds value without redundancy. It is front-loaded and uses simple formatting.

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

Completeness5/5

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

Despite 5 parameters and no annotations or output schema details, the description covers the tool's trigger, blocking behavior, timeout, parameter options, and return format. It is sufficiently complete for an agent to use correctly.

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?

With schema description coverage at 0%, the description fully compensates by explaining each parameter: query (required), scope (notes or dialog), mode (hybrid, semantic, fts with scope constraint), k (1-100), and timeout_s. It adds enumeration and defaults not present in the schema.

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's purpose: 'Delegate a semantic search to the parent process' for children without embeddings. It distinguishes from sibling search tools by specifying the use case for light children with THREADKEEPER_NO_EMBEDDINGS=1.

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

Usage Guidelines4/5

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

The description provides clear context for when to use this tool (when child has no embeddings) and explains the delegation mechanism. However, it does not explicitly mention when not to use it or name alternative tools like 'search' or 'dialog_search'.

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/po4erk91/thread-keeper'

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