Skip to main content
Glama
linuxdo-mcp
by Xero-Team

Read one linux.do post

get_post
Read-onlyIdempotent

Fetch a single forum post by topic and post ID as Markdown text, returning its images and truncation status so callers can read one known post without loading a topic window.

Instructions

Read a single post as text.

Prefer this over get_topic when the caller already knows the post id: it fetches one post instead of the topic's default window.

body holds the author's Markdown, images the pictures the post embeds, and truncated says whether max_post_chars cut it.

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": {
      "topic_id": "<topic_id>",
      "post_id": "<post_id>"
    },
    "name": "get_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
post_idYesPost id from a topic read.
topic_idYesTopic the post belongs to.
include_rawNoReturn Discourse's own Markdown instead of cooked HTML reduced to text. About half the characters and keeps tables and link targets; turn it off only if you want the simplified text.
max_post_charsNoCut the body at this many characters and set truncated when it was cut; raise it for one long post instead of reading a silently partial body.

Output Schema

NameRequiredDescriptionDefault
idYesPost id; pass it to get_post.
bodyYesPost body as Markdown. Discourse's own raw text when requested and returned, otherwise cooked HTML reduced to text. Empty for a small action post, which carries its meaning in `action_code`. BBCode quotes are rewritten as Markdown blockquotes, upload:// image short links are replaced with the CDN URLs in `images` when the counts line up, and Discourse's |WxH image size suffix is dropped from alt text.
imagesNoImages in document order, indexed 0..n-1 as get_post_image takes them; emoji and avatars are excluded because they are decoration.
usernameYesAuthor username.
truncatedNoTrue when body was cut at max_post_chars. Read it again with a larger cap to see the rest; nothing else reports the cut.
created_atYesISO 8601 creation timestamp.
action_codeNoDiscourse's code for a small action post, e.g. pinned_globally.enabled or closed.enabled. Such a post records what the system did and has an empty body; null on a post a person wrote.
post_numberYes1-based position in the topic. Deleted posts leave gaps, so a window's numbers need not be contiguous.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description adds genuinely new behavior: the truncation contract (`truncated` reflects whether max_post_chars cut the body) and what the payload carries (author Markdown, embedded images). It does not cover error behavior for missing, deleted or access-restricted posts, which is the main remaining gap for an open-world read.

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?

Three short parts: the one-line purpose, the routing rule, and the return-field gloss. The purpose and the sibling differentiation are front-loaded and nothing is padded.

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

Completeness4/5

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

Output schema exists and the description need not explain return values, yet it still glosses the three fields an agent will actually branch on. Complete enough for a 4-parameter read tool; only failure modes such as deleted or private posts are unaddressed.

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

Parameters3/5

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

Schema description coverage is 100%, so all four parameters are already documented, including the include_raw and max_post_chars trade-offs. The description only echoes the max_post_chars/truncated relationship already stated in the schema, adding no syntax or format detail beyond it. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Read a single post as text") and immediately separates it from get_topic by scope: one post versus the topic's default window. An agent can distinguish it from every listed sibling without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit selection rule: prefer this over get_topic when the post id is already known, with the reason (fetches one post rather than the whole window). The alternative and the condition that selects it are both named.

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