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

Browse linux.do topics

browse_topics
Read-onlyIdempotent

List linux.do topics by recency, rank, category, tag, or filter to discover topic IDs you can pass to get_topic for reading posts.

Instructions

List topics on linux.do by recency, rank, category, tag, or filter.

Use this to discover topic ids; pass one to get_topic for the actual posts. linux.do needs a login for full-text search, so this filter surface is the way in: filter reorders by likes, views, or replies and narrows by state and tag, with no keyword matching. hot is Discourse's daily score, not velocity, and is the same call as top with period=daily.

To page, pass the previous page's next_page back as page; it is null on the last page. A page holds per_page topics (30, or 50 for top/hot), so leave limit at 50 while paging: a smaller limit trims the reply, reports how many it withheld in trimmed, and withholds next_page, because a page cursor cannot resume mid-page. Raise limit to read the withheld tail.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "browse_topics"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoTag name from list_tags (ChatGPT, 公告); required when sort=tag, optional when sort=filter. ASCII slugs work too, but a Chinese tag's upstream slug (31-tag) does not route — pass the name.
pageNo0-based page index. No upper bound: keep going until next_page is null.
sortNolatest (newest), top (ranked inside period), hot (today's top score; same route and result as sort=top with period=daily), category (needs category_id), tag (needs tag), filter (needs order and optionally status/tag).latest
limitNoKeep only this many topics from the page. A page holds per_page topics upstream (30, or 50 for top/hot). Trimming reports `trimmed` and withdraws `next_page`, because a page cursor cannot resume mid-page; keep 50 when you plan to page.
orderNoHow sort=filter ranks its topics: newest, most liked, most viewed, or most replies. Also read by sort=category, where it ranks the whole category (that route ignores period). Ignored by the other sorts. Pinned topics keep their slots whatever this is, so skip them when ranking.latest
periodNoRanking window for sort=top. Ignored by every other sort, including hot, which is pinned to daily.weekly
statusNoOnly read when sort=filter: restrict to one topic state.
category_idNoCategory id from list_categories; required when sort=category.

Output Schema

NameRequiredDescriptionDefault
topicsYesTopics on this page, in upstream order.
trimmedNoTopics `limit` cut from this page. Non-zero means the page held more and `next_page` was withheld, because a page cursor cannot resume mid-page: raise `limit` to read them. Zero on an untrimmed page.
per_pageNoHow many topics Discourse puts on a page for this sort. A `limit` you passed trims `topics` below this and withdraws `next_page`; see `trimmed`.
next_pageNoThe page index to pass back as `page` for the next window; null on the last page.
more_topics_urlNoUpstream cursor path as Discourse sends it; null on the last page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/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 by structured data. The description adds genuinely behavioral detail by explaining page-cursor semantics: next_page is null on the last page, and a reduced limit withdraws next_page while reporting `trimmed`. It does not mention rate limits or auth for non-search routes, so it is useful but not exhaustive beyond the annotations.

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?

Front-loaded with purpose, then usage, then paging mechanics, which is the right order. It is slightly redundant, repeating the limit/trimmed explanation already present in the schema, and a stray line break inside 'the same / call' mars an otherwise clean layout.

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?

For an 8-parameter tool with three enums, an output schema and conditional parameter requirements, the description covers the non-obvious risks well, chiefly pagination and the trimmed-tail behavior. Auth requirements beyond search are unstated, but the output schema removes the need to describe return values.

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 the baseline is 3 and the schema already documents conditional requirements, enum meanings and the limit/trimmed tradeoff. The description mostly restates that ground rather than extending it; the one real addition is the note that filter narrows by state and tag with no keyword matching.

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 ('List topics on linux.do') and enumerates the ordering axes that map directly to the sort enum. It also distinguishes itself from the sibling explicitly: discover ids here, then pass one to get_topic for posts.

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 explicit when-to-use ('use this to discover topic ids') and when-not ('no keyword matching', because full-text search needs a login), and names the follow-up tool. It even pre-empts a likely confusion by stating hot is the same call as top with period=daily.

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