Skip to main content
Glama
mcp-local-reference

mcp-local-reference

search_passages

Search PDF passages in your local Zotero library using natural-language queries and return citable snippets with item keys and page numbers.

Instructions

Search PDF passages for the natural-language query.

    Returns up to *limit* passages, each with the item_key and page so
    you can cite them.  Use ``format_citation(item_key)`` to render a
    proper Harvard reference.

    Args:
        query: Natural-language query — a question, claim, or topic.
        limit: Max passages to return.
        item_key: If provided, restrict search to one paper's PDF.
        max_per_paper: Cap chunks-per-paper to force result diversity.
            Set to 0 or negative to disable.
    

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_passages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
item_keyNo
max_per_paperNo

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?

With no annotations, the description carries the burden and does add real detail: result count behavior, that each hit carries item_key and page, and that max_per_paper <= 0 disables the cap. It omits prerequisites such as whether the library or PDFs must be indexed first (siblings index_pdfs/index_library exist), and says nothing about cost, ranking, or failure behavior.

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?

Purpose is front-loaded, results and citation handoff follow, then a compact Args block. No filler sentences; each line conveys something an agent can act on.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Return values are covered by the output schema and the description correctly does not duplicate them. However, for a search tool in a library of index_* siblings, the missing note about indexing prerequisites is a substantive gap for correct invocation.

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 Args block is doing all the work, and it covers all four parameters with meaning beyond type: query as question/claim/topic, limit as max passages, item_key as a single-paper restriction, and max_per_paper as a diversity cap with a disable value. It stops short of restating defaults or edge behavior for limit.

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 opening sentence gives a specific verb and resource ('Search PDF passages') plus the query kind ('natural-language query'), which separates it from a naive keyword lookup. It does not explicitly name a sibling it is not, so differentiation from search_references or get_pdf_text is left implicit.

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 is implied rather than stated: it is for question/claim/topic style queries and can be scoped to one paper via item_key. The description points to format_citation for rendering references, which is a useful handoff, but there is no explicit 'use X instead when' guidance and no mention of when not to use it.

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