Skip to main content
Glama
hichana

Goal Story MCP Server

by hichana

goalstory_destroy_goal

Permanently delete a goal and all related steps and stories from your journey. Use with confirmation to avoid accidental removal.

Instructions

Remove a goal and all its associated steps and stories from the user's journey. Use with confirmation to prevent accidental deletion.

Input Schema

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

Implementation Reference

  • The MCP server.tool registration and handler implementation for 'goalstory_destroy_goal'. It constructs the API URL /goals/{id} and sends a DELETE request using the doRequest helper, returning the result as tool output.
    server.tool(
      DESTROY_GOAL_TOOL.name,
      DESTROY_GOAL_TOOL.description,
      DESTROY_GOAL_TOOL.inputSchema.shape,
      async (args) => {
        const url = `${GOALSTORY_API_BASE_URL}/goals/${args.id}`;
        const result = await doRequest(url, "DELETE");
        return {
          content: [
            {
              type: "text",
              text: `Goal deleted:\n${JSON.stringify(result, null, 2)}`,
            },
          ],
          isError: false,
        };
      },
    );
  • Zod input schema definition for the tool, specifying the required 'id' parameter.
      inputSchema: z.object({
        id: z
          .string()
          .describe("Unique identifier of the goal to be permanently removed."),
      }),
    };
  • src/tools.ts:144-153 (registration)
    Tool configuration object exported for use in MCP server registration, including name, description, and schema.
    export const DESTROY_GOAL_TOOL = {
      name: "goalstory_destroy_goal",
      description:
        "Remove a goal and all its associated steps and stories from the user's journey. Use with confirmation to prevent accidental deletion.",
      inputSchema: z.object({
        id: z
          .string()
          .describe("Unique identifier of the goal to be permanently removed."),
      }),
    };
  • TypeScript interface defining the input shape for the destroy goal tool.
    export interface GoalstoryDestroyGoalInput {
      id: string;
    }
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly indicates this is a destructive operation ('permanently removed' from input schema, 'Remove' in description) and adds valuable context about the scope of deletion ('all its associated steps and stories'). However, it doesn't mention potential side effects like error handling, permissions needed, or what happens if the goal doesn't exist.

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 extremely concise with just two sentences that are front-loaded with the core action and scope. Every word earns its place: the first sentence defines the operation, and the second provides critical usage guidance without any redundancy or fluff.

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

Completeness4/5

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

Given this is a destructive mutation tool with no annotations and no output schema, the description does well by clearly stating the destructive nature and scope. However, it could be more complete by mentioning what happens on success/failure or if there are any prerequisites. The high schema coverage helps compensate, but for a tool that permanently removes data, more behavioral context would be beneficial.

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 input schema has 100% description coverage, with the 'id' parameter well-documented as 'Unique identifier of the goal to be permanently removed.' The description doesn't add any additional parameter information beyond what the schema provides, so it meets the baseline of 3 where the schema does the heavy lifting.

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

Purpose5/5

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

The description clearly states the specific action ('Remove'), the target resource ('a goal and all its associated steps and stories'), and the scope ('from the user's journey'). It distinguishes itself from sibling tools like 'goalstory_destroy_step' and 'goalstory_destroy_scheduled_story' by specifying it removes the entire goal hierarchy, not just individual components.

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

Usage Guidelines5/5

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

The description explicitly provides usage guidance with 'Use with confirmation to prevent accidental deletion,' indicating when to use it (with user confirmation) and implying when not to use it (without confirmation). This distinguishes it from read-only siblings like 'goalstory_read_goals' and update tools like 'goalstory_update_goal,' which are safer operations.

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