Skip to main content
Glama
54yyyu
by 54yyyu

zotero_semantic_search

Find relevant papers by semantic similarity to a natural-language query. Search your Zotero library using AI embeddings to locate sources by topic or concept, even without exact keyword matches.

Instructions

Prioritized topic-search tool. Find papers by semantic similarity to a query using AI embeddings — the BEST tool for finding papers on a topic (e.g. 'papers about mindfulness-based therapy'), far more efficient than scanning collection items or reading abstracts. Searches the ACTIVE library by default; pass search_all_libraries=True to cover every indexed library. query: the topic or concept; natural-language phrases work well. limit: max results (default 10). filters: optional metadata filters as a dict (e.g. {'itemType': 'journalArticle', 'year': '2023'}); also accepts a JSON string. library_id: optional — scope to one library other than the active one: 0 or 'user' for personal, else a groupID (see zotero_list_libraries). search_all_libraries: search every indexed library at once, labelling each result with its library; needs ZOTERO_SEARCH_BACKEND=sqlite, excludes library_id. Requires the semantic search database to be POPULATED — run zotero_update_search_database first if you just installed the server or added new items; check readiness with zotero_get_search_database_status. Available only when the [semantic] optional dependency is installed. Example: zotero_semantic_search(query='mindfulness-based cognitive therapy for depression', limit=5).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of results to return (default: 10)
queryYesSearch query text - can be concepts, topics, or natural language descriptions
filtersNoOptional metadata filters as dict or JSON string. Example: {"item_type": "note"}
library_idNoOptional library scope — 0/"user" for the personal library or a groupID for a group library. Defaults to the active library.
search_all_librariesNoSearch every indexed library at once (#163). Requires the SQLite backend; results are labelled with their source library. Mutually exclusive with library_id.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the full transparency burden and does well: it explains active-library default behavior, cross-library search behavior, the SQLite backend requirement, the need to populate the database first, and the optional dependency caveat. It doesn't explicitly state read-only semantics, but 'search' plus the lack of mutation language makes that reasonably clear, and an output schema covers the return shape.

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 long but every sentence earns its place: core purpose is front-loaded, parameter behavior is compactly explained, prerequisites are stated, and a concrete example closes it out. There is no filler or repetition of schema fields.

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?

Given the tool's complexity—five parameters, a required prerequisite database, backend constraints, and optional dependency—the description covers all essential context: scope defaults, how to broaden scope, when it is unavailable, and where to look for related library IDs. Because an output schema exists, omitting return-value details is acceptable.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description goes beyond the schema with useful practical detail: natural-language query phrasing, default limit of 10, a concrete filters example, the '0'/'user' personal-library convention, and the mutual exclusivity of search_all_libraries with library_id. The only minor blemish is a slight key-style inconsistency in the filter example ('itemType' vs schema's 'item_type'), but it is clearly illustrative.

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 opens with 'Prioritized topic-search tool' and clearly states the tool finds papers by semantic similarity using AI embeddings. It explicitly distinguishes this from scanning collection items or reading abstracts, making its unique role among the sibling search tools unmistakable.

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?

It clearly frames when to use the tool: 'the BEST tool for finding papers on a topic' and more efficient than manual scanning. It also gives operational prerequisites and access constraints. However, it does not explicitly name alternative search tools or state when to choose zotero_search_items or zotero_advanced_search instead, so the exclusion guidance is implied rather than explicit.

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

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/54yyyu/zotero-mcp'

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