Skip to main content
Glama
mcp-local-reference

mcp-local-reference

index_library

Builds a local vector index from your Zotero references by embedding titles, abstracts, tags, and authors for semantic search; rerun after adding items.

Instructions

Index your Zotero library into a vector store for semantic search.

Reads all references, embeds title + abstract + tags + authors, and stores them in a local ChromaDB database. Run this once after setup, or again whenever you add new references to Zotero.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "index_library"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations provided, the description carries the full disclosure burden; it does useful work by naming the source corpus, the fields embedded, and the local ChromaDB destination. It stays silent on re-run semantics (does a second run duplicate, overwrite, or incrementally update the store?), on rough duration/cost of embedding a whole library, and on any failure modes, which are material for an operation that mutates a local database.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the purpose and followed by mechanism then usage cadence. Nothing is redundant, though the final sentence could be tightened and the embedding-field list borders on implementation detail.

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?

Because an output schema exists, return values need not be described, and with zero parameters the description is close to sufficient for an agent to call it correctly. The main missing piece is the relationship to sibling indexing/search tools, since an agent must know whether this index is what search_references and search_passages query.

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?

The tool takes zero parameters, so there is no per-argument meaning to add and the baseline of 4 applies. The description correctly implies the operation is whole-library with no scoping arguments.

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?

States a concrete verb and resource ('Index your Zotero library into a vector store for semantic search') and elaborates with what is embedded (title + abstract + tags + authors) and where it lands (local ChromaDB). It does not distinguish the tool from the sibling index_pdfs, so an agent cannot tell from the description alone which indexing target covers PDFs versus references.

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?

Gives explicit timing guidance: run once after setup, and re-run whenever new references are added to Zotero. There is no stated when-not condition and no named alternative (e.g. index_pdfs for full-text/passage coverage), which keeps it at 4 rather than 5.

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