Skip to main content
Glama
asamiile

google-drive-rag-mcp

search_content

Read-only

Search file contents in Google Drive folders for a keyword or phrase, returning matching files with context snippets.

Instructions

Search for a keyword or phrase within the content of files in the target Google Drive folders.

Unlike list_files (which filters by filename), this tool searches inside file contents and returns matching files with a surrounding context snippet.

Typical workflow: use this to find which files mention a topic, then call read_file on specific files for the full content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesThe keyword or phrase to search for (case-insensitive).
file_typeNoNarrow the scope before searching — 'document', 'spreadsheet', 'pdf', or 'text'. Omit to search all supported types.
recursiveNoIf True, searches nested subfolders. Defaults to False.
max_resultsNoMaximum number of matching files to return. Defaults to 10.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Consistent with readOnlyHint annotation; adds context that it returns matching files with a surrounding snippet. No contradictions.

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?

Very concise: two short paragraphs. Purpose stated first, then differentiation, then workflow. No fluff.

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

Completeness5/5

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

Given an output schema exists, the description adequately explains what the tool does and when to use it. No missing critical information.

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 coverage is 100% and each parameter already has a clear description. The tool description does not add significant new meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Search') and resource ('content of files'), and explicitly distinguishes itself from sibling tool list_files by stating it searches inside file contents rather than filenames.

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

Usage Guidelines4/5

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

Provides a clear typical workflow (search then read_file) and contrasts with list_files. However, it does not explicitly state when not to use this tool or any prerequisites.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/asamiile/google-drive-rag-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server