Skip to main content
Glama

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
NameRequiredDescriptionDefault
limitNoMaximum number of documents to return (default: 50)

Implementation Reference

  • 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, }, }, }, }, ];
  • 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, }, },

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/btn0s/granola-mcp'

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