Skip to main content
Glama
hichana

Goal Story MCP Server

by hichana

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
NameRequiredDescriptionDefault
idYesUnique identifier of the step to update.
notesYesAdditional context, insights, or reflections in markdown format.

Implementation Reference

  • 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, }; }, );
  • 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.", ), }), };
  • 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";

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/hichana/goalstory-mcp'

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