Skip to main content
Glama

Drive Search

drive_search
Read-only

Search Google Drive files by filename, optionally filter by MIME type, and return each match’s ID, name, and MIME type.

Instructions

Search Drive files visible to Hermes by filename.

Optionally filter by MIME type (e.g., 'application/pdf', 'application/vnd.google-apps.spreadsheet').

Returns a list of dicts, each with keys: id, name, mime_type.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (1-100)
queryYes
mime_typeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds one genuine behavioral fact beyond that — results are constrained to files visible to Hermes — but says nothing about match semantics (substring vs exact), ordering, or truncation at the limit.

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?

Three short sentences, front-loaded with the core purpose and with the filter note placed before the return description. The return-value sentence is somewhat wasteful given that an output schema exists, but the text is otherwise tight.

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 an output schema present, the return-keys sentence is not strictly needed, and the description adequately covers the essential call path for a three-parameter search. The remaining gap is match behavior and result ordering, which an agent would need in order to construct a reliable query.

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 only 33%, so the description must carry meaning for query and mime_type; it does so partly, clarifying that query matches filenames and giving concrete MIME type examples. However, it adds nothing about the limit parameter's effect or its 1-100 cap beyond what the schema already states, so the compensation is partial.

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 specifies a clear action (search), a resource (Drive files), and a scope (files visible to Hermes), with the matching dimension named explicitly (filename). This separates it from drive_get and drive_list, though it never names a sibling to sharpen the distinction.

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 implied by 'search by filename' and the visibility scope, which tells the agent this is a discovery operation rather than a fetch-by-ID. There is no explicit statement of when to prefer this over drive_list or drive_get, leaving the agent to infer the boundary.

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