get_story

Pack: lobsters · Endpoint: https://gateway.pipeworx.io/lobsters/mcp

Fetch a single story and all its comments by ID (e.g., “abc123”). Returns title, URL, text, score, and nested comment threads.

Parameters

NameTypeRequiredDescription
short_idstringyesThe short alphanumeric story ID from the Lobsters URL (e.g. “abcdef”)

Example call

Arguments

{
  "short_id": "abcdef"
}

curl

curl -X POST https://gateway.pipeworx.io/lobsters/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_story","arguments":{"short_id":"abcdef"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_story', {
  "short_id": "abcdef"
});

More examples

{
  "short_id": "xyz789"
}

Response shape

Always returns: story, comments

FieldTypeDescription
storyobjectThe story details
commentsarrayList of comments on the story
Full JSON Schema
{
  "type": "object",
  "properties": {
    "story": {
      "type": "object",
      "description": "The story details",
      "properties": {
        "short_id": {
          "type": "string",
          "description": "Unique short ID for the story"
        },
        "url": {
          "type": "string",
          "description": "Story URL"
        },
        "comments_url": {
          "type": "string",
          "description": "URL to view comments on Lobsters"
        },
        "title": {
          "type": "string",
          "description": "Story title"
        },
        "score": {
          "type": "number",
          "description": "Total score (upvotes - downvotes)"
        },
        "upvotes": {
          "type": "number",
          "description": "Number of upvotes"
        },
        "downvotes": {
          "type": "number",
          "description": "Number of downvotes"
        },
        "comment_count": {
          "type": "number",
          "description": "Number of comments"
        },
        "created_at": {
          "type": "string",
          "description": "ISO timestamp of story creation"
        },
        "submitter": {
          "type": "string",
          "description": "Username of story submitter"
        },
        "tags": {
          "type": "array",
          "description": "Tags associated with the story",
          "items": {
            "type": "string"
          }
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Plain text description or null"
        }
      },
      "required": [
        "short_id",
        "url",
        "comments_url",
        "title",
        "score",
        "upvotes",
        "downvotes",
        "comment_count",
        "created_at",
        "submitter",
        "tags",
        "description"
      ]
    },
    "comments": {
      "type": "array",
      "description": "List of comments on the story",
      "items": {
        "type": "object",
        "properties": {
          "short_id": {
            "type": "string",
            "description": "Unique short ID for the comment"
          },
          "url": {
            "type": "string",
            "description": "Direct URL to the comment"
          },
          "created_at": {
            "type": "string",
            "description": "ISO timestamp of comment creation"
          },
          "score": {
            "type": "number",
            "description": "Total comment score"
          },
          "indent_level": {
            "type": "number",
            "description": "Nesting level in comment thread"
          },
          "author": {
            "type": "string",
            "description": "Username of comment author"
          },
          "body": {
            "type": "string",
            "description": "Comment text (plain text)"
          },
          "is_deleted": {
            "type": "boolean",
            "description": "Whether comment is deleted"
          },
          "is_moderated": {
            "type": "boolean",
            "description": "Whether comment is moderated"
          }
        },
        "required": [
          "short_id",
          "url",
          "created_at",
          "score",
          "indent_level",
          "author",
          "body",
          "is_deleted",
          "is_moderated"
        ]
      }
    }
  },
  "required": [
    "story",
    "comments"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "lobsters": {
      "url": "https://gateway.pipeworx.io/lobsters/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026