Skip to main content
Glama

delete_team_note

Remove a note from a team's workspace by specifying the note ID and team path using the HackMD MCP Server integration. Simplify note management for collaborative projects.

Instructions

Delete a note in a team

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteIdYesNote ID
teamPathYesTeam path

Implementation Reference

  • The handler function that implements the core logic of the 'delete_team_note' tool. It calls client.deleteTeamNote(teamPath, noteId) and formats the response as MCP content.
      async ({ teamPath, noteId }) => {
        try {
          const result = await client.deleteTeamNote(teamPath, noteId);
          return {
            content: [
              {
                type: "text",
                text: `Team note ${noteId} deleted successfully:\n${JSON.stringify(result, null, 2)}`,
              },
            ],
          };
        } catch (error: any) {
          return {
            content: [{ type: "text", text: `Error: ${error.message}` }],
            isError: true,
          };
        }
      },
    );
  • Zod input schema defining the parameters for the delete_team_note tool: teamPath (string) and noteId (string).
    {
      teamPath: z.string().describe("Team path"),
      noteId: z.string().describe("Note ID"),
    },
  • Registration of the 'delete_team_note' tool using server.tool, including name, description, input schema, metadata hints, and handler reference.
        "delete_team_note",
        "Delete a note in a team",
        {
          teamPath: z.string().describe("Team path"),
          noteId: z.string().describe("Note ID"),
        },
        {
          title: "Delete a note in a Team's workspace",
          readOnlyHint: false,
          destructiveHint: true,
          idempotentHint: true,
          openWorldHint: true,
        },
        async ({ teamPath, noteId }) => {
          try {
            const result = await client.deleteTeamNote(teamPath, noteId);
            return {
              content: [
                {
                  type: "text",
                  text: `Team note ${noteId} deleted successfully:\n${JSON.stringify(result, null, 2)}`,
                },
              ],
            };
          } catch (error: any) {
            return {
              content: [{ type: "text", text: `Error: ${error.message}` }],
              isError: true,
            };
          }
        },
      );
    }
Install Server

Other Tools

Related Tools

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/yuna0x0/hackmd-mcp'

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