goalstory_update_step_notes
Enhance step details in goal management by adding contextual notes, insights, or reflections in markdown format. Capture and organize valuable discussion points for better goal tracking.
Instructions
Update step notes with additional context, insights, or reflections in markdown format. Use this to capture valuable information from discussions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique identifier of the step to update. | |
| notes | Yes | Additional context, insights, or reflections in markdown format. |
Implementation Reference
- src/index.ts:587-608 (handler)MCP tool handler function that registers and implements the 'goalstory_update_step_notes' tool. It constructs a PATCH request to the backend API endpoint `/step/notes/${id}` with the provided notes, executes it via the shared `doRequest` helper, and returns the formatted response.server.tool( UPDATE_STEP_NOTES_TOOL.name, UPDATE_STEP_NOTES_TOOL.description, UPDATE_STEP_NOTES_TOOL.inputSchema.shape, async (args) => { const url = `${GOALSTORY_API_BASE_URL}/step/notes/${args.id}`; const body = { id: args.id, notes: args.notes, }; const result = await doRequest(url, "PATCH", body); return { content: [ { type: "text", text: `Step notes updated:\n${JSON.stringify(result, null, 2)}`, }, ], isError: false, }; }, );
- src/tools.ts:316-328 (schema)Tool specification object defining the name, description, and Zod input schema for the 'goalstory_update_step_notes' tool, imported and used in index.ts for registration.export const UPDATE_STEP_NOTES_TOOL = { name: "goalstory_update_step_notes", description: "Update step notes with additional context, insights, or reflections in markdown format. Use this to capture valuable information from discussions.", inputSchema: z.object({ id: z.string().describe("Unique identifier of the step to update."), notes: z .string() .describe( "Additional context, insights, or reflections in markdown format.", ), }), };
- src/types.ts:93-96 (schema)TypeScript interface defining the input shape for the 'goalstory_update_step_notes' tool.export interface GoalstoryUpdateStepNotesInput { id: string; notes: string; }
- src/index.ts:41-43 (registration)Import of the tool specification from tools.ts into the MCP server setup in index.ts.UPDATE_STEP_NOTES_TOOL, UPDATE_STEP_TOOL, } from "./tools.js";