Skip to main content
Glama
list-drives.ts1.04 kB
/** * Tool: list_drives * Lista todas las cuentas de Google Drive configuradas */ import { z } from "zod"; import { drivesConfigLoader } from "@/config/config-loader.js"; export const listDrivesTool = { name: "list_drives", config: { title: "List Google Drive Accounts", description: "List all configured Google Drive accounts", inputSchema: {}, outputSchema: { drives: z .array( z.object({ id: z.string(), name: z.string(), description: z.string().optional(), }) ) .optional(), }, }, handler: async () => { const drives = drivesConfigLoader.listDrives(); const output = { drives }; return { content: [ { type: "text" as const, text: drives.length === 0 ? "No drives configured yet. Use add_drive to add a Google Drive account." : JSON.stringify(output, null, 2), }, ], structuredContent: output, }; }, };

Implementation Reference

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/andresfrei/mcp-drive'

If you have feedback or need assistance with the MCP directory API, please join our Discord server