Skip to main content
Glama
hichana

Goal Story MCP Server

by hichana

goalstory_create_story

Create personalized stories that visualize goal achievement using user context and motivations to enhance engagement and progress tracking.

Instructions

Generate and save a highly personalized story that visualizes achievement of the current goal/step. Uses understanding of the user's beliefs, motivations, and context to create engaging mental imagery. If context is needed, gathers it through user discussion and profile data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
goal_idYesUnique identifier of the goal this story supports.
step_idYesUnique identifier of the specific step this story visualizes.
titleYesEngaging headline that captures the essence of the story.
story_textYesDetailed narrative that vividly illustrates goal/step achievement.

Implementation Reference

  • The handler function for the 'goalstory_create_story' tool. It constructs a POST request to the '/stories' endpoint using the provided goal_id, step_id, title, and story_text, then returns the API response.
    server.tool(
      CREATE_STORY_TOOL.name,
      CREATE_STORY_TOOL.description,
      CREATE_STORY_TOOL.inputSchema.shape,
      async (args) => {
        const url = `${GOALSTORY_API_BASE_URL}/stories`;
        const body = {
          goal_id: args.goal_id,
          step_id: args.step_id,
          title: args.title,
          story_text: args.story_text,
        };
        const result = await doRequest(url, "POST", body);
        return {
          content: [
            {
              type: "text",
              text: `Story created:\n${JSON.stringify(result, null, 2)}`,
            },
          ],
          isError: false,
        };
      },
    );
  • Zod input schema definition and tool metadata (name, description) for 'goalstory_create_story'.
    export const CREATE_STORY_TOOL = {
      name: "goalstory_create_story",
      description: `Generate and save a highly personalized story that visualizes achievement of the current goal/step. Uses understanding of the user's beliefs, motivations, and context to create engaging mental imagery. If context is needed, gathers it through user discussion and profile data.`,
      inputSchema: z.object({
        goal_id: z
          .string()
          .describe("Unique identifier of the goal this story supports."),
        step_id: z
          .string()
          .describe(
            "Unique identifier of the specific step this story visualizes.",
          ),
        title: z
          .string()
          .describe("Engaging headline that captures the essence of the story."),
        story_text: z
          .string()
          .describe(
            "Detailed narrative that vividly illustrates goal/step achievement.",
          ),
      }),
    };
  • TypeScript interface defining the input shape for GoalstoryCreateStoryInput.
    export interface GoalstoryCreateStoryInput {
      goal_id: string;
      step_id: string;
      title?: string;
      story_text: string;
    }
  • src/index.ts:18-43 (registration)
    Import of CREATE_STORY_TOOL which is used to register the tool in the MCP server.
      ABOUT_GOALSTORYING_TOOL,
      COUNT_GOALS_TOOL,
      CREATE_GOAL_TOOL,
      CREATE_SCHEDULED_STORY_TOOL,
      CREATE_STEPS_TOOL,
      CREATE_STORY_TOOL,
      DESTROY_GOAL_TOOL,
      DESTROY_SCHEDULED_STORY_TOOL,
      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?

No annotations are provided, so the description carries the full burden. It mentions 'saves' the story (implying a write operation) and uses 'user discussion and profile data' for context, but doesn't disclose critical behavioral traits like authentication needs, rate limits, whether the story is editable, or what happens on failure. For a mutation tool with zero annotation coverage, this is a significant gap.

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

Conciseness4/5

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

The description is efficiently structured in two sentences: the first states the core purpose, and the second adds context-gathering behavior. It's front-loaded with the main action and avoids redundancy. However, the second sentence could be slightly more concise by integrating context gathering into the first.

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

Completeness3/5

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

Given the tool's complexity (a mutation with 4 required parameters) and lack of annotations or output schema, the description is moderately complete. It covers the purpose and context gathering but misses details like return values, error handling, or side effects. For a tool that creates and saves data, more behavioral context would improve completeness.

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?

Schema description coverage is 100%, so the schema already documents all four parameters (goal_id, step_id, title, story_text) with clear descriptions. The description adds no additional parameter semantics beyond what's in the schema, such as format examples or constraints. Baseline 3 is appropriate when schema does the heavy lifting.

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 tool's purpose: 'Generate and save a highly personalized story that visualizes achievement of the current goal/step.' It specifies the action (generate and save) and resource (story for goal/step), distinguishing it from siblings like goalstory_read_stories or goalstory_destroy_scheduled_story. However, it doesn't explicitly differentiate from goalstory_create_scheduled_story, which may have overlapping functionality.

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

Usage Guidelines3/5

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

The description implies usage context: 'If context is needed, gathers it through user discussion and profile data,' suggesting it's used when personalized visualization is required. However, it lacks explicit guidance on when to use this tool versus alternatives like goalstory_create_scheduled_story or goalstory_get_story_context, and doesn't mention prerequisites or exclusions.

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