Skip to main content
Glama

drive_search

Search a specified Google account's Drive files by file name or full-text content to find documents matching a query.

Instructions

Search Google Drive for an account by file name / full-text content.

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": {
      "account": "<account>",
      "query": "<query>"
    },
    "name": "drive_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesFree text matched against file name and content.
accountYesAccount email (must be authorized).
max_resultsNoMax files to return (1-50, default 10).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and discloses very little. It does not state that this is a read-only operation, how results are ordered or paged, what happens when the account is not authorized, or what a returned file record contains — all things an agent needs for a multi-account Drive search.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with the resource and matching scope front-loaded and no filler. It is efficient, though its brevity is also the source of the missing behavioral detail.

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?

The three parameters are fully documented in the schema, which covers most of the calling surface, but there is no output schema and the description says nothing about the shape of returned results or pagination. For a simple read tool this is adequate but not complete.

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 the baseline is 3. The phrase 'by file name / full-text content' echoes what the schema already says about the query parameter and adds no format, syntax, or matching-behavior detail beyond it.

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 Google Drive') and scopes it to matching by file name and full-text content, which implicitly separates it from drive_list_recent and drive_read_file. It stops short of naming any sibling explicitly, so the differentiation is inferred rather than stated.

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: 'Search' suggests keyword retrieval versus listing recent files, but the description never says when to prefer this over drive_list_recent, nor does it mention prerequisites or exclusions. An agent must infer the routing from the verb alone.

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