Skip to main content
Glama
Google Workspace MCP Server

Google Workspace MCP Server

by VolksRat71

search_files

Search Google Drive files by name, MIME type, modified date, or full text using Drive query syntax; paginate results to retrieve additional matches.

Instructions

Search for files in Google Drive using query syntax. Examples: "name contains 'report'", "mimeType = 'application/pdf'", "modifiedTime > '2024-01-01'".

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

Input Schema

NameRequiredDescriptionDefault
queryYesThe search query using Drive query syntax (e.g., "name contains 'report'", "fullText contains 'budget'").
pageSizeNoOptional. Number of results to return (default 20, max 100).
pageTokenNoOptional. Token for pagination to retrieve the next page of results.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. 'Search' strongly implies a read-only operation, but the description says nothing about permissions/scopes required, whether results include file contents or only metadata, or any result limits — all left for the agent to guess.

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 short sentences, front-loaded with the action and scope, followed by concrete query examples. Nothing is wasted and the most important information comes first.

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?

For a simple read tool with complete schema coverage this is close to adequate, but with no output schema the description never says what a result looks like (file IDs, names, mimeTypes) and never positions it against list_files or get_file. That leaves a real gap for an agent choosing between retrieval tools.

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%, so all three parameters (query, pageSize, pageToken) are already documented in the schema itself. The description's query examples duplicate what the schema's parameter description already shows, adding no new syntax or format meaning.

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 states a specific verb and resource ('Search for files in Google Drive') plus the mechanism (Drive query syntax), so the agent knows exactly what the tool does. It does not distinguish this from the sibling list_files, so it stops 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 query-syntax examples signal that this tool is for filtered retrieval, but there is no explicit statement of when to use it, when not to, or that list_files is the unfiltered alternative. The examples provide some context but no routing guidance.

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