Skip to main content
Glama
hichana

Goal Story MCP Server

by hichana

goalstory_count_goals

Calculates the total number of goals in a user’s journey, enabling efficient progress tracking and insights into goal management patterns for enhanced productivity.

Instructions

Get the total number of goals in the user's journey. Useful for tracking overall progress and goal management patterns.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for 'goalstory_count_goals' is registered here via server.tool(). It performs a GET request to the '/count/goals' API endpoint and returns the count of goals in a formatted text response.
    server.tool( COUNT_GOALS_TOOL.name, COUNT_GOALS_TOOL.description, COUNT_GOALS_TOOL.inputSchema.shape, async (args) => { const url = `${GOALSTORY_API_BASE_URL}/count/goals`; const result = await doRequest(url, "GET"); return { content: [ { type: "text", text: `Count of goals:\n${JSON.stringify(result, null, 2)}`, }, ], isError: false, }; }, );
  • Tool schema definition including name, description, and empty input schema (z.object({})). This object is imported and used in the handler registration.
    export const COUNT_GOALS_TOOL = { name: "goalstory_count_goals", description: "Get the total number of goals in the user's journey. Useful for tracking overall progress and goal management patterns.", inputSchema: z.object({}), };
  • src/index.ts:222-239 (registration)
    Registration of the 'goalstory_count_goals' tool using McpServer's server.tool() method, referencing the schema from tools.ts and providing the inline handler.
    server.tool( COUNT_GOALS_TOOL.name, COUNT_GOALS_TOOL.description, COUNT_GOALS_TOOL.inputSchema.shape, async (args) => { const url = `${GOALSTORY_API_BASE_URL}/count/goals`; const result = await doRequest(url, "GET"); return { content: [ { type: "text", text: `Count of goals:\n${JSON.stringify(result, null, 2)}`, }, ], isError: false, }; }, );

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