Skip to main content
Glama

Search across annotations in the library

zotero_search_annotations
Read-only

Search highlights and comments across your Zotero library by substring. Retrieve matching annotations with attachment details for quick reference.

Instructions

Search the text of highlights and comments across the whole library.

Args: query: Substring to look for in highlighted text and comments. limit: Maximum number of matching annotations to return (1-100).

Returns: A Markdown list of matches, each naming the annotation key and the attachment it belongs to.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
queryYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds meaningful behavioral detail: it searches highlights and comments, uses substring matching, and returns a Markdown list with annotation keys and attachments. This goes beyond raw annotations without over-explaining.

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 compact and well-structured with clear Args and Returns sections. Every sentence adds necessary information, and the main purpose is front-loaded.

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?

For a simple read-only search tool, the description fully covers scope, parameters, return format, and matching behavior. The presence of an output schema and the read-only annotations further reduce the need for additional detail.

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?

The input schema provides no descriptions (0% coverage), but the description fully explains both parameters: query is the substring to find, and limit caps the result count at 1-100. This completely compensates for the schema gap.

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 states a specific action ('Search the text of highlights and comments') and a clear resource scope ('across the whole library'), distinguishing it from sibling tools like zotero_search or zotero_get_annotations. It is precise about what content is searched and where.

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 clearly establishes when to use this tool: for substring-based searching of annotation text globally across the library. It does not explicitly name alternatives or exclusions, but the 'whole library' scope provides enough context to differentiate it from item-scoped annotation retrieval.

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