Skip to main content

Drive Search Files

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

READgoogle.drive_search_files
  • Contract tier: agent_ready
  • Risk: read
  • Catalog version: google-2026.07.12.2
  • Descriptor hash: f0f8e68842b4376fc93c97a439886d4e0158555fafb670fbd3c6a9c7b0bb96af

Use this read-only Google Drive tool when you have a Drive query string and need matching files. Returns compact file metadata and the next page token. It reads the configured user's Google data through per-request OAuth, does not mutate provider state, and returns a normalized bounded envelope.

Request Body

{
"jsonrpc": "2.0",
"id": "google-drive-search-files-example",
"method": "tools/call",
"params": {
"name": "google.drive_search_files",
"arguments": {
"query": "query_example",
"fields": "fields_example",
"order_by": "order_by_example",
"page_size": 1,
"page_token": "page_token_example"
}
}
}

Arguments Schema

{
"type": "object",
"title": "drive_search_filesArguments",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"title": "Query",
"description": "Provider query string used to filter results."
},
"fields": {
"type": "string",
"title": "Fields",
"default": "",
"description": "Optional Google partial-response fields selector for compact output."
},
"order_by": {
"type": "string",
"title": "Order By",
"default": "",
"description": "Optional provider order expression."
},
"page_size": {
"type": "integer",
"title": "Page Size",
"default": 100,
"description": "Maximum number of items to request from Google for this page."
},
"page_token": {
"type": "string",
"title": "Page Token",
"default": "",
"description": "Provider pagination token returned by a previous list call."
}
},
"additionalProperties": false
}

Output Schema

{
"type": "object",
"required": [
"ok",
"data",
"error",
"meta"
],
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the local or Google provider operation completed successfully."
},
"data": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {}
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Bounded local navigation or Google provider result when ok is true."
},
"meta": {
"type": "object",
"description": "Safe timing, pagination, cache, request, and truncation metadata.",
"additionalProperties": true
},
"error": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Safe structured error when ok is false."
}
},
"description": "Google MCP normalized operation envelope.",
"additionalProperties": false
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "google-drive-search-files-example",
"method": "tools/call",
"params": {
"name": "google.drive_search_files",
"arguments": {
"query": "query_example",
"fields": "fields_example",
"order_by": "order_by_example",
"page_size": 1,
"page_token": "page_token_example"
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool google.drive_search_files executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}