Skip to main content
Glama
hichana

Goal Story MCP Server

by hichana

goalstory_about

Learn how story-driven goal achievement transforms traditional goal tracking into personalized narratives that increase motivation and focus on one goal at a time.

Instructions

Retrieve information about Goal Story's philosophy and the power of story-driven goal achievement. Use this to help users understand the unique approach of Goal Storying.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that performs a GET request to the GoalStory API's /about endpoint using the doRequest helper and returns the API response formatted as text content.
    async (args) => {
      const url = `${GOALSTORY_API_BASE_URL}/about`;
      const result = await doRequest(url, "GET");
      return {
        content: [
          {
            type: "text",
            text: `About data:\n${JSON.stringify(result, null, 2)}`,
          },
        ],
        isError: false,
      };
    },
  • src/index.ts:147-164 (registration)
    Registers the "goalstory_about" tool with the MCP server, specifying name, description, input schema shape, and the handler function.
    server.tool(
      ABOUT_GOALSTORYING_TOOL.name,
      ABOUT_GOALSTORYING_TOOL.description,
      ABOUT_GOALSTORYING_TOOL.inputSchema.shape,
      async (args) => {
        const url = `${GOALSTORY_API_BASE_URL}/about`;
        const result = await doRequest(url, "GET");
        return {
          content: [
            {
              type: "text",
              text: `About data:\n${JSON.stringify(result, null, 2)}`,
            },
          ],
          isError: false,
        };
      },
    );
  • Defines the schema and metadata for the "goalstory_about" tool, including name, description, and empty Zod input schema (no parameters required).
    /**
     * GET /about
     */
    export const ABOUT_GOALSTORYING_TOOL = {
      name: "goalstory_about",
      description:
        "Retrieve information about Goal Story's philosophy and the power of story-driven goal achievement. Use this to help users understand the unique approach of Goal Storying.",
      inputSchema: z.object({}),
    };
  • TypeScript interface defining the empty input type for the goalstory_about tool.
    export interface GoalstoryAboutInput {}
  • Generic HTTP request utility function used by the tool handler to make authenticated API calls to the GoalStory backend.
    async function doRequest<T = any>(
      url: string,
      method: string,
      body?: unknown,
    ): Promise<T> {
      console.error("Making request to:", url);
      console.error("Method:", method);
      console.error("Body:", body ? JSON.stringify(body) : "none");
    
      try {
        const response = await axios({
          url,
          method,
          headers: {
            "Content-Type": "application/json",
            Authorization: `Bearer ${GOALSTORY_API_TOKEN}`,
          },
          data: body,
          timeout: 10000, // 10 second timeout
          validateStatus: function (status) {
            return status >= 200 && status < 500; // Accept all status codes less than 500
          },
        });
        console.error("Response received:", response.status);
        return response.data as T;
      } catch (err) {
        console.error("Request failed with error:", err);
    
        if (axios.isAxiosError(err)) {
          if (err.code === "ECONNABORTED") {
            throw new Error(
              `Request timed out after 10 seconds. URL: ${url}, Method: ${method}`,
            );
          }
          if (err.response) {
            // The request was made and the server responded with a status code
            // that falls out of the range of 2xx
            throw new Error(
              `HTTP Error ${
                err.response.status
              }. URL: ${url}, Method: ${method}, Body: ${JSON.stringify(
                body,
              )}. Error text: ${JSON.stringify(err.response.data)}`,
            );
          } else if (err.request) {
            // The request was made but no response was received
            throw new Error(
              `No response received from server. URL: ${url}, Method: ${method}`,
            );
          } else {
            // Something happened in setting up the request that triggered an Error
            throw new Error(`Request setup failed: ${err.message}`);
          }
        } else {
          // Something else happened
          throw new Error(
            `Unexpected error: ${err instanceof Error ? err.message : String(err)}`,
          );
        }
      }
    }
Behavior2/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 states this is a retrieval/information tool, implying read-only behavior, but doesn't address potential behavioral aspects like authentication requirements, rate limits, response format, or whether this returns static content vs. dynamic data. The description is minimal on behavioral traits beyond the basic purpose.

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 perfectly concise with two clear sentences. The first states what the tool does, the second states when to use it. Every word earns its place with zero redundancy or unnecessary elaboration.

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 this is a simple informational retrieval tool with 0 parameters and no output schema, the description is adequate but minimal. It explains what information will be retrieved and the usage context, but doesn't describe the return format or structure. For a tool with no structured output documentation, more detail about what 'information' means would be helpful.

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

Parameters4/5

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

The tool has 0 parameters with 100% schema description coverage. The description doesn't need to explain any parameters, which is appropriate. It focuses instead on what information will be retrieved. This meets the baseline expectation for a parameterless tool.

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: 'Retrieve information about Goal Story's philosophy and the power of story-driven goal achievement.' It specifies both the action (retrieve information) and the subject (Goal Story's philosophy/approach). However, it doesn't explicitly differentiate from sibling tools like 'goalstory_get_story_context' which might also retrieve contextual information.

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 provides implied usage guidance: 'Use this to help users understand the unique approach of Goal Storying.' This suggests the tool is for educational/contextual purposes rather than operational tasks. However, it doesn't explicitly state when NOT to use it or name specific alternatives among the many sibling tools.

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