Skip to main content
Glama
mcp-local-reference

mcp-local-reference

index_pdfs

Builds a passage-level index of PDF attachments by splitting documents into overlapping chunks and embedding them for RAG search, skipping already-indexed references unless forced.

Instructions

Build a passage-level index of your PDF attachments for RAG search.

    Reads each reference's PDF attachment, splits it into overlapping
    chunks, and embeds them with a multilingual model.  Subsequent
    runs skip references that are already indexed unless ``force=True``.

    Args:
        item_keys: If provided, only index these specific items. Otherwise
            indexes every reference in your library that has a PDF.
        force: Re-index even items already present in the chunk store.
    

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

Input Schema

NameRequiredDescriptionDefault
forceNo
item_keysNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations to lean on, the description does real work: it says it reads each reference's PDF attachment, chunks with overlap, embeds with a multilingual model, and is idempotent unless force=True. That idempotency disclosure is the key behavioral fact an agent needs. It stops short of noting runtime or compute cost for a library-wide embedding pass, which is the main risk an agent would want surfaced.

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?

Three short paragraphs: what it does, how it behaves across runs, then the arguments. The behavioral sentence about skipping already-indexed references sits before the Args block where it matters most. No filler sentences.

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 values need no explanation, and both parameters are documented in prose. The remaining gap is comparative context against the sibling index_library and any note on expected duration for large libraries, given that the tool touches every PDF.

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 0%, so the description must carry the parameter burden, and it does: item_keys is defined as an optional subset filter with a fallback of every reference that has a PDF, and force as a re-index override. Both parameters gain meaning well beyond the bare boolean/array types.

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 opens with a specific verb and resource: 'Build a passage-level index of your PDF attachments for RAG search.' That separates it from read-only PDF tools like get_pdf_text. It doesn't, however, differentiate itself from the sibling index_library, which sounds adjacent, so an agent must infer the split.

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?

The 'for RAG search' phrase implies the tool is a prerequisite for passage search, and the force semantics clarify repeat-run behavior. There is no explicit statement of when to prefer this over index_library, nor any prerequisite or cost warning before an operation that embeds every PDF in the library.

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