Skip to main content
Glama
hichana

Goal Story MCP Server

by hichana

goalstory_read_one_step

Retrieve detailed information about a specific goal step to support focused discussion and story creation within goal management narratives.

Instructions

Get detailed information about a specific step to support focused discussion and story creation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUnique identifier of the step to retrieve.

Implementation Reference

  • The handler/registration for the 'goalstory_read_one_step' tool. It constructs the API URL `/steps/${id}`, performs a GET request using the shared doRequest helper, and returns the step data as text content.
    server.tool(
      READ_ONE_STEP_TOOL.name,
      READ_ONE_STEP_TOOL.description,
      READ_ONE_STEP_TOOL.inputSchema.shape,
      async (args) => {
        const url = `${GOALSTORY_API_BASE_URL}/steps/${args.id}`;
        const result = await doRequest(url, "GET");
        return {
          content: [
            {
              type: "text",
              text: `Step data:\n${JSON.stringify(result, null, 2)}`,
            },
          ],
          isError: false,
        };
      },
    );
  • Tool definition object containing the name, description, and Zod input schema (requires 'id' string). This is used in the server.tool registration.
    export const READ_ONE_STEP_TOOL = {
      name: "goalstory_read_one_step",
      description:
        "Get detailed information about a specific step to support focused discussion and story creation.",
      inputSchema: z.object({
        id: z.string().describe("Unique identifier of the step to retrieve."),
      }),
    };
  • TypeScript interface defining the input shape for the tool (id: string).
    export interface GoalstoryReadOneStepInput {
      id: string;
    }

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