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

Fetch one image from a post on linux.do

get_post_image
Read-onlyIdempotent

Fetch one image from a forum post as an MCP image block for direct viewing, using topic and post IDs and an optional index to page through images without loading every image at once.

Instructions

Return one post image as an MCP image block, so it can be viewed directly.

Read the post first: images there lists what this tool can fetch, in document order, emoji and avatars excluded. One image per call keeps a long topic from arriving as megabytes; ask again with another index for the rest.

Only files on ldstatic.com are fetched, so nothing else a post links to is ever requested. An original larger than max_bytes comes back as its downscaled render, and the text line says so.

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_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNofull (the original file) or thumb (the downscaled render Discourse shows inline). A tall image has an unreadable thumb, so full is the default. When Discourse has no render, thumb returns the original and the note says so.full
indexNo0-based position in that post's `images` list, which get_post and get_topic already returned; the default is the first picture.
post_idYesPost whose image you want.
topic_idYesTopic the post belongs to.
max_bytesNoRefuse an image larger than this and fall back to the render; lower it when the conversation has to stay small.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover read-only/idempotent/open-world; the description adds real behavior: fetching is restricted to ldstatic.com, oversized originals silently come back as a downscaled render, and the accompanying text line reports that substitution. The one-image-per-call rationale (avoiding megabyte payloads on long topics) explains a design constraint the agent would otherwise have to discover.

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?

The return format is front-loaded in the first sentence, followed by prerequisite, batching rationale, and scope/fallback notes. Three short paragraphs with no filler; a small amount of repetition about the fallback note is the only redundancy.

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?

With no output schema, the description still explains what comes back (an image block plus a text line that flags downscaling). Combined with the domain restriction and per-call sizing behavior, an agent has everything needed to call this correctly and interpret the result.

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 100%, so the baseline is 3, but the description adds meaning beyond it: the `index` space is defined as document order with emoji and avatars excluded, and the `max_bytes` overflow path is described as a render fallback rather than an error. That clarifies two parameters beyond their schema text.

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 ('Return one post image as an MCP image block') plus the immediate benefit ('so it can be viewed directly'). It also separates itself from the post-reading siblings by pointing at the `images` list those tools return.

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

Usage Guidelines4/5

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

Gives an explicit prerequisite workflow ('Read the post first: `images` there lists what this tool can fetch') and a clear batching rule ('One image per call ... ask again with another `index`'). It lacks an explicit when-not/alternative branch, but the sequencing guidance is strong enough to route the agent correctly.

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