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";
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It states 'permanently removed' in the schema, but the description only says 'remove' without clarifying if this is irreversible, requires specific permissions, or has side effects (e.g., reordering remaining steps). This is inadequate for a destructive operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence that directly states the tool's function without unnecessary words. It is front-loaded and efficiently communicates the core purpose, earning its place with zero waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive tool with no annotations and no output schema, the description is insufficient. It lacks critical context such as confirmation of success/failure, error conditions, or impact on related data (e.g., goal progress). This leaves significant gaps for safe agent operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 100% description coverage, with the 'id' parameter fully documented in the schema itself. The description adds no additional parameter information beyond what the schema provides, so it meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('remove') and target ('a specific step from a goal's action plan'), making the purpose immediately understandable. It distinguishes from siblings like goalstory_destroy_goal (different target) and goalstory_update_step (different action), though it doesn't explicitly mention these distinctions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., step must exist), exclusions (e.g., cannot remove steps in certain states), or sibling tools like goalstory_update_step for modifications instead of removal.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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