Skip to main content
Glama

get-logbook

Retrieve completed tasks from Things 3 with configurable time periods, entry limits, and detail levels for analysis and review.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
periodNoTime period to look back, e.g. 7d or 1w
limitNoMaximum number of entries
detailNoResponse detail level. Defaults to compact.

Implementation Reference

  • Implementation of the "get-logbook" MCP tool, which queries the database for completed or canceled tasks, optionally filters them by time period, and returns them formatted.
      "get-logbook",
      {
        period: z.string().optional().describe("Time period to look back, e.g. 7d or 1w"),
        limit: z.number().int().positive().optional().describe("Maximum number of entries"),
        detail: z.enum(["compact", "full"]).optional().describe("Response detail level. Defaults to compact."),
      },
      async ({ period, limit, detail }) => {
        const requestedDetail = detail ?? "compact";
        let todos = await withDatabase((db) => getLogbookTodos(getAllTasks(db)));
    
        if (period) {
          const since = parseRelativePeriod(period);
          todos = todos.filter(
            (todo) => todo.stopDate && new Date(todo.stopDate) >= since
          );
        }
    
        todos = applyLimit(todos, limit);
    
        return buildTextResponse(`Found ${todos.length} logbook items`, {
          todos: todos.map((todo) => toTaskView(todo, requestedDetail)),
          detail: requestedDetail,
          limit: limit ?? null,
        });
      }
    );

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/soycanopa/SupaThings-MCP'

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