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
| Name | Required | Description | Default |
|---|---|---|---|
| noteId | Yes | Note ID | |
| teamPath | Yes | Team path |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"noteId": {
"description": "Note ID",
"type": "string"
},
"teamPath": {
"description": "Team path",
"type": "string"
}
},
"required": [
"teamPath",
"noteId"
],
"type": "object"
}
Implementation Reference
- tools/teamNotes.ts:128-146 (handler)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, }; } }, );
- tools/teamNotes.ts:117-120 (schema)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"), },
- tools/teamNotes.ts:115-147 (registration)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, }; } }, ); }