Skip to main content
Glama

knowledge_search

Search a Postgres knowledge base by content with AND logic for all query terms. Filter by domain and limit results.

Instructions

Search the fleet Postgres knowledge base by content: the query is whitespace-split and ALL tokens must appear in an atom (AND logic). domain narrows to one domain (e.g. 'journal', 'continuity'). Returns up to limit atoms. Read-only; use kb_at to fetch a known atom by ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
queryYes
app_idYes
domainNo
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 of disclosing behavioral traits. It explicitly states 'Read-only', which is a critical safety trait, and explains the matching behavior (tokenization and AND logic), domain filtering, and limit enforcement. It could disclose more about response structure or error cases, but the core behavioral semantics are well covered.

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 two compact sentences with no filler. It leads with the core action, then packs in essential details about query semantics, domain, limit, and the alternative tool. Every sentence earns its place, making it a model of concise, well-structured documentation.

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 search tool with no output schema and no annotations, the description provides a strong baseline: it specifies query semantics, domain filtering, return limit, and read-only status, and points to the alternative for known IDs. It lacks explanation of app_id and the exact structure of returned atoms, but the core usage and constraints are clear enough for an agent to invoke correctly. This is above average but not fully complete.

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?

The schema has zero parameter descriptions, so the description must compensate. It explains 'domain' with examples, 'limit' by specifying it caps results, and 'query' by describing how tokens are matched. However, it leaves 'app_id' completely unexplained, which is a required parameter. This partial coverage justifies a middling score.

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 function: 'Search the fleet Postgres knowledge base by content'. It specifies the search semantics (whitespace-split, ALL tokens with AND logic) and distinguishes itself from the sibling kb_at tool by noting it fetches by ID. This makes the purpose unambiguous and uniquely identifiable.

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 gives clear context for when to use this tool: when searching by content rather than by known ID. It explicitly directs users to 'use kb_at to fetch a known atom by ID', providing a concrete alternative. It does not enumerate all other alternatives, but the key distinction from the most similar sibling is covered.

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/rudi193-cmd/willow-mcp'

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