Skip to main content
Glama
mcp-local-reference

mcp-local-reference

search_references

Find references in a local Zotero library using semantic similarity when indexed or keyword search as fallback, matching keyword or natural-language queries to sources.

Instructions

Search your Zotero library for references.

    Uses semantic (vector-similarity) search when the library has been
    indexed with ``index_library``.  Falls back to keyword search
    otherwise.

    Args:
        query: Search query — keywords or a natural-language description.
        limit: Maximum number of results (default 10).
        semantic: Prefer semantic search when an index exists (default True).
    

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_references"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
semanticNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It does disclose a genuinely useful runtime trait: semantic vector search is used only when the library was indexed by index_library, otherwise keyword search is substituted automatically. It says nothing about ranking, result ordering, empty-result behavior, or any side effects, which leaves meaningful gaps for a no-annotation tool.

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?

The core behavior is front-loaded in the first two sentences, and the docstring-style Args block is compact and easy to scan. The formatting is slightly verbose (multi-line indentation carried over from a docstring) but no sentence is wasted.

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?

An output schema exists, so return-value documentation is rightly omitted. The description covers the index dependency and automatic fallback, which are the two facts an agent needs to call this correctly; only minor gaps remain around result ordering and what happens with an empty query result.

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 description coverage is 0%, so the description must compensate, and it does: query is explained as accepting either keywords or a natural-language description, limit as the maximum result count, and semantic as a preference that only takes effect when an index exists. The default values are already in the schema, but the semantics of 'prefer' versus 'force' adds real meaning.

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?

The description names a specific verb and resource ('Search your Zotero library for references') and adds the search mode mechanism, so the tool's identity is unambiguous. It does not, however, distinguish itself from the sibling search_passages, leaving the agent to infer that one returns passages while this returns references.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied through the stated dependency on index_library and the semantic-vs-keyword fallback, which tells the agent something about when semantic results are available. There is no explicit when-to-use/when-not guidance and no routing to alternatives such as search_passages or get_reference.

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