Skip to main content
Glama
hichana

Goal Story MCP Server

by hichana

goalstory_destroy_step

Remove a specific step from a goal's action plan by providing its unique identifier to permanently delete it.

Instructions

Remove a specific step from a goal's action plan.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUnique identifier of the step to be permanently removed.

Implementation Reference

  • The handler implementation for the 'goalstory_destroy_step' tool. It constructs the API URL /steps/{id}, performs a DELETE request using the shared doRequest helper, and returns a formatted text response with the result.
    server.tool( DESTROY_STEP_TOOL.name, DESTROY_STEP_TOOL.description, DESTROY_STEP_TOOL.inputSchema.shape, async (args) => { const url = `${GOALSTORY_API_BASE_URL}/steps/${args.id}`; const result = await doRequest(url, "DELETE"); return { content: [ { type: "text", text: `Step deleted:\n${JSON.stringify(result, null, 2)}`, }, ], isError: false, }; }, );
  • Zod input schema, name, and description definition for the 'goalstory_destroy_step' tool, exported and used in the MCP server registration.
    export const DESTROY_STEP_TOOL = { name: "goalstory_destroy_step", description: "Remove a specific step from a goal's action plan.", inputSchema: z.object({ id: z .string() .describe("Unique identifier of the step to be permanently removed."), }), };
  • TypeScript type definition matching the input schema for 'goalstory_destroy_step'.
    export interface GoalstoryDestroyStepInput { id: string; }
  • src/index.ts:26-43 (registration)
    Import of the DESTROY_STEP_TOOL constant used for registration.
    DESTROY_STEP_TOOL, GET_STORY_CONTEXT_TOOL, READ_CURRENT_FOCUS_TOOL, READ_GOALS_TOOL, READ_ONE_GOAL_TOOL, READ_ONE_STEP_TOOL, READ_ONE_STORY_TOOL, READ_SCHEDULED_STORIES_TOOL, READ_SELF_USER_TOOL, READ_STEPS_TOOL, READ_STORIES_TOOL, SET_STEPS_ORDER_TOOL, UPDATE_GOAL_TOOL, UPDATE_SCHEDULED_STORY_TOOL, UPDATE_SELF_USER_TOOL, 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