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

List linux.do categories

list_categories
Read-onlyIdempotent

Retrieves Linux.do forum categories with their IDs and slugs. Call it first when a request names a Chinese category, since the slug cannot be derived from the display name.

Instructions

Return the forum's categories with ids and slugs.

Call this first when a request names a Chinese category (开发调优): the slug cannot be derived from the display name. Cached for ten minutes.

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": "list_categories"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
totalYesHow many categories the upstream listing held, both levels.
categoriesYesTop-level categories and their subcategories, in upstream display order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/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 safety semantics are covered. The description adds real context beyond them — the ten-minute cache window, which affects freshness expectations — but says nothing about what happens on a cache miss or whether categories can change.

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?

Two short sentences, zero filler. The purpose comes first and the usage rule plus its rationale follow immediately, with the cache note as a trailing qualifier.

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 parameters, an output schema covering return values, and full annotations, the description only needs to supply purpose, trigger, and freshness behavior — and it does all three. Nothing an agent needs to call this correctly is missing.

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?

The tool takes zero parameters, so there is no parameter meaning to add; the baseline for a 0-param schema is 4. The description's mention of ids and slugs correctly frames what the caller receives rather than what it must supply.

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 the forum's categories') and even specifies the fields returned ('with ids and slugs'). This distinguishes it cleanly from siblings like list_tags and browse_topics without needing to name them.

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, actionable trigger: 'Call this first when a request names a Chinese category (开发调优)' and explains why (slug cannot be derived from display name), which is a genuinely non-obvious rule. It stops short of stating when *not* to call it or naming an alternative tool for other lookup paths.

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