Skip to main content
Glama
hichana

Goal Story MCP Server

by hichana

goalstory_read_current_focus

Identify the user’s current goal and step to maintain context in discussions and story creation, enhancing focus and progress tracking within the Goal Story MCP Server.

Instructions

Identify which goal and step the user is currently focused on to maintain context in discussions and story creation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler implementation for the 'goalstory_read_current_focus' tool. It registers the tool with the MCP server and defines the execution logic: makes a GET request to the '/current' API endpoint using the shared doRequest helper and returns the formatted JSON response.
    server.tool( READ_CURRENT_FOCUS_TOOL.name, READ_CURRENT_FOCUS_TOOL.description, READ_CURRENT_FOCUS_TOOL.inputSchema.shape, async (args) => { const url = `${GOALSTORY_API_BASE_URL}/current`; const result = await doRequest(url, "GET"); return { content: [ { type: "text", text: `Current goal/step focus:\n${JSON.stringify(result, null, 2)}`, }, ], isError: false, }; }, ); /** * Get Story Context
  • The tool specification including name, description, and input schema (empty object, no parameters required). This object is imported and used to register the tool in index.ts.
    /** * GET /current */ export const READ_CURRENT_FOCUS_TOOL = { name: "goalstory_read_current_focus", description: "Identify which goal and step the user is currently focused on to maintain context in discussions and story creation.", inputSchema: z.object({}), };
  • TypeScript interface defining the input for the tool (empty).
    export interface GoalstoryReadCurrentFocusInput {}
  • src/index.ts:18-43 (registration)
    Import of the tool specification from tools.ts, used in the server.tool registration.
    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";

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