Skip to main content
Glama

get-tagged-items

Retrieve tasks and projects from Things 3 by filtering with specific tags to organize and analyze your workflow data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagYesTag title to filter by
detailNoResponse detail level. Defaults to compact.
limitNoMaximum number of items to return

Implementation Reference

  • The tool implementation for 'get-tagged-items' which filters tasks by tag from the database.
      "get-tagged-items",
      {
        tag: z.string().describe("Tag title to filter by"),
        detail: z.enum(["compact", "full"]).optional().describe("Response detail level. Defaults to compact."),
        limit: z.number().int().positive().optional().describe("Maximum number of items to return"),
      },
      async ({ tag, detail, limit }) => {
        const requestedDetail = detail ?? "compact";
        const items = await withDatabase((db) =>
          applyLimit(
            getAllTasks(db).filter(
              (task) => !task.trashed && task.tags.includes(tag)
            ),
            limit
          ).map((task) => toTaskView(task, requestedDetail))
        );
        return buildTextResponse(`Found ${items.length} items tagged "${tag}"`, {
          items,
          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