Skip to main content
Glama
MCP-Gemini-FileSearch

MCP-Gemini-FileSearch

by amsminn

get_passages

Retrieve full text from specific document page ranges to verify citations and check source passages. Provide a document ID and page spans to get exact content for citation review.

Instructions

Retrieve full text content of specific page ranges from a document for citation verification.

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": {
      "doc_id": "<doc_id>",
      "page_spans": "<page_spans>"
    },
    "name": "get_passages"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_idYesDocument identifier from search results
page_spansYesList of page ranges to retrieve

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 that the result is 'full text content' (not snippets or summaries) and that retrieval is bounded to page ranges, which is meaningful context, but it says nothing about page-count limits, behavior for out-of-range pages, or failure modes.

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?

A single front-loaded sentence with the action and resource first and the purpose last. No filler, no redundancy, and nothing that repeats the schema verbatim.

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?

For a simple two-parameter read tool with full schema coverage and no output schema, the description covers what the tool does and why. What is missing is boundary behavior (limits, out-of-range handling), which is a modest gap rather than a blocker.

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%, and the schema already documents doc_id, page_spans, and 1-indexed inclusive start/end. The description adds only the general notion of page-range retrieval, no format or provenance detail beyond the schema; baseline 3 applies.

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 specific verb+resource (retrieve full text content of page ranges from a document) plus a scope qualifier ('specific page ranges') and an intended use ('citation verification'). This clearly distinguishes it from sibling tools like search or list_documents, though it does not name an alternative explicitly.

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 phrase 'for citation verification' implies the usage context (you have search results and need to verify a quote), but there is no explicit when-to-use/when-not guidance and no pointer to a cheaper alternative for non-citation needs. Usage is inferable rather than stated.

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