list_granola_documents
Retrieve and list all Granola documents with basic metadata to access meeting notes, transcripts, and calendar events from the Granola API.
Instructions
List all Granola documents with basic metadata.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of documents to return (default: 50) |
Implementation Reference
- src/index.ts:456-480 (handler)Handler for the 'list_granola_documents' tool. Retrieves all Granola documents using apiClient.getAllDocuments(), applies the optional limit, and returns a JSON response with document IDs, titles, and timestamps.case "list_granola_documents": { const limit = (args?.limit as number) || 50; const allDocs = await apiClient.getAllDocuments(); const docs = allDocs.slice(0, limit); return { content: [ { type: "text", text: JSON.stringify( { count: docs.length, documents: docs.map((doc) => ({ id: doc.id, title: doc.title || "Untitled", created_at: doc.created_at, updated_at: doc.updated_at, })), }, null, 2 ), }, ], }; }
- src/index.ts:136-150 (registration)Registration of the 'list_granola_documents' tool in the tools array, including name, description, and input schema for the optional 'limit' parameter.{ name: "list_granola_documents", description: "List all Granola documents with basic metadata.", inputSchema: { type: "object", properties: { limit: { type: "number", description: "Maximum number of documents to return (default: 50)", default: 50, }, }, }, }, ];
- src/index.ts:139-147 (schema)Input schema definition for the 'list_granola_documents' tool, defining an optional 'limit' parameter.inputSchema: { type: "object", properties: { limit: { type: "number", description: "Maximum number of documents to return (default: 50)", default: 50, }, },