Skip to main content
Glama
Tryboy869

AI Books MCP Server

by Tryboy869

Query Knowledge Library

query_knowledge_library
Read-onlyIdempotent

Search a knowledge library and retrieve the most relevant passages to answer questions with extended context that exceeds standard LLM window limits.

Instructions

Queries a knowledge library and retrieves the most relevant chunks for a given query. Returns extended context that can be used to answer questions with much more detail than would fit in a normal LLM context window.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesThe question or search query
top_kNoNumber of most relevant chunks to retrieve (default: 8)
library_nameYesName of the knowledge library to query

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
contextYes
total_wordsYes
library_nameYes
chunks_retrievedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is covered. The description adds that the tool returns extended context chunks, but it does not disclose other behavioral traits such as pagination, failure modes, or dependency on library existence.

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 sentences with no redundancy. The primary action ('Queries a knowledge library...') is front-loaded, and the second sentence adds valuable context about how the output should be used.

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 simple retrieval tool with complete schema documentation, read-only annotations, and an output schema, the description covers the essential purpose and output use. It could be more complete by explicitly pointing to sibling tools, but that is not required for correct invocation.

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?

Schema description coverage is 100%, with all three parameters documented in the input schema. The tool description provides no additional parameter-level meaning, so the baseline score of 3 applies.

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?

Description states a specific verb ('Queries'), a clear resource ('knowledge library'), and outcome ('retrieves the most relevant chunks'). It is clear and actionable, but it does not explicitly differentiate from sibling tools like search_documents, so it stops short of a 5.

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 a clear use case: returning extended context to answer questions requiring more detail than fits in a normal LLM context window. It gives context for when the tool is useful, but does not mention alternatives or when not to use it.

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