Skip to main content
Glama

search_pdf_knowledge

Search across indexed PDF knowledge layers using semantic similarity to find relevant answers from your personal library.

Instructions

Semantic search across one or more knowledge database layers.

Searches indexed PDF chunks using 768-dim nomic-embed vector similarity.
You can search a single layer or combine layers (e.g. PH background + HAT specialist).

Args:
    query:     Natural language question or keyword phrase.
    databases: List of database slugs to search. Default: all indexed databases.
               Examples: ['ph-background'], ['hat-specialist', 'epi-methods'],
               or None to search everything.
    top_k:     Number of results to return (default 8).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
databasesNo
top_kNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

The description discloses the vector similarity approach and that it searches indexed PDF chunks, implying read-only operation. However, it lacks details about permissions, rate limits, or response structure. Annotations are absent, so the description carries the full burden but is only partially transparent.

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 concise, starting with the purpose in the first sentence, followed by technical detail and parameter documentation. No unnecessary words or repetition.

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?

Given an output schema exists, the description need not explain return values. It covers parameters well and mentions indexing. However, it does not mention prerequisites like database availability or how to list databases, and lacks error handling context.

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?

All three parameters are explained beyond the schema: 'query' as natural language, 'databases' with examples of slugs and default behavior, and 'top_k' with default 8. Schema description coverage is 0%, so the description fully compensates.

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 performs semantic search across knowledge database layers, specifies it uses 768-dim nomic-embed vector similarity, and provides examples of layers like 'PH background' and 'HAT specialist'. This distinguishes it from other search tools by focusing on PDF chunks and vector similarity.

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 guidance on when to use this tool versus alternatives like semantic_search or search_library. The description only explains what it does, not when it is appropriate or when to choose another sibling.

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/SVerITG/Metis'

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