goalstory_update_step_notes
Add context, insights, or reflections in markdown format to capture valuable information from discussions about goal progress.
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:591-607 (handler)Handler function that makes a PATCH request to the API endpoint `/step/notes/${id}` to update the step's notes with the provided content.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/index.ts:587-608 (registration)MCP server.tool registration for the 'goalstory_update_step_notes' tool, referencing the tool definition from tools.ts.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 definition object including name, description, and Zod inputSchema for validation.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 tool.export interface GoalstoryUpdateStepNotesInput { id: string; notes: string; }