Skip to main content
Glama

quick_capture

Capture notes, links, and tasks with optional scheduling for future resurfacing in the Resurgo-MCP knowledge management system.

Instructions

Save a new node with optional scheduling

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stateYes

Implementation Reference

  • The handler function for the 'quick_capture' MCP tool. It calls the API client to perform the capture and formats the response as MCP content, handling errors appropriately.
      async ({ state }) => {
        const result = await apiClient.quickCapture(state);
    
        if (result.error) {
          return {
            content: [{ type: 'text', text: result.error }],
            isError: true,
          };
        }
    
        return {
          content: [
            {
              type: 'text',
              text: JSON.stringify(result.data, null, 2),
            },
          ],
        };
      },
    );
  • Zod schema defining the input parameters for the quick_capture tool: title (required), note, url, tags, resurfaceIn (optional).
    state: z.object({
      title: z.string().describe('The title of the node'),
      note: z.string().optional().describe('Optional notes or body content'),
      url: z.string().url().optional().describe('Optional URL to attach'),
      tags: z
        .array(z.string())
        .optional()
        .default([])
        .describe('Tags for categorization'),
      resurfaceIn: z
        .string()
        .optional()
        .describe(
          'When to resurface: "tomorrow", "1 week", "2025-01-15", etc.',
        ),
    }),
  • src/nodes.ts:91-94 (registration)
    Registration of the 'quick_capture' tool on the MCP server within registerNodesTools.
    server.tool(
      'quick_capture',
      'Save a new node with optional scheduling',
      {
  • Helper method in the API client that sends the quick capture request to the backend /mcp/quick-capture endpoint.
    async quickCapture(params: {
      title: string;
      note?: string;
      url?: string;
      tags?: string[];
      resurfaceIn?: string;
    }): Promise<ApiResponse<any>> {
      return this.request('/mcp/quick-capture', {
        method: 'POST',
        body: JSON.stringify(params),
      });
    }

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/code-atlantic/Resurgo-MCP'

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