Skip to main content
Glama

drive_search

Search and list Google Drive files by query to retrieve metadata without downloading content; read-only access helps you locate files safely.

Instructions

搜索/列出 Google Drive 文件(返回元数据,不下载内容)。只读。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "drive_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoDrive q 语法,如 "name contains '报告' and trashed = false"
pageSizeNo1-100,默认 20
pageTokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does declare the operation read-only ('只读') and clarifies that results are metadata rather than file bodies, which is genuinely useful, but it says nothing about pagination behavior, result size limits, or auth/scope requirements for the returned file set.

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 compact sentence with the capability front-loaded and the content/read-only caveat trailing as a parenthetical. No filler, though the brevity leaves the definition thin overall.

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 3-parameter read tool with no annotations and no output schema, the description covers the essentials of what is returned and that it is safe, but leaves the pagination contract (pageToken) and the shape of the returned metadata unexplained. Adequate, with clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%, with query and pageSize documented in-schema but pageToken left undescribed. The description adds no parameter-level meaning at all — no guidance on q syntax beyond what the schema shows, no paging workflow tying pageSize to pageToken — so it does not compensate for the gap.

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 and resource (search/list Google Drive files) and adds the scope of what comes back (metadata only, no content download). That parenthetical implicitly separates it from the sibling drive_read, though it never names that tool.

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 parenthetical '不下载内容' implies the agent should use a different tool (drive_read) when it needs file contents, but no alternative is named and no explicit when-to-use or when-not-to-use condition is stated. Usage is inferable rather than instructed.

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