Skip to main content
Glama

get_public_post

Read-only

Reads an anonymous public Substack post from an allowlisted /p/ URL without credentials or subscription entitlements, returning capped HTML and a heuristic body status.

Instructions

Anonymous public post read by allowlisted /p/ URL, no credentials or subscription entitlements sent. One upstream read; body_html is capped at 500000 UTF-8 bytes. body_status is a heuristic from audience and body presence, not proof of full access or completeness.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "get_public_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes

Output Schema

NameRequiredDescriptionDefault
idYes
slugNo
titleNo
audienceNo
restacksNo
subtitleNo
body_htmlYes
post_dateNo
wordcountNo
body_statusYes
canonical_urlNo
comment_countNo
body_truncatedYes
reaction_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv1.4.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / properties / audience / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/title/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 4000,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / comment_count / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/wordcount/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / post_date / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/title/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 4000,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / reaction_count / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/wordcount/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / restacks / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/wordcount/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / slug / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/title/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 4000,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / subtitle / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/title/anyOf/0"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 4000,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Addedv1.3.0

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond readOnlyHint=true, the description discloses that exactly one upstream read is performed, that body_html is truncated at 500000 UTF-8 bytes, and that body_status is only a heuristic — a caveat that prevents an agent from treating a status as proof of full content. That is precisely the kind of behavior annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, each carrying distinct information: access mode, cost/limits, and output caveat. Density is high and front-loaded; 'One upstream read' is slightly telegraphic but still interpretable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-shape explanation is unnecessary, yet the description still flags the two output fields whose interpretation matters (body_html cap, body_status heuristic). Auth requirements, read cost, and truncation are all covered for a one-parameter tool.

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?

Schema coverage is 0% — the single parameter is documented only as a max-length-4096 string. The description compensates by constraining it to an 'allowlisted /p/ URL', which is exactly the information an agent needs to avoid passing an arbitrary post URL. It does not spell out the error behavior for a non-allowlisted URL.

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 states a specific verb and resource ('Anonymous public post read') plus the access path ('allowleted /p/ URL'), which lets an agent distinguish it from the authenticated-looking get_post and from the list_public_posts sibling. It stops short of naming a sibling explicitly, so it is clear but not maximally differentiated.

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 phrase 'by allowlisted /p/ URL, no credentials or subscription entitlements sent' implies this is the tool for credential-free public reads, which is useful selection guidance. However, it never states when NOT to use it or names the alternative for authenticated/full-access reads, so the routing signal is inferred rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.