Skip to main content
Glama
MCP-Gemini-FileSearch

MCP-Gemini-FileSearch

by amsminn

search

Query indexed documents with natural language to retrieve relevant snippets, relevance scores, page ranges, and metadata; filter results by tags, authors, or publication years.

Instructions

Search indexed documents with natural language query. Returns snippets with relevance scores, page ranges, and document metadata.

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

Input Schema

NameRequiredDescriptionDefault
queryYesNatural language search query
top_kNoNumber of results to return (default: 10, max: 100)
filtersNoOptional filters to narrow search results

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.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 the return shape (snippets with relevance scores, page ranges, and document metadata), which is genuinely useful given there is no output schema, but it says nothing about ranking method, index freshness, permissions, or result limits beyond what the schema states.

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?

Two sentences, zero filler, with the core capability front-loaded and the return format following. Every clause carries information an agent can act on.

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?

With only three parameters, full schema coverage, and no output schema, the description covers both what the tool does and what it returns. It falls slightly short on ranking/pagination behavior and on how this tool relates to its retrieval siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, including documentation of the nested filters object (tags, authors, year_min/year_max), so the schema already carries parameter meaning. The description adds no additional semantics about query syntax or filter combination behavior, making the baseline 3 appropriate.

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 ('Search'), a specific resource ('indexed documents'), and the query mode ('natural language query'), so the core operation is unambiguous. It does not explicitly contrast itself with siblings like get_passages or list_documents, which is what keeps it short of a 5.

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 only implied: the phrase 'natural language query' suggests semantic retrieval rather than enumeration, which weakly separates it from list_documents. There is no explicit statement of when to prefer this tool over get_passages, nor any exclusions or prerequisites.

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